scry
scry copied to clipboard
Support Scry on Windows using WSL
Scry doesn't run on Windows. Because Crystal doesn't run on windows. But Windows 10 can run scry in bash. However, I'm not certain that we can mix STDIN and STDOUT in a useful way.
First step, test if we can connect to a Scry running bash from windows. If that works, there's nothing to change.
If that doesn't work, add support for optionally connecting to scry of TCP.
I think :point_down: would be useful
WSL Proxy Files - https://github.com/watzon/wsl-proxy
Shared by @watzon on Gitter
Interesting. I'll have to check that out.
Got it working on VSCode with the Crystal Language plugin. I had to create a SymLink from C:\Windows\System32\bash.exe
to C:\Windows\SysWOW64\bash.exe
to allow the 32 bit version of VSCode to launch bash and I also had to change the permissions on the VSCode directory in Program Files to allow scry to write a file
Wow, @watzon Can you show us a screenshot with Scry and VSCode working on Windows? :heart_eyes:
Here you go @faustinoaq
Well, I installed WSL and We need to fix some things
- Just syntax errors are detected, not methods neither types.
- Crystal compiler can't read
C:\User\main\app.cr
but/mnt/c/User/main/app.cr
- Crystal compiler inside WSL returns file info as
/mnt/c/...
for diagnostics, formatter, and implementations. - VSCode needs file info as
C:\User\main\...
to show things properly. - Local
${workspaceRoot}\lib
also needs to be converter to be processed by crystal inside WSL.
Some work is needed to convert paths between Unix and Windows and get Scry working 100% on WSL.
I think it would be ready in the next months, I did a proof of concept in my free time 👇
Implementations don't work yet
Diagnostics:
Hover(not yet in scry master):
Formatting:
Cheers 😄
@faustinoaq @kofno hey guys, can you show your user settings? I can't setup scry on windows but crystal compiler working is stable via WSL
I getting every time error like:
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2386 The Crystal Language server crashed 5 times in the last 3 minutes. The server will not be restarted.