haskell-ide-engine icon indicating copy to clipboard operation
haskell-ide-engine copied to clipboard

filenames in error messages refer to the temp file

Open alanz opened this issue 5 years ago • 2 comments
trafficstars

I get error messages like

 Plugin.hs    56  35 error           bios: Ambiguous occurrence ‘pluginRules’
 It could refer to either ‘Development.IDE.Plugin.pluginRules’,
                          imported from ‘Development.IDE.Plugin’ at /tmp/haskell-lsp36476/Plugin.hs-00162-1656586003122053330.hs:33:1-63
                       or ‘Ide.Types.pluginRules’,
                          imported from ‘Ide.Types’ at /tmp/haskell-lsp36476/Plugin.hs-00162-1656586003122053330.hs:40:1-26
                          (and originally defined
                             at /home/alanz/mysrc/github/alanz/haskell-language-server/src/Ide/Types.hs:45:22-32) (lsp)

This does not allow my editor (emacs) to jump to the location in the actual file affected.

Using hie-8.6.5 --version Version 1.1, Git revision a4f726de33fdec4555e9ca049a9c3aaa9e230dbb (3814 commits) x86_64 ghc-8.6.5

alanz avatar Mar 05 '20 21:03 alanz

I've seen those file names in vscode lately too.

jneira avatar Mar 05 '20 22:03 jneira

hie-bios temp file management, I presume. But we have a custom error printer, which should sort it out. Must check what ghcide does

alanz avatar Mar 05 '20 23:03 alanz