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

Filename gives YUL compile error #848

Open
edmiikk opened this issue Feb 17, 2023 · 2 comments · May be fixed by #840
Open

Filename gives YUL compile error #848

edmiikk opened this issue Feb 17, 2023 · 2 comments · May be fixed by #840

Comments

@edmiikk
Copy link

edmiikk commented Feb 17, 2023

What is wrong?

Error: ParserError: Call or assignment expected. --> input.yul:9:15: | 9 | ds-test$DSTest$__init__() | ^

Error: ParserError: Expected keyword "data" or "object" or "}".
--> input.yul:9:15:
|
9 | ds-test$DSTest$init()
| ^

thread 'main' panicked at 'Yul compilation failed with the above errors', crates/driver/src/lib.rs:219:13
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

How can it be fixed

Remove dash from file name. i.e. ds-test.fe -> dstest.fe

@Y-Nak
Copy link
Member

Y-Nak commented Feb 18, 2023

Thanks for opening the issue.
This bug is fixed in Fe-v2 which disallows the - usage. In the new implementation, each use path segment is limited to an identifier, Self, or *(wildcard).

@Y-Nak Y-Nak linked a pull request Feb 18, 2023 that will close this issue
@edmiikk
Copy link
Author

edmiikk commented Feb 19, 2023

Domo Arigato もう1回

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

Successfully merging a pull request may close this issue.

2 participants