-
-
Notifications
You must be signed in to change notification settings - Fork 390
File permission error on Windows #1507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, thanks for the bug report, i am usually using hls on windows 10 (more times with cabal but also with stack) and i've not hit that one. My hls cache dir is in
The executable is downloaded in the vscode specific app data in my case: You can check the path (and other useful info to debug problems) in the log of the extension: |
Ah, thanks! Here's the output of
|
Unfortunately I'm no closer to having a minimal way to reproduce this problem. It still happens semi-reliably for me, but I can't pin down exactly what's causing it to fail. Running |
mmm, definitely it could be, there is another issue about |
HLS has custom code to perform atomic file updates. Maybe it's not reliable in Windows. The code is at: |
Hi all, I get errors such as this:
After this HLS usually becomes unusable (i.e. no other errors shown, no code navigation), until it is restarted.
Seems to be triggered when I introduce a compilation error of some sort but other than that no particular pattern stands out. I have tried:
One thing I have noticed is there are multiple instances of hls runnning: Is this meant to happen? Full HLS Log[HLSLog.txt](https://github.com/haskell/haskell-language-server/files/9898443/HLSLog.txt
cradle:
stack:
stackYaml: "./stack.hls.yaml"
components:
- path: "./src"
component: "pyrethrum:lib"
- path: "./test"
component: "pyrethrum:test:pyrethrum-test"
|
Unfortunately the above comment was premature and the issue has reoccurred. This is intermittent and does not necessarily need ghcid running for the error to occur. Will try to get more specifics in coming weeks. |
Hello,
hie.yaml
Repo - (stack based project)
The project is very much a work in progress aka. a mess. I have only been editing:
The error occurs whether I'm running
A typical error is:
When the error occurs I need to restart VSCode, just restarting hls from within VSCode does not fix it. One thing I can say for certain is that when error does occur it is after a type error has been introduced in one of the source files listed above. Detailed logs attached |
possibly related to: haskell/directory#109 ? |
Indeed, #4276 |
I decided to try out HLS via VSCode on Windows this morning. Mostly it works great, but every now and then this error pops up for me:
I'm using this with a pretty normal Stack project: one package, no custom setup, no Template Haskell.
Your environment
I don't have access to
haskell-language-server
orhaskell-language-server-wrapper
in my shell, although clearly the VSCode extension has it somewhere behind the scenes. How can I use the executable that the extension is using?Which lsp-client do you use: Visual Studio Code 1.54.1
Describe your project (alternative: link to the project): https://github.com/tfausak/rattletrap
Contents of
hie.yaml
:Steps to reproduce
Not sure exactly how to reproduce. I'm just making normal edits to files and eventually this happens. Maybe switching branches can cause the problem? I'm not sure.
Sorry, this isn't a very thorough bug report. I'll try to pin down exactly how to get this to happen.
The text was updated successfully, but these errors were encountered: