Difficulties with integration with source plugins #2779
Labels
component: ghcide
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Consider this minimal source plugin which whenever it encounters the expression
False
checks ifScopedTypeVariables
are enabled, and if not, throws an error:Example use case:
If we compile this on the command line (say, with
cabal
), we getunless we enable the pragma. All good.
If we open a project with HLS and open
Main.hs
, there are two orthogonal problems:issueWarning
instead ofissueError
, the opposite is true: we never see the warning at all.compiler:1:1
instead of the correct location within the source program).(Tested with ghc 8.8.4, 8.10.7 and 9.0.2. Full example code at https://github.com/well-typed/large-records/tree/edsko/hls-bugreport/hls-plugin-integration .)
The text was updated successfully, but these errors were encountered: