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: Constructor arguments do not appear in autocomplete #8094

Open
KormexGit opened this issue Oct 23, 2024 — with GM Bug Reporter · 1 comment
Open
Assignees
Labels
ide-bug Bugs with the GameMaker IDE project This issue has a sample project attached
Milestone

Comments

@KormexGit
Copy link

KormexGit commented Oct 23, 2024

Description

Any arguments for a constructor do not appear in autocomplete inside that constructor.

GameMaker-Beta_tgsFFw7EgT.mp4

Steps To Reproduce

function test(_arg1, _arg2, _arg3) constructor {
	//type _arg here and see none of the arguments appear in autocomplete
}

Which version of GameMaker are you reporting this issue for?

IDE v2024.1100.0.634 Runtime v2024.1100.0.658

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

Windows 10.0.22631.0

d555b2ea-95e9-4255-95db-f646eb9b68cd

@gm-bug-reporter gm-bug-reporter bot added ide-bug Bugs with the GameMaker IDE project This issue has a sample project attached labels Oct 23, 2024
@stuckie stuckie moved this from Triage to Backlog in Team Workload Oct 23, 2024
@zreedy zreedy added this to the 2025.1 milestone Nov 19, 2024
@zreedy zreedy moved this from Backlog to Todo in Team Workload Nov 21, 2024
@zreedy zreedy moved this from Todo to In Progress in Team Workload Dec 11, 2024
@zreedy
Copy link

zreedy commented Dec 11, 2024

Fixed. A 1-based index was passed to the context resolution method when a 0-based index was expected.
If you had more lines of code in this function you would notice that it shows the arguments on all lines except for the last line of the function's block scope.

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 project This issue has a sample project attached
Projects
Status: In Progress
Development

No branches or pull requests

2 participants