haskell / haskell/haskell-mode
ByteCodeLink error silently ignored
- Dominant language
- Emacs Lisp
- Stars
- 1.4k
- Forks
- 354
- Avg merge
- 5d 10h
- Merged PRs (30d)
- 2
Description
When interactive linking fails, ghci displays the following message (from haskell-process-log):
```
<-
ByteCodeLink: can't find label
During interactive linking, GH
<- Ci couldn't find the following symbol:
cudaMalloc
This may be due to you not asking GHCi to load extra object files,
archives or DLLs needed by your current session. Restart GHCi, specifying
the missing library using the -L/path/to/object/dir and -lmissi
<- nglibname
flags, or simply by naming the relevant files on the GHCi command line.
Alternatively, this link failure might indicate a bug in GHCi.
If you suspect the latter, please send a bug report to:
glasgow-haskell-bugs@haskell.org
```
The message doesn't show up in the haskell session buffer, and the resulting ghci session is very very confusing (file was loaded between two evaluations of 1+2 below):
```
λ> 1+2
3
λ> 1+2
:8:2: Not in scope: ‘+’
λ>
```
Whatever the source of the error (maybe a misconfigured .cabal file, or something else), the failure should not be silent, and maybe should be printed straight to the session buffer if it cannot be understood by haskell-mode.
Contributor guide
Assessment
This issue has not been assessed yet.