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
276 stars 58 forks source link

Windows WSL hover not work at all #106

Closed huuhait closed 4 years ago

huuhait commented 4 years ago

Hi i'm using windows and i have install crystal and scry in my wsl

but when i hover a func it showing up and close after 0.01s or faster

here is my config:

{
"crystal-lang.compiler": "crystal.bat",
    "crystal-lang.server": "scry.bat",
    "crystal-lang.shards": "shards.bat",
    "crystal-lang.completion": true,
    "crystal-lang.hover": true,
    "crystal-lang.implementations": true,
    "crystal-lang.bashOnWindows": true,
    "crystal-lang.mainFile": "${workspaceRoot}/app/app.cr",
}
faustinoaq commented 4 years ago

Hi @huuhai

but when i hover a func it showing up and close after 0.01s or faster

It can be a crystal.bat error happening in the background, so it prevents the extension of working properly.

BTW The Crystal compiler doesn’t run on Windows yet. WSL (compatibility-layer) may have some issues sometimes when executing it from vscode. Currently, I'm using Microsoft Remote to develop with crystal on my ubuntu server from my windows machine. It works like a charm! 💯

Annotation 2020-03-31 021434

huuhait commented 4 years ago

tks u it working good for me :D