-
Notifications
You must be signed in to change notification settings - Fork 10
Code Editor: Erroneously reports "unused macro" warning on indirect macro chains #10331
Copy link
Copy link
Open
Open
Copy link
Labels
ide-bugBugs with the GameMaker IDEBugs with the GameMaker IDEprojectThis issue has a sample project attachedThis issue has a sample project attached
Milestone
Description
Description
The IDE incorrectly shows a "macro [val] is unused" warning in the gutter when a macro is indirectly used in a macro chain. Presumably this also happens with Feather.
Steps To Reproduce
- Write a macro (macro A)
- Reference macro A in another macro (macro B)
- Reference macro B in another macro (macro C)
- Use macro C somewhere in the project
Macro A will still have the "macro [val] is unused" warning in the gutter, even though it is being used indirectly.
For instance, the following code (attached in project) will produce the warning for MACRO_A:
#macro MACRO_A "Foobar"
#macro MACRO_B MACRO_A
#macro MACRO_C MACRO_B
show_debug_message(MACRO_C);
Which version of GameMaker are you reporting this issue for?
IDE v2024.13.0.190 Runtime v2024.13.0.238
Which operating system(s) are you seeing the problem on?
Windows 10.0.19045.0
Attached Files
- Warning in IDE (text says 'macro MACRO_A is unused' when hovered).png
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ide-bugBugs with the GameMaker IDEBugs with the GameMaker IDEprojectThis issue has a sample project attachedThis issue has a sample project attached
Type
Projects
Status
Todo