SkriptLang / skript-reflect

Powerful reflection utilities for Skript.
MIT License
56 stars 19 forks source link

Can't call functions inside of custom syntax #69

Closed TheBentoBox closed 4 months ago

TheBentoBox commented 1 year ago

Describe the bug When running with Skript 2.7.0-beta2, function calls inside of custom syntax no longer parse. This happens both on the initial load and on subsequent reloads of the script. It does not matter if the function is in the same script or a different script, or whether or not it is local.

To reproduce

  1. Create a function.
  2. Create custom syntax.
  3. Try to call that function within the custom syntax (e.g., myExampleFunction()).

Expected behavior The function call should parse and should run when your custom syntax is triggered.

Screenshots Example with a minimalist server setup. See VS Code sidebar, Skript + skript-reflect are my only plugins (as well as the patcher agent).

image image

Server information

L3v3lup commented 10 months ago

I believe this is linked to the same problem here: https://github.com/SkriptLang/Skript/issues/5779

With 1.20 released, this gets a bit more important.

TPGamesNL commented 10 months ago

Fix delayed at least until https://github.com/SkriptLang/Skript/pull/5669 is merged, as this PR finalizes the Structure API, which is what skript-reflect will be using.

rudde0 commented 8 months ago

Fix delayed at least until SkriptLang/Skript#5669 is merged, as this PR finalizes the Structure API, which is what skript-reflect will be using.

Could you fix it now?

envizar commented 7 months ago

Fix delayed at least until SkriptLang/Skript#5669 is merged, as this PR finalizes the Structure API, which is what skript-reflect will be using.

@TPGamesNL Will you fix this issue?

TPGamesNL commented 7 months ago

I will when I have time, i.e. not soon. Anyone is free to make a PR