Open dcastro opened 7 years ago
@dcastro Thanks for the reporting, I think the potential reason is the fake maybe monad here https://github.com/zjhmale/vscode-idris/blob/master/src/maybe.js. I will address this ASAP.
@dcastro What is "the last version of vscode" exactly? Could you please provide a file that causes the error?
Yes, providing a sample file which causes the error will help us a lot to indicate the issue.
@be5invis Well, I've updated vscode to 1.13.0 this morning, but it hasn't been working for a couple of days now.
This happens with any file, really. I just created a brand new folder, with the default main module, and I'm getting this issue.
Hi @be5invis, do you got the same issue on Windows10 with v0.9.8
?
@zjhmale I can reproduce the latter one. However typechecking or hover is usable on my PC.
Nothing works at all here on Windows 8.1 and VS Code 1.15.
The menu exists and the Idris output window exists but no matter the command it's always stuck "Loading...".
Hi @dcastro, I can reproduce the same error message on Windows, but just for the newly created Idris files, v0.9.8 should work well with already opened files.
@Enamex I can work with Windows10 and VSCode 1.14.2
It will be really helpful if you provide some screenshot for me to see your scenario more clearly.
@zjhmale commented on Jul 31, 2017, 7:10 PM GMT+2:
@Enamex I can work with Windows10 and VSCode 1.14.2
[gif snip]
It will be really helpful if you provide some screenshot for me to see your scenario more clearly.
I'm not sure what to screenshot (and can't take gifs) but in summary: exactly what you're doing in the gif except for me the Loading...
never changes.
Update: I got it to work. It appears that the idris
path doesn't work if it's from the $PATH
or otherwise so long as it is a symlink.
Further, now that several functionalities I've tested work, I'd tried something I'm not sure what and it gave me an error:
[Error] Invalid option for idris.hoveMode [Close]
Update 2: The error occurred when displaying tooltips as I hovered over words. I'd set the tooltip config to "none"
(had been trying random things to get the extension to work); reverting it makes the tooltips work with no errors.
So as far as I know the only real issue now is that it doesn't recognize symlinks on Windows (made with mklink
).
@Enamex I also have the "Loading..." problem. I tried to fix this by setting the Idris executable path to the full path: "idris.executablePath": "C:\\Users\\erikschierboom\\Bin\\idris\\idris"
. Unfortunately, this does not work for me. Is there anything more I have to do?
@ErikSchierboom commented on Aug 3, 2017, 11:50 AM GMT+2:
@Enamex I also have the "Loading..." problem. I tried to fix this by setting the Idris executable path to the full path:
"idris.executablePath": "C:\\Users\\erikschierboom\\Bin\\idris\\idris"
. Unfortunately, this does not work for me. Is there anything more I have to do?
Just to be sure you have the right path: go to the executable and right click it while holding Shift, then choose "Copy as path" and use that. Make sure it has the extension .exe
in the end.
Also Update 3: Not sure whether this's the extension's fault (probably not) but the issue is that it's trying to call idris
from cmd.exe
no matter what default shell I'd configured in VS Code (MSYS2 in my case).
@Enamex I've tried that but unfortunately I still have the "Loading..." message. As for the terminal, I only have one terminal installed (cmd.exe) and I can successfully run idris
or idrin
from VS Code's terminal.
@ErikSchierboom Hmm, really wired.
idris
executable in the terminal with its explicit path, I mean C:\\Users\\erikschierboom\\Bin\\idris\\idris
, since on OSX and Linux you can run an executable with its full path, but I don't know whether it is legal on Windows.idris
directly from the terminal, so you have already added idris
executable path to Windows $PATH right?@zjhmale The answer to both questions is: yes. I'll see if I can find anything else being wrong.
I have the same issue. Windows 10. Idris 1.1.1. Visual Code 1.16.
Interestingly, selecting "Start or refresh Idris repl" works. Everything else seems to not work.
I can run idris from the command line.
I noticed Windows has both environment variables at the user and system level. I tried setting the path to include idris in both, but no luck.
Output shows: Errors (0)
I had the files store on my desktop, which has the path: \\MyDomain\Users\MyUserName\Desktop\idris
Notice this is a domain path. I moved my idris file to C:\tmp\
and then it works.
I encountered this error when I made a file named IO.idr
in the project. Removing it fixed the issue for me.
As of 0.9.8, vscode-idris no longer works for me in Windows 7 and 10, using the latest version of vscode and idris v1.0.
Auto-completion, build/typecheck-on-save, shortcuts such as
case-split
, etc.Also, when I open an Idris project and switch to the
Output
tab, I get this in the dev tools console.I don't get this error in non-idris projects.
An entry for "idris" seems to also be missing from the list of outputs:
Manually download and reverting back to 0.9.3 and 0.9.6 seems to work fine.