haskell-ide-engine icon indicating copy to clipboard operation
haskell-ide-engine copied to clipboard

Test and App components not loaded correctly with spaces in path

Open Matthiasvanderhallen opened this issue 4 years ago • 5 comments

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.

Matthiasvanderhallen avatar Feb 26 '20 10:02 Matthiasvanderhallen

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!

fendor avatar Feb 26 '20 10:02 fendor

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.

Matthiasvanderhallen avatar Feb 26 '20 10:02 Matthiasvanderhallen

Finally some time with government ordered self isolation. Can reproduce on linux and pin-point it to a bug in hie-bios.

fendor avatar Mar 16 '20 14:03 fendor

I can even pin-point it to my own commit!

fendor avatar Mar 16 '20 15:03 fendor

Who knew what self-isolation could be good for ;)

Matthiasvanderhallen avatar Mar 17 '20 20:03 Matthiasvanderhallen