Maran23/script-ide

Cannot call method 'has_focus' on a null value

Closed this issue · 12 comments

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

are you using Godot 4.2.1 or Godot 4.3.dev?

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

I'm having this same issue
Godot 4.2.1
image

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.

are you using Godot 4.2.1 or Godot 4.3.dev?

I'm using Godot 4.2.1

Same problem here, with 4.3.dev3.

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

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

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

Everything works here too, thanks a lot! 👍

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

Thank you guys for reporting back!