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

Readline shard not installed #2

Closed
ocelotsloth opened this issue Jan 20, 2020 · 0 comments · Fixed by #3
Closed

Readline shard not installed #2

ocelotsloth opened this issue Jan 20, 2020 · 0 comments · Fixed by #3

Comments

@ocelotsloth
Copy link
Contributor

Expected Behavior

crystal build src/blackboard-dl.cr should build the application.

Actual Behavior

~/Projects/blackboard-dl master.
❯ crystal build src/blackboard-dl.cr
Showing last frame. Use --error-trace for full trace.

In src/cli.cr:4:1

 4 | require "readline"
     ^
Error: can't find file 'readline'

If you're trying to require a shard:
- Did you remember to run `shards install`?
- Did you make sure you're running the compiler in the same directory as your shard.yml?

Versions

OS: Arch Linux
Crystal Version:

❯ crystal -v
Crystal 0.32.1 (2019-12-18)

LLVM: 9.0.0
Default target: x86_64-pc-linux-gnu

Thoughts

It looks like the readline package was removed from the core distribution at some point and into its own shard. I believe adding the dependency should take care of it.

ocelotsloth added a commit to ocelotsloth/blackboard-dl that referenced this issue Jan 20, 2020
fixes hako#2

Adds readline shard to the shard.yml file.

Additionally adds /lib/ to .gitignore (/libs/ was already there)

Signed-off-by: Mark Stenglein <mark@stengle.in>
@hako hako closed this as completed in #3 Jan 20, 2020
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.

1 participant