Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command line argument is being converted to bytes for some reason #1753

Open
frabrooks opened this issue Jul 24, 2021 · 1 comment
Open

Command line argument is being converted to bytes for some reason #1753

frabrooks opened this issue Jul 24, 2021 · 1 comment

Comments

@frabrooks
Copy link

frabrooks commented Jul 24, 2021

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.

@bernhard-herzog
Copy link

In case this is still a problem:

The most likely reason is that in your Emacs haskell-process-args-cabal-repl is a string. It should be list of strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants