You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/jk2/.local/bin/json2cmake", line 8, in
sys.exit(main())
File "/home/jk2/.local/lib/python3.8/site-packages/json2cmake/init.py", line 223, in main
database.write(args.outfile, name=args.name)
File "/home/jk2/.local/lib/python3.8/site-packages/json2cmake/init.py", line 122, in write
name = os.path.basename(os.path.commonprefix(files).rstrip("/_"))
File "/usr/lib/python3.8/genericpath.py", line 76, in commonprefix
if not isinstance(m[0], (list, tuple)):
TypeError: 'set' object is not subscriptable
The text was updated successfully, but these errors were encountered:
Awesome. Thank you. This fixes the same crash on MacOS, too.
It then bombed out on directories with spaces in names, but this is far, far from the first program with that issue. That's further than I'd hoped to get extracting an ESP32 build from PlatformIO and trying to shove it into Cmake.
Ubuntu 20.04.3 LTS
Python 3.8.10
json2cmake generates the following error
Traceback (most recent call last):
File "/home/jk2/.local/bin/json2cmake", line 8, in
sys.exit(main())
File "/home/jk2/.local/lib/python3.8/site-packages/json2cmake/init.py", line 223, in main
database.write(args.outfile, name=args.name)
File "/home/jk2/.local/lib/python3.8/site-packages/json2cmake/init.py", line 122, in write
name = os.path.basename(os.path.commonprefix(files).rstrip("/_"))
File "/usr/lib/python3.8/genericpath.py", line 76, in commonprefix
if not isinstance(m[0], (list, tuple)):
TypeError: 'set' object is not subscriptable
The text was updated successfully, but these errors were encountered: