-
Notifications
You must be signed in to change notification settings - Fork 842
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
Can stack ghci handle spaces in main-is path, on Windows? #2266
Comments
Can you post the output of |
Yes, it is: |
I reproduce this issue on Linux with a space in my file names:
|
Probably not a surprise, but I've seen the same thing on Mac OS X |
This might just be a quoting issue in some kind of ghci loading script:
|
Good catch! I hadn't considered that yet! |
I think you've nailed it, @sjakobi. Applying the fix now. |
@mpilgrem @WeeBull @sjakobi @sjakobi @VitorCBSB Pushed a fix, can you update your stack from master and try again? |
Thanks for your work, Chris. Unfortunately it didn't seem to work for me, my issue (the one with intero) is still happening. The funny thing is that calling the
|
Works for me on Ubuntu 14.04 with stack ghci! |
It did not work for me on Windows 10.
The relevant part of the output from
|
I'm trying it out on a Windows VM. |
Okay, I reproduce on Windows:
|
Well, that's funny. GHCi expects an escaped string: This is what stack is passing to ghci presently:
But this works:
Seems like my |
Okay, that fixed it! Closing, @mpilgrem re-open if you encounter it again. 👍 |
I am having the same problem using stack version 1.6.3, ghc 8.2.2: spaces in filenames lead to ghci complaining about "is not a module name or a source file". I now hotfixed my Emacs Intero implementation to put " quotes around the filename, and that resolved it. Should Intero by default put quotes around paths when passing them to ghc, or should ghc be able to deal with paths containing spaces even when they are not quoted? |
On Windows 10, if I do
stack new SomeFunc
;cd SomeFunc
;stack setup
;stack build
; and thenstack ghci
an error is reported which suggests to me that perhaps amain-is
path with a space is not being handled correctly.With no space in the path (eg Users folder
jsmith
), the GHCi startup output ofstack ghci
includes:With a space in the path (eg Users folder
Jane Smith
), the same part of that output has:The text was updated successfully, but these errors were encountered: