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

Unable to have a Value argument-provider for a string parameter in spoofax.cfg #102

Closed
arnoudvanderleer opened this issue Dec 20, 2021 · 1 comment
Labels
C-Bug Category: bug. Not working as expected

Comments

@arnoudvanderleer
Copy link

Summary

Adding a Value argument-provider for a string parameter in spoofax.cfg gives an error.

What you did

I added the following piece of code to spoofax.cfg (inside command-def -> parameters)

    asdf = parameter {
      type = java String
      argument-providers = [Value("Hello")]
    }

What you expected to happen

I expected the program to not give an error, and pass the string parameter to the command/task.

What actually happened

I got an error:

'CFG editor update' has encountered a problem. An internal error occurred during "CFG editor update".

An internal error occurred during: "CFG editor update".
BUG: invalid AST shape, expected a string as first subterm in AST: ValueArgumentProvider(String("\"Hello\""{TermIndex("eclipse-resource##/chocopy.backend/spoofaxc.cfg",519)}){TermIndex("eclipse-resource##/chocopy.backend/spoofaxc.cfg",520)}){TermIndex("eclipse-resource##/chocopy.backend/spoofaxc.cfg",521)}

Context

Spoofax version: 0.16.10
Operating system: Ubuntu 20.04.3 LTS

Additional information

@arnoudvanderleer arnoudvanderleer added the C-Bug Category: bug. Not working as expected label Dec 20, 2021
@Gohla
Copy link
Member

Gohla commented May 18, 2022

Fixed by b4a108e.

@Gohla Gohla closed this as completed May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Bug Category: bug. Not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants