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

Code Editor 2: Autocomplete does not work correctly after defining a struct in your code in 2024.1300 Beta 1 #8992

Closed
1 of 2 tasks
Limekys opened this issue Jan 11, 2025 · 1 comment
Labels
ide-bug Bugs with the GameMaker IDE

Comments

@Limekys
Copy link

Limekys commented Jan 11, 2025

Description

Autocomplete does not work when struct is present in the code:

Image

But when you put N spaces before a closing bracket, autocomplete will work on that N number of characters:

Image
Image

https://api.gamemaker.io/api/github/downloads/29731489-ae42-4945-91ee-57c5e9b6c18a

Expected Change

Properly working Feather autofill

Steps To Reproduce

  1. Start GameMaker
  2. Create new project
  3. Create object
  4. Put these code to create event:
aboba = 1;
global.style = {
	test : 0 
};
  1. Try to add "aboba" in the end and space before "}"
  2. See the issue

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

2024.11.0 (Monthly)

Which operating system(s) are you seeing the problem on?

Windows 11

Are you running GameMaker from inside your Steam library?

Yes

Sample Package Attached?

  • I have attached my bug package

Sample Project Added?

  • I have included a small sample project
@Limekys Limekys added the ide-bug Bugs with the GameMaker IDE label Jan 11, 2025
@stuckie stuckie moved this from Triage to Todo in Team Workload Jan 13, 2025
@stuckie stuckie added this to the 2024.13 milestone Jan 13, 2025
@zreedy zreedy moved this from Todo to In Progress in Team Workload Jan 21, 2025
@zreedy
Copy link

zreedy commented Jan 21, 2025

Fixed. The scope range was incorrectly extended to infinitely since the struct's localContext is technically an Event. Event scopes are infinite so the struct was incorrectly interpreted as extending beyond its scope.
Additionally, a fix as been added where local variables were not shown in code completion inside of a struct.

@YYDan YYDan changed the title Code Editor 2: Feather: Autocompletion didnt work when you create struct Code Editor 2: Autocomplete does not work correctly after defining a struct in your code Jan 22, 2025
@YYDan YYDan changed the title Code Editor 2: Autocomplete does not work correctly after defining a struct in your code Code Editor 2: Autocomplete does not work correctly after defining a struct in your code in 2024.1300 Beta 1 Jan 22, 2025
@YYDan YYDan closed this as completed Jan 22, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Team Workload Jan 22, 2025
@YYDan YYDan removed this from the 2024.13 milestone Jan 22, 2025
@YYDan YYDan moved this from Done to Duplicate in Team Workload Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide-bug Bugs with the GameMaker IDE
Projects
Status: Duplicate
Development

No branches or pull requests

4 participants