Maran23 / script-ide

Script-IDE is a plugin for Godot. It transforms the Script UI into an IDE like UI. Tabs are used for navigating between scripts. The default Outline got an overhaul and now shows all members of the script (not just methods) with unique icons for faster navigation.
MIT License
368 stars 16 forks source link

Cannot call method 'has_focus' on a null value #39

Closed Nrosa01 closed 9 months ago

Nrosa01 commented 9 months ago

I added this addon for the first time in a recently created project, and after a project reload I got this

image

I have no idea why, so I just changed the line 255 of plugins.gd if (!filter_txt.has_focus()): for if (not filter_txt or !filter_txt.has_focus()): I do have two more plugins: project timer tracker by fifut and inputmapperpresetloader by light1c3. But uninstalling those did not fix it. Is this error normal? I can make a PR but I'm not sure if this is something that shouldn't happen.

And well, even after changing that line, I still get some errors when closing or opening a tab

image

Maran23 commented 9 months ago

are you using Godot 4.2.1 or Godot 4.3.dev?

HueVirtualCreature commented 9 months ago

I am also seeing this issue in Output, while using Godot 4.2.1

AaronKannon commented 9 months ago

I'm having this same issue Godot 4.2.1 image

Maran23 commented 9 months ago

Hm, I wonder what is different for you. It works for me and some friends are using it as well, no problems at all. I will probably add a nullcheck so we fail safe, but it would be interesting to know what the root cause is.

Nrosa01 commented 9 months ago

are you using Godot 4.2.1 or Godot 4.3.dev?

I'm using Godot 4.2.1

eldyer commented 9 months ago

Same problem here, with 4.3.dev3.

Maran23 commented 9 months ago

Found the problem, will submit a new update to the AssetLib soon.

Maran23 commented 9 months ago

The update is on the asset store! Please install the plugin again and tell me if the bug is fixed for you! :)

HueVirtualCreature commented 9 months ago

Bug is fixed for me! Output is reporting no issues! Thank you so much for the fast response!

eldyer commented 9 months ago

Everything works here too, thanks a lot! :+1:

Nrosa01 commented 9 months ago

I've been using it for a while today and everything is working fine! Thank you!

Maran23 commented 9 months ago

Thank you guys for reporting back!