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

Onready variable doesn't correctly use provided type in autocompletion #39228

Closed
KoBeWi opened this issue Jun 1, 2020 · 2 comments
Closed

Onready variable doesn't correctly use provided type in autocompletion #39228

KoBeWi opened this issue Jun 1, 2020 · 2 comments

Comments

@KoBeWi
Copy link
Member

KoBeWi commented Jun 1, 2020

Godot version:

3.2.2 beta3

Steps to reproduce:

  1. Create a scene with a child node
  2. Add script to the root
  3. Create onready variable that holds the child
  4. Check autcompletion
    image
  5. Switch to another scene tab
  6. Check autocompletion again
    image

The autocompletion works only for the actual type of the node and in another scene the editor can't find it, so it uses Node (ignoring the explicitly set type). Typing the above line as onready var text_edit = $TextEdit as TextEdit seems to fix the issue.

@KoBeWi
Copy link
Member Author

KoBeWi commented Jun 1, 2020

False alarm, I just had another scene open. But this is actually another issue, editing rn.

@KoBeWi
Copy link
Member Author

KoBeWi commented Jul 7, 2022

This is basically #42005
Fixed on master.

@KoBeWi KoBeWi closed this as completed Jul 7, 2022
@KoBeWi KoBeWi added this to the 4.0 milestone Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants