elbywan / crystalline

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

Autocomplete does not work when using symlinked dependencies #28

Open vypxl opened 2 years ago

vypxl commented 2 years ago

It seems like crystalline ignores/can't read a shards' contents if they are symlinked to some directory.

Example file tree:

- shard.yml
- src/...
- lib/
  - dep -> ~/dep

If dep is installed normally, crystalline works fine:

working

However, dep is symlinked to ~/dep, and crystalline is confused: broken

The use case is this: I am developing a shard, while simultaneously developing an application that uses the shard. Therefore I do not want to constantly copy files between the two projects, but rather symlink my shard to the applications' lib folder.