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] Segmentation Fault when using a directory map without definition #170

Open
clsource opened this issue Nov 30, 2024 · 3 comments
Open
Assignees
Labels
bug Something isn't working
Milestone

Comments

@clsource
Copy link
Contributor

clsource commented Nov 30, 2024

#load_all "project:lib"
use lib

use core { * }

main :: () {
    println(lib.NAME)
}
./onyx run  scratch.onyx

Caution

[1] 13675 segmentation fault ./onyx run scratch.onyx

./onyx run --map-dir project:. scratch.onyx

Note

Onyx

I think a good way would be show an error message saying that map-dir/collection was not defined.

@brendanfh brendanfh added the bug Something isn't working label Dec 1, 2024
@brendanfh brendanfh self-assigned this Dec 1, 2024
@brendanfh brendanfh added this to the v0.1.14 milestone Dec 1, 2024
@brendanfh
Copy link
Collaborator

Thanks for the bug report! I can't believe I didn't test the case where the mapped directory didn't exist... This will be fixed in the next release.

@brendanfh
Copy link
Collaborator

I can't seem to reproduce this on my machine on the latest master branch. Can you post some more details about all the files in the compilation and what system you are on?

@clsource
Copy link
Contributor Author

clsource commented Dec 1, 2024

  • macOS Monterrey: 12.7.4
  • Onyx toolchain version v0.1.13
  • Runtime: ovmwasm

Added sample project

mapdir-bug.zip

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

2 participants