32blit-tools
32blit-tools copied to clipboard
32blit setup fails messily with no internet connection
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'
- Disconnect from the internet
32blit setup- Fill out details
- Wait while it hangs at "Downloading boilerplate..."
- Boom!
Should probably check to see if the boilerplate actually downloaded before continuing!