-
-
Notifications
You must be signed in to change notification settings - Fork 391
StylishHaskell shifting the working dir, this could lead to race condition #4234
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
#4231 Could alleviate the some potential race condition. But there are still a lot of place we could not clean up |
I am wondering if there is an alternaive function than |
We could ask upstream to expose a version that takes the directory as an argument. |
Yep, I've craete an issue there |
This is quite bad 😅 Perhaps we can copy-paste the |
Seems like stylish's loadConfig already supports specifying directory as argument (Maybe FilePath). We just need to pass Just instead of Nothing, or am I missing something? |
Ok, the |
Uh oh!
There was an error while loading. Please reload this page.
StylishHaskell shifting the working dir, it could make other part of hls depending on cwd result in error in some race condition.
haskell-language-server/plugins/hls-stylish-haskell-plugin/src/Ide/Plugin/StylishHaskell.hs
Line 81 in 61fd5c4
Such as
Hlint, Stan, Template haskel, session loader
etc. We should not shifting the working dir after initilization.The text was updated successfully, but these errors were encountered: