haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 212 forks source link

Test and App components not loaded correctly with spaces in path #1669

Open Matthiasvanderhallen opened 4 years ago

Matthiasvanderhallen commented 4 years ago

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.

fendor commented 4 years ago

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!

Matthiasvanderhallen commented 4 years ago

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.

fendor commented 4 years ago

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

fendor commented 4 years ago

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

Matthiasvanderhallen commented 4 years ago

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