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

Fix NodePath autocompletion to ensure paths are quoted when required #88071

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Feb 7, 2024

Every component of the path is now checked to be a valid identifier, so that node names that start with a digit always require the full path to be quoted.

Preview

image

@Calinou Calinou added bug topic:gdscript topic:editor cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels Feb 7, 2024
@Calinou Calinou added this to the 4.3 milestone Feb 7, 2024
@Calinou Calinou requested a review from a team as a code owner February 7, 2024 17:51
Copy link
Member

@AThousandShips AThousandShips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and solves the problem

modules/gdscript/gdscript_editor.cpp Outdated Show resolved Hide resolved
Every component of the path is now checked to be a valid identifier,
so that node names that start with a digit always require the full
path to be quoted.
@Calinou Calinou force-pushed the gdscript-nodepath-autocomplete-fix-identifiers branch from 19c49fe to 1238b60 Compare February 7, 2024 18:27
@akien-mga akien-mga merged commit 50491db into godotengine:master Feb 8, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@Calinou Calinou deleted the gdscript-nodepath-autocomplete-fix-identifiers branch March 2, 2024 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release topic:editor topic:gdscript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autocomplete suggestion doesn't suggest quotes for nested nodes with names that start with numeric value
3 participants