Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser Error: Could not find type "ImGuiFont" in the current scope. #72

Closed
yahkr opened this issue Jul 7, 2024 · 9 comments
Closed
Labels
waiting for upstream Waiting for Godot to implement features

Comments

@yahkr
Copy link

yahkr commented Jul 7, 2024

Triggers when launching game within editor. When a C# code change takes place, after first error launching again works fine. Using "imgui-godot-6.0.1-csharp-only.zip" on Godot 4.3.beta2.mono

Specifically this happens after c# code change and the use of "Run Project hotkey". Works fine if you Build project and then use hotkey

on line 4 of ImGuiConfig.gd:

@export var Fonts: Array[ImGuiFont]
@pkdawson pkdawson added the waiting for upstream Waiting for Godot to implement features label Jul 7, 2024
@pkdawson
Copy link
Owner

pkdawson commented Jul 7, 2024

Those two simple resource scripts are a self-contained unit, they don't depend on anything else, so this is almost certainly a Godot bug.

But good news, a PR was recently merged to address similar issues, and that fix will be in 4.3-beta3.

@pkdawson
Copy link
Owner

Should be fixed upstream in 4.3.0.

@Tichau
Copy link

Tichau commented Sep 10, 2024

The issue is still present in version v4.3.stable.mono.official [77dcf97d8].
I'm using ImGui v6.2.1

Thanks for your work on ImGui !

@pkdawson
Copy link
Owner

Alright, there's a workaround I can try. I'm pretty sure it'll work but this is basically impossible to test. It'll be in the next release.

@pkdawson pkdawson reopened this Sep 10, 2024
@Tichau
Copy link

Tichau commented Sep 11, 2024

Also, I can only reproduce this issue on Windows. On my linux laptop there is no issue.

@jasonswearingen
Copy link

I'm also seeing this problem, but it is intermittent, I don't think it's related to build changes, it just fails occasionally. I have kind of a weird [Tool] based setup but I'm seeing some other weird frame stalls also, so I will try doing some more debugging. If anyone else has additional details to share, please do.

@jasonswearingen
Copy link

jasonswearingen commented Oct 15, 2024

this does appear to be an upstream/godot issue: godotengine/godot#82392

I tried the supposed workarounds and they don't work. Because the issue is intermittent it may seem like a workaround fixes it, for a little while.

@pkdawson
Copy link
Owner

Sorry, I committed a workaround last month, but I haven't tagged a new release yet. I'll do that today or tomorrow.

@pkdawson
Copy link
Owner

Fix released in v6.3.0. Let me know if you still encounter similar errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for upstream Waiting for Godot to implement features
Projects
None yet
Development

No branches or pull requests

4 participants