Skip to content

settings: openFile: does not exist (No such file or directory) on hlint applyHint #323

Closed
@erykciepiela

Description

@erykciepiela

When testing HLS 0.6.0 hlint application for code:

foo :: p -> p
foo i = id i

I get in the plugin logs:

2020-11-12 10:39:52.865812098 [ThreadId 9836] - applyHint:apply=[("/home/test-project/src/Foo.hs:5:1-12: Warning: Eta reduce\nFound:\n  foo i = id i\nPerhaps:\n  foo = id\n",[Replace {rtype = Decl, pos = SrcSpan {startLine = 5, startCol = 1, endLine = 5, endCol = 13}, subts = [("body",SrcSpan {startLine = 5, startCol = 9, endLine = 5, endCol = 11})], orig = "foo = body"}])]
2020-11-12 10:39:52.867264813 [ThreadId 9839] - finish: hlint (took 0.00s)
/opt/ghc/8.8.3/lib/ghc-8.8.3/settings: openFile: does not exist (No such file or directory)
[Error - 10:39:52 AM] Request workspace/executeCommand failed.
  Message: ExitFailure 1
  Code: -32603 

Hlint didn't get applied, the popup "Applying hint: ..." remains open.

Plugin 1.2.0
GHC 8.8.3
HLS 0.6.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions