el-falso / gdlinter

This plugin runs `gdlint` on save to automatically lint your GD Script as you code.
https://godotengine.org/asset-library/asset/2520
MIT License
15 stars 5 forks source link

Loading error #1

Closed perroboc closed 6 months ago

perroboc commented 6 months ago

System Info

Godot v4.2.1.stable - Fedora Linux 39 (KDE Plasma) - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 7900 XTX (RADV NAVI31) () - AMD Ryzen 9 7950X 16-Core Processor (32 Threads)

Issue

I get the following error after enabling the plugin:

res://addons/gdLinter/gdLinter.gd:105 - Invalid access to property or key 'strings' on a base object of type 'null instance'.
Loading GDLint Plugin success

Additional info

Installed gdtoolkit using pipx, and had to manually install setuptools in its virtual environment, since I was getting this error: ModuleNotFoundError: No module named 'pkg_resources' (According to this StackOverflow post)

$ pipx install gdtoolkit==4.*
  installed package gdtoolkit 4.2.2, installed using Python 3.12.2
  These apps are now globally available
    - gd2py
    - gdformat
    - gdlint
    - gdparse
    - gdradon
done! ✨ 🌟 ✨
$ pipx inject gdtoolkit setuptools
  injected package setuptools into venv gdtoolkit
done! ✨ 🌟 ✨
$ gdlint --version
gdlint 4.2.2
el-falso commented 6 months ago

Also have some more error handling in version 2.0, which I'm still testing, so I merged your pull request for now. Thanks for your help.