-
Notifications
You must be signed in to change notification settings - Fork 342
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
Support spaces in project paths for haskell-process-load-file or haskell-process-load-or-reload with errors in source file #1107
Comments
@issue-dispenser: You looked into a problem that is close in code to this one. Can you look into fixing also spaces in paths problem? |
|
Changed title accordingly :) |
Well, it appears that something else is causing the error, namely (haskell-check-paint-overlay "something.hs" t 2 {error description} "~/hello-man/something.hs" error nil 1) and with spaces: (haskell-check-paint-overlay "something.hs" t nil {error description} "~/hello man/something.hs" error nil nil) So it replaces the The question is why the call is different. |
Issue appears to be here (in (location (haskell-process-parse-error
(concat file ":" location-raw ": x")))
I really don't see why What's your take? |
Oh, I happened to look at it again and while I thought that the regex in Also, looking at the regex, it seems that it doesn't support directories like |
haskell-mode/haskell-compile.el Line 65 in fae1875
My take: If reparsing error information can be avoided it should be avoided. Then this regexp does not look right. Does GHC escape paths with spaces or just ignores the problem? |
GHC just ignores the problem. That means the regexp should just accept spaces in file names. |
Right, so that should about do it for the space issue then. Are you going to bother with the support for directories with Also, I noticed this line |
No, those super special directories do not bother me. Can you remove the places where line is unnecesarily reparsed and add space handling to the regexp? |
Reference #1004.
The text was updated successfully, but these errors were encountered: