haskell / haskell/haskell-mode

Command line argument is being converted to bytes for some reason

Open
#1,753 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Emacs Lisp
Stars
1.4k
Forks
354
Avg merge
5d 10h
Merged PRs (30d)
2

Description

I'm on Windows (sadly)

And the latest haskell-mode seems broken. The command-line argument `--ghc-option=-ferror-spans` when starting up a new 'cabal-repl' process is being converted to byte code for some reason.

Stepping through the debugger, it seems the error is introduced when `haskell-process-compute-process-log-and-command` in haskell-process.el returns:

`( "cabal" "repl" 45 45 103 104 99 45 111 112 116 105 111 110 61 45 102 101 114 114 111 114 45 115 112 97 110 115)`

This then leads to emacs to report:

`Wrong type argument: stringp, 45`

when attempting to load a file.

No idea why this is happening.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.