32blit-tools icon indicating copy to clipboard operation
32blit-tools copied to clipboard

32blit setup fails messily with no internet connection

Open Gadgetoid opened this issue 4 years ago • 0 comments

phil@StarLite:~/Development/32blit$ 32blit setup
Project name: platforms
Author name: gadgetoid
32Blit SDK path [/home/phil/32blit-sdk]: /home/phil/Development/32blit/32blit-sdk
Initialise a Git repository? [Y/n]: y
Create VS Code configuration? [Y/n]: y
Create Visual Studio configuration? [y/N]: y
Downloading boilerplate...
Traceback (most recent call last):
  File "/usr/lib/python3.8/shutil.py", line 707, in rmtree
    orig_st = os.lstat(path)
FileNotFoundError: [Errno 2] No such file or directory: 'platforms/.git'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/phil/.local/bin/32blit", line 8, in <module>
    sys.exit(main())
  File "/home/phil/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/phil/.local/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/phil/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/phil/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/phil/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/phil/.local/lib/python3.8/site-packages/ttblit/tool/setup.py", line 192, in setup_cli
    shutil.rmtree(pathlib.Path(project_name_clean) / '.git', onerror=remove_readonly)
  File "/usr/lib/python3.8/shutil.py", line 709, in rmtree
    onerror(os.lstat, path, sys.exc_info())
  File "/home/phil/.local/lib/python3.8/site-packages/ttblit/tool/setup.py", line 189, in remove_readonly
    os.chmod(path, stat.S_IWRITE)
FileNotFoundError: [Errno 2] No such file or directory: 'platforms/.git'
  1. Disconnect from the internet
  2. 32blit setup
  3. Fill out details
  4. Wait while it hangs at "Downloading boilerplate..."
  5. Boom!

Should probably check to see if the boilerplate actually downloaded before continuing!

Gadgetoid avatar Sep 08 '21 19:09 Gadgetoid