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

runtime error related to binary_directory #89

Open
hollowonepl opened this issue Mar 20, 2023 · 1 comment
Open

runtime error related to binary_directory #89

hollowonepl opened this issue Mar 20, 2023 · 1 comment

Comments

@hollowonepl
Copy link

crystal installed on macos (m1/silicon) and then 1.4.0 and the master branch from git compile with:

shards install
shards build

without errors and then when config file is created according to instruction the following error pops up:

Unhandled exception: Missing hash key: "binary_directory" (KeyError)
from /opt/homebrew/Cellar/crystal/1.7.3/share/crystal/src/hash.cr:1080:9 in '[]'
from /opt/homebrew/Cellar/crystal/1.7.3/share/crystal/src/yaml/any.cr:96:7 in '[]'
from src/bottle/config.cr:55:12 in 'binary_location'
from src/interact/ripper.cr:8:13 in '~Ripper::BIN_LOC:init'
from src/irs.cr:8:1 in '__crystal_main'
from /opt/homebrew/Cellar/crystal/1.7.3/share/crystal/src/crystal/main.cr:115:5 in 'main_user_code'
from /opt/homebrew/Cellar/crystal/1.7.3/share/crystal/src/crystal/main.cr:101:7 in 'main'
from /opt/homebrew/Cellar/crystal/1.7.3/share/crystal/src/crystal/main.cr:127:3 in 'main'

@hollowonepl
Copy link
Author

Resolved by myself. Apologies for confusion, I had an error in the config file.
Error handling for corrupted configs could be handled better though :)

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

1 participant