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

[BUG] cant call a function by macros #103

Open
amqndin opened this issue Jun 21, 2024 · 1 comment
Open

[BUG] cant call a function by macros #103

amqndin opened this issue Jun 21, 2024 · 1 comment
Assignees
Labels
Priority: Low This can be looked into after a week Type: Bug Something isn't working

Comments

@amqndin
Copy link
Contributor

amqndin commented Jun 21, 2024

Describe the bug

when trying to call any function using macros in a subdirectory it will throw an error. "expected operator"

To Reproduce

https://jmc.wingedseal.com/try-out?jmc=FAMwrgdgxgLglgewgAjAdzACgJTIN7ACQAXMQIYBOA5gM4B0CaCyAvMgESMLsDcRRAUwAeAqGBgDkFSPiKEAJFzrzM6MNhx9CAX2Ro4MABbJSlWn23BQkWIhRKuOWYQAOFOBBghMnJu2wWQA

Expected behavior

be able to call a function using macros

Desktop

  • im on windows 10
@amqndin amqndin added the Type: Bug Something isn't working label Jun 21, 2024
@Nico314159
Copy link
Contributor

Workaround:

function uwu() {
    ::args.owo = "owo";
    
    execute run {
        $function "namespace:owo/$(uwu)";
    } with ::args;
}

function owo.owo() {
    printf("owo");
}

@WingedSeal WingedSeal added the Priority: Low This can be looked into after a week label Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low This can be looked into after a week Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants