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

compilation command requires "./" before filename for compiling #16

Open
dhyey-shah opened this issue Mar 9, 2021 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@dhyey-shah
Copy link
Member

The following compiles, but fails to write it to a file:

cafe -c export.cafe

Exception thrown:

[SUCCESS] 
java.io.FileNotFoundException: null\anonymous.class (The system cannot find the path specified)
        at java.base/java.io.FileOutputStream.open0(Native Method)
        at java.base/java.io.FileOutputStream.open(FileOutputStream.java:292)
        at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:235)
        at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:185)
        at compiler.main.CompilerResult.write(CompilerResult.java:97)
        at compiler.main.CompilerResult.write(CompilerResult.java:93)
        at compiler.main.CompilerResult.writeByteCode(CompilerResult.java:85)
        at compiler.main.CompilerResult.writeByteCode(CompilerResult.java:76)
        at compiler.main.cli.CompileCommand.execute(CompileCommand.java:56)
        at compiler.main.Main.compile(Main.java:99)
        at compiler.Main.compile(Main.java:45)
        at compiler.Main.main(Main.java:40)

But the following works:

cafe -c ./export.cafe
@dhyey-shah dhyey-shah added the bug Something isn't working label Mar 9, 2021
@dhyey-shah dhyey-shah self-assigned this Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant