-
-
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
Autocomplete/code complete functions not suggested #45414
Comments
Does it work if you use |
preload() does add the instance() autocomplete suggestion, but it also defaults the search path string to res://Scripts/Scenes/jsonparser.tscn(which doesn't exist) instead of Scenes/jsonparser.tscn. Do you also have a suggestion for the queue_free() function? Might it also have something to do with the editor needing to "preload" the reference to the child node before being able to use it in the editor? or is that something else entirely? :) Thanks for the quick reply btw! |
For nodes, autocompletion should work more reliably if you use static typing. |
@frankhuurman Can you (or anyone else) still reproduce this bug in Godot 3.5 or any later release? |
Closing due to lack of response. Please comment if you can still reproduce this bug. |
Hi @Calinou, I've encountered this bug too, using And here it's the minimal reproduction project: autocomplete.zip |
|
Not a bug and has nothing to do with #86172, as mentioned before you will have to use static typing in order to get autocompletion for node methods. In your case, godot does not know the type of |
Godot version:
3.2.3.stable
OS/device including version:
Ubuntu 20.04
Issue description:
The code editor didn't autocomplete or suggest a few built-in functions that I needed for my game and I assume are often used in other projects as well.
I expected the queue_free() function to show up in the autocomplete menu when pressing ctrl+space after typing the name of a node and a dot symbol.
I also expected the instance() function to show up in the autocomplete menu after typing the variable name + dot symbol of a loaded scene resource.
These both didn't show up or weren't suggested even while typing half of the name of the functions.
Steps to reproduce:
queue_free function
for child in scrollcontainer.get_children():
child.queue_free() # after typing child. and pressing ctrl+space, no queue_free function was suggested.
instance function
var json_node = load("Scenes/jsonparser.tscn")
var temp_inst = json_node.instance() # after typing json_node. and pressing ctrl+space, no instance() function was suggested.
Minimal reproduction project:
autocomplete-missing.zip
The text was updated successfully, but these errors were encountered: