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

Autocomplete doesn´t list functions after if, while and for blocks. #23264

Closed
Ranoller opened this issue Oct 24, 2018 · 7 comments
Closed

Autocomplete doesn´t list functions after if, while and for blocks. #23264

Ranoller opened this issue Oct 24, 2018 · 7 comments

Comments

@Ranoller
Copy link
Contributor

Godot version:

Godot 3.1dev
451e5fd

OS/device including version:

Win764bit

Issue description:

Autocomplete only list variables and constants after if,while and for blocks:
autocompletebug

Related:
#21915

@ghost
Copy link

ghost commented Oct 24, 2018

May be related to this as well: #22121

@Ranoller
Copy link
Contributor Author

Sorry ... i think i didn't express myself. Autocomplete only list variables and constants after if, but should list methods too (like before).

@kimjiy9607
Copy link

Hi I am trying to reproduce this bug but I cannot.
It would be really nice if I can get any help or advice about how to reproduce this bug.
Thank you.

@Ranoller
Copy link
Contributor Author

yes, it was fixed some time ago, i forget the issue... closing

@akien-mga akien-mga added this to the 3.1 milestone Feb 19, 2020
@KoBeWi
Copy link
Member

KoBeWi commented May 9, 2020

Reopening, because it seems to be a thing again (if it was ever fixed....):
image

Tested in ff5dfcd and 3.2.1

@me2beats
Copy link

I have this problem too in 3.2.3 and 3.3rc9, Linux

completion if

completion

@HolonProduction
Copy link
Member

I'm closing this as completed in 4.x.

Rationale:
In v3.6.stable.official [de2f0f1] identifiers will show up after if/for/... if they were defined before the statement. Parsing will fail at this points since the if statement is incomplete and will produce an error.
Supporting completion even with parser errors was added in the GDScript rewrite for 4.x, back porting is not feasible.

@HolonProduction HolonProduction modified the milestones: 4.4, 4.0 Oct 14, 2024
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.

7 participants