crystal-lang-tools / vscode-crystal-lang

Yet another VSCode extension for Crystal Programming Language
https://marketplace.visualstudio.com/items?itemName=crystal-lang-tools.crystal-lang
MIT License
275 stars 57 forks source link

Not working when working from a parent DIR #193

Open wJoenn opened 4 months ago

wJoenn commented 4 months ago

Describe the bug Extension seems like it can't load properly unless my idea is currently opened on the crystal root dir.

Opening the IDE in the Crystal dir instead of it's parent dir solves all the afore mentionned issues

To Reproduce Move a crystal project in a parent directory

Screenshots Error thrown saying jennifer is not installed image

Type error not marked image

Desktop (please complete the following information):

nobodywasishere commented 4 months ago

This extension is designed to work with crystal projects opened as the workspace root, and will take some work to make it more extensible. However, this should fix another issue with opening projects outside of the current project root (like files from stdlib) that currently run into issues. For now my recommendation is to use multi-root workspaces until this functionality is implemented. As well, there are some issues with WSL2 that I haven't had time to diagnose yet, as a heads up. Thank you!

wJoenn commented 3 months ago

Shall I close this ? (Sorry for the delay, I hadn't checked my notifications for a while)

nobodywasishere commented 3 months ago

No - I'm currently implementing this functionality and should have it ready soon