Skip to content

Code Editor: Erroneously reports "unused macro" warning on indirect macro chains #10331

@Tellyandrew

Description

@Tellyandrew

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

  1. Write a macro (macro A)
  2. Reference macro A in another macro (macro B)
  3. Reference macro B in another macro (macro C)
  4. 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

0f4bfc19-1585-4ef9-a888-e5c25ed31517

Metadata

Metadata

Assignees

Labels

ide-bugBugs with the GameMaker IDEprojectThis issue has a sample project attached

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions