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

UML compiler doesn't support calling variables as functions #1920

Open
ChronoVortex opened this issue Sep 18, 2024 · 1 comment
Open

UML compiler doesn't support calling variables as functions #1920

ChronoVortex opened this issue Sep 18, 2024 · 1 comment
Labels
bug Something isn't working waiting for new compiler test This needs to be tested with the new Underanalyzer compiler

Comments

@ChronoVortex
Copy link

Describe the bug

Attempting to make changes to a source file that calls a variable as a function causes the compiler to fail:

---------------------------
Compiler error
---------------------------
Error parsing code when trying to compile modified "gml_Object_oInitGlobals_Create_0":



Expected token kind ProcVariable, got ProcFunction around line 21, column 8 (release_disableFlags).


---------------------------
OK   
---------------------------

The code referenced by the error:

global.release_disableFlags();

Reproducing steps

Compile a GameMaker project that calls a variable as a function, decompile it with UA, then attempt to recompile using UML.

Setup Details

  1. Latest from underanalyzer branch (8c5462c)
  2. Windows 10
  3. Void War Alpha Patch #​2 (https://tundra-interactive.itch.io/void-war)
@ChronoVortex ChronoVortex added the bug Something isn't working label Sep 18, 2024
@colinator27
Copy link
Member

Likely fixed as part of the new compiler at #2056.

@colinator27 colinator27 added the waiting for new compiler test This needs to be tested with the new Underanalyzer compiler label Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for new compiler test This needs to be tested with the new Underanalyzer compiler
Projects
None yet
Development

No branches or pull requests

2 participants