You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See B.hs. Simple GHCI cannot load module A from A.hs.
Whereas ghci will load both file.
Analysis
From the log, I can see ghci is launched in the vscode installation directory, instead of the file directory. So that is why simple GHCI cannot find A.hs.
The temporary fix for this is to add custom startup commands.
But this is rather complicated when I have multiple folders in the vscode folder. So I hope there can be an extra settings. GHCI working directory, which can be workspaceFolder, fileFolder, custom string. It may be even nicer if VSCode variables are supported. https://code.visualstudio.com/docs/editor/variables-reference
Status
Steps to reproduce
In an empty folder, create two files A.hs, B.hs.
See B.hs. Simple GHCI cannot load module A from A.hs.
![image](https://user-images.githubusercontent.com/28442838/137939427-0361236e-b9c4-4596-9d44-f5319a4f7442.png)
![image](https://user-images.githubusercontent.com/28442838/137939521-256a5b5e-0a6b-4f3b-963b-979087e4aafb.png)
Whereas ghci will load both file.
Analysis
From the log, I can see ghci is launched in the vscode installation directory, instead of the file directory. So that is why simple GHCI cannot find A.hs.
The temporary fix for this is to add custom startup commands.
But this is rather complicated when I have multiple folders in the vscode folder. So I hope there can be an extra settings. GHCI working directory, which can be workspaceFolder, fileFolder, custom string. It may be even nicer if VSCode variables are supported. https://code.visualstudio.com/docs/editor/variables-reference
GHC log
The text was updated successfully, but these errors were encountered: