Comments (8)
I see something similar in which hlint problems appear in the list and then immediately disappear. When I close and re-open the file, the problems are back in the list, until I start typing again and then they disappear.
v0.0.23
from vscode-haskell.
By default we turn off hlint warnings if there are ghc-mod errors, so it does not clutter.
But hlint gives results first, and they get passed through. This gives the flicker, I guess.
from vscode-haskell.
I don't have any visible ghc-mod issues, only hlint problems:
from vscode-haskell.
Update: I think I have narrowed down the issue by playing around with VSCode's autosave feature. With autosave of files on, it behaves as shown above. When I turned autosave off, the behavior changed as follows:
- Open file - hlint problems are highlighted
- Type some characters in the file - no change, hlint problems are still highlighted
- Save file - hlint problems disappear
- Continue typing - hlint problems appear again
So basically, for some reason saving the file is making the hlint problems disappear.
from vscode-haskell.
Ok, we recently reworked the diagnostics generation, and there is a difference between the on-save and on-change behaviour, I will take a look.
from vscode-haskell.
Hello,
I found a way to workaround the annoying flickering problem.
- Go to
Open user settings
in Command Palette (Ctrl+Shift+p). - Remove the line
"languageServerHaskell.hlintOn": true
, if any. - Save the setting.
- Add the line
"languageServerHaskell.hlintOn": true
. - Save the setting.
- hlint appears!
But, if I type some code and save it, hlint disappears again. (only that file)
So this is just a hotfix for those who desperately needs linting feature now. Maybe this has to do with actual cause?
from vscode-haskell.
By the way, this issue seems like a duplicate of #59 .
from vscode-haskell.
hlint should be fixed in latest hie and hie does not use ghcmod anymore
@dnsdhrj @AurevoirXavier feel free to reopen if you continue experiencing it with the latest version of hie
from vscode-haskell.
Related Issues (20)
- Release branch management
- βGHC ABIs donβt match!β HOT 13
- Cannot start language server on MacOS "Invalid Byte Sequence" HOT 9
- "Couldn't execute ghc --numeric-version" with latest VS Code HOT 1
- Support projects in subfolders HOT 5
- A setting for additional cabal command line arguments HOT 3
- error when building: withBinaryFile: inappropriate type (not a ghc-pkg db file, wrong file magic number) HOT 1
- Add quicklinks to tool notification bat
- TSLint is deprecated HOT 1
- Cannot use HLS 2.5.0.0 HOT 1
- ghcup --no-verbose upgrade` exited with exit code 1. HOT 2
- Basic support for vscode for web or github.dev HOT 1
- Shortcut to evaluate code lenses HOT 2
- Changes to cabal file is lost when saving using default formatter haskell.haskell and formatOnSave=true HOT 8
- language server restarting is always very slow on MacOS 2.6 GHz 6-Core Intel Core i7 HOT 1
- Add ghcup to PATH automatically HOT 13
- VScode doesn't recognize HLS installation HOT 2
- Variable not in scope HOT 3
- Could not find module HOT 3
- `stack clean` Command Fails After Opening Generated `Main.hs` File in VSCode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-haskell.