haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 212 forks source link

filenames in error messages refer to the temp file #1683

Open alanz opened 4 years ago

alanz commented 4 years ago

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

jneira commented 4 years ago

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

alanz commented 4 years ago

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