haskell-ide-engine
haskell-ide-engine copied to clipboard
Test and App components not loaded correctly with spaces in path
Hi,
Working with stack 2.1.3 and hie 1.1, (91422e95459130633905ab619772150860b2da2d (3793 commits) for ghc 8.8.2, I encountered problems when trying to load files located in the /app or /test components.
Specifically, after adding an explicit hie.yaml to fix issues with stack not making the test component available until stack test
, I got the specific error:
"target \8216"/Users/Matthias/My\8217 is not a module name or a source file" i.e. my project is located in "/Users/Matthias/My Project" and it seems to be failing on the space.
After moving the project from "/Users/Matthias/My Project/" to "/Users/Matthias/MyProject", errors disappeared.
Hi, thank you for your bug report! Coul you link the logs? If you are using vscode, follow these instructions: https://github.com/alanz/vscode-hie-server#investigating-and-reporting-problems
Alternatively, execute hie --debug app/
in the root of your project and report the logs here, please!
Hi,
I took some liberty earlier in simplifying the folder names, as you will notice in the exact logs:
logs.txt.
They were acquired using hie-wrapper --debug app/
, as you suggested, since I am using atom, and not vscode.
Edit: I forgot to mention, I'm working on MacOS Catalina 10.15.3.
Finally some time with government ordered self isolation. Can reproduce on linux and pin-point it to a bug in hie-bios.
I can even pin-point it to my own commit!
Who knew what self-isolation could be good for ;)