-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Godot 4 conversion tool also converts comments. Cool, but expected? #67090
Comments
The conversion tool just runs a regex. For instance, if you have scripts or nodes named the same as renamed classes, it'll rename (mess em up) too. |
That makes sense. I saw other things that fit that explanation (e.g. having custom I take it this is not a bug / not worth fixing, then? |
IIRC there is a PR open that should improve matters slightly, but I'm not certain whether it makes the tool ignore comments |
Some things are run with a regex, others are checked more laboriously, to every maintainer's dismay because it's really difficult to handle the converter's code as is now. Your case is also handled with a regex, but I've seen some more specific function conversions that do check if the function is within a comment. |
I'm okay to close this as "too much effort and not worth fixing." Feel free to re-open if you think this is something that can and should be fixed in a subsequent iteration of Godot 4. |
Godot version
4.0 beta 2
System information
Linux, GLES3
Issue description
When converting a project, the conversion tool converts things in comments. Observe the following comments:
These get converted to:
(There are other cases, too). While this is cool in some cases (like correcting the tween syntax), it's unexpected.
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: