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] & symbol in asset name breaks generator #194

Open
mishmash-labs opened this issue Feb 3, 2022 · 2 comments
Open

[Bug] & symbol in asset name breaks generator #194

mishmash-labs opened this issue Feb 3, 2022 · 2 comments

Comments

@mishmash-labs
Copy link

Having a & in the name of the asset causes the build to fail.


line 222, column 27 of .: Unexpected text 'Crafts'.
    ╷
222 │           String get arts&Crafts =>  'assets/images/superpowers/Arts & Crafts.svg';
    │                           ^^^^^^
    ╵
line 222, column 26 of .: Operator declarations must be preceded by the keyword 'operator'.
    ╷
222 │           String get arts&Crafts =>  'assets/images/superpowers/Arts & Crafts.svg';
    │                          ^
    ╵
line 222, column 26 of .: Methods must have an explicit list of parameters.
    ╷
222 │           String get arts&Crafts =>  'assets/images/superpowers/Arts & Crafts.svg';
    │                          ^
    ╵
line 222, column 26 of .: A function body must be provided.
    ╷
222 │           String get arts&Crafts =>  'assets/images/superpowers/Arts & Crafts.svg';
    │                          ^
    ╵

@samithe7
Copy link

try this in image 'assets/images/superpowers/Arts_&_Crafts.svg'

@AlexV525
Copy link
Member

@bramp Is this solved by your recent changes with identifier names?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants