GrapeSodaGames / Multiplayer

0 stars 0 forks source link

Can we integrate gdformat and gdlint into the editor directly? #155

Open zaphodb2002 opened 1 month ago

zaphodb2002 commented 1 month ago

For whatever reason I cannot get this fucking thing to work in a distrobox. I hate python. it runs just fine on an arch machine but the arch distrobox on Bazzite throws a bunch of errors.

Traceback (most recent call last):
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 397, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/sbin/gdformat", line 33, in <module>
    sys.exit(load_entry_point('gdtoolkit==4.2.2', 'console_scripts', 'gdformat')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/sbin/gdformat", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 862, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 399, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for gdtoolkit

I imagine we can extend the editor to allow us to run it there. Will have to look into that.