elbywan / crystalline

A Language Server Protocol implementation for Crystal. 🔮
MIT License
424 stars 21 forks source link

Crystalline does not build on freebsd. #40

Closed devosalain closed 1 year ago

devosalain commented 2 years ago

shards install works fine.

crystal build ./src/crystalline.cr  -o ./bin/crystalline --release --no-debug --progress -Dpreview_mt --error-trace

bails out with error

n src/crystalline.cr:1:1l)              

 1 | require "./crystalline/requires"
     ^
Error: while requiring "./crystalline/requires"

In src/crystalline/requires.cr:8:1

 8 | require "compiler/crystal/loader"
     ^
Error: can't find file 'compiler/crystal/loader'

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?
elbywan commented 2 years ago

Hey @devosalain,

I don't think this is a specific FreeBSD issue, compiler/crystal/loader requires a file (loader.cr) which has been added in the crystal sources since this PR, late 2021 (https://github.com/crystal-lang/crystal/pull/11434).

I'm guessing that you have an outdated crystal version which is not compatible with the latest crystalline sources.

elbywan commented 1 year ago

Closing because of inactivity.

devosalain commented 1 year ago

crystal --version Crystal 1.4.1 ()

LLVM: 10.0.1 Default target: x86_64-portbld-freebsd13.1