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

Path completion for "unique name" nodes fills in the full path rather than only the node name #77375

Closed
mieldepoche opened this issue May 22, 2023 · 2 comments · Fixed by #85384

Comments

@mieldepoche
Copy link
Contributor

Godot version

4.0.3

System information

linux

Issue description

consider a scene with a node marked as unique name:
image

Trying to access it leads to this:
image

which is not expected I think.

Steps to reproduce

  1. create a scene with a uniquely-named node that has a bunch of parents and grandparents
  2. try to access this node via a script using the % operator, and notice how it gives you the full path as an autocomplete candidate.

Minimal reproduction project

UniqueNameAutocomplete.zip

@KoBeWi
Copy link
Member

KoBeWi commented May 23, 2023

Related: godotengine/godot-proposals#4593 (the proposal might be outdated, because % shorthand didn't exist then)

@opyate
Copy link

opyate commented Nov 15, 2023

Especially jarring if there are multiple options, but you can see what they are (possibly due to my unique node having plenty of children/grandchildren of its own):

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants