YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

Code editor 2: Autocomplete following a with statement does not include functions that can return an instance id, object index, or struct #6443

Open KormexGit opened 4 months ago

KormexGit commented 4 months ago

Description

Currently, the autocomplete for with statements only shows object constants and some other assorted built-ins. It does not show any functions that can return instance ids or structs, so if you want to do something like

with (instance_nearest(x, y, oSomething))

You have to type out the entire function name since autocomplete does not include instance_nearest.

https://github.com/YoYoGames/GameMaker-Bugs/assets/100942509/af6a6b75-933e-4ff0-a413-a090b202fac8

I wouldn't mind just having every function autocomplete in this scenario, in case feather can't properly trace back the return on some custom function I made.

Steps To Reproduce

Type with, and then try to type a function that returns an instance id or object index.

Which version of GameMaker are you reporting this issue for?

IDE v2024.600.0.585 Runtime v2024.600.0.609

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

Windows 10.0.22631.0

b365b713-5063-4876-b9bb-fa7f5312d0e2

KormexGit commented 1 month ago

https://github.com/user-attachments/assets/0a6e95a0-ebf4-4ddc-8efd-6c09f03ee389

Functions are being autocompleted properly after with now in current beta, likely fixed as a side effect of the other autocomplete improvements. However, user defined variables are not being autocompleted:

https://github.com/user-attachments/assets/85e97a71-814e-4eda-8ccb-a651c4891eeb