-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
Using EditorSyntaxHighlighter
in TextEdit
crashes the project.
#84983
Comments
Yes comfirmed. The error message is pretty clear, what should we do about this? at least it shouldn't crash. |
…rashes the project Instead of crashing without any debug console information, it now at least creates an instance and gives a warning. Not an ideal solution, since it doesn't say which object called the EditorSyntaxHighlighter.
…rashes the project Instead of crashing without any debug console information, it now at least creates an instance and gives a warning. Not an ideal solution, since it doesn't say which object called the EditorSyntaxHighlighter.
This doesn't crash, it fails to load the main scene, which is unrecoverable, it happens when you can't load other classes as well, I'd say it's to be expected, how would we gracefully recover from this otherwise? I'm not even sure I'd call this a bug, this is user error |
It makes sense that it doesn't work, but I think there should be an error message in the Output so it is obvious why. |
There is? It says it can't load the scene, if call that obvious: Line 3794 in 655e93d
Maybe we could make it even more obvious to say "exiting game" but it says what is happening |
Only when there is a console on the running project, nothing is shown in the editor. |
That's unrelated to this, that's because the debugger hasn't had a chance to connect yet, that's tracked elsewhere, can't remember the actual issue right now |
Godot version
Godot v4.2.rc (ad72de5)
System information
Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2070 (NVIDIA; 31.0.15.3598) - Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 Threads)
Issue description
The running project crashes without error message if a
TextEdit
(orCodeEdit
) hasEditorSyntaxHighlighter
set for itssyntax_highlighter
.Attaching a debugger to the running project says:
EditorSyntaxHighlighter
should probably not be available to select.Or if
EditorSyntaxHighlighter
is useful for plugins or something, there should be an error printed when attempting to use it when not in the editor.Steps to reproduce
Add a
TextEdit
or aCodeEdit
.Set Highlighting >
syntax_highlighter
to a newEditorSyntaxHighlighter
.Run the current Scene.
The Scene tries to load and immediately closes.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: