Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 5.0.0-rc1
-
None
-
940a203d937566f43f6862769da0c322f55fb0e0 (qt-creator/tqtc-qt-creator/6.0)
Description
It probably is a bug in haskell-language-server, but it requires the working directory to be the project directory.
Even though the "Startup behavior" is "Start Server per Project", the working directory is not changed from the default (where Qt Creator was started from the Terminal, or probably ~/ if started through "open", Dock, or Finder on macOS).
haskell-language-server has a "--cwd" option, but there is no sensible variable to set that to (%{ActiveProject:....} is wrong, as is %{CurrentDocument:Project:....}). It would probably generally make sense to have access to the "project" specific macro expander.