Skip to content

Commit 49ad008

Browse files
authored
Add dynamic linking common issue (#1249)
1 parent be754d9 commit 49ad008

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,13 @@ This returns an error in HLS if 'tasty-discover' is not in the path: `could not
635635
These are known to be somewhat buggy at the moment: https://github.com/haskell/haskell-language-server/issues/478.
636636
This issue should be fixed in Stack versions >= 2.5.
637637

638+
#### Problems with dynamic linking
639+
640+
As haskell-language-server prebuilt binaries are statically linked, they don't play well with projects using dynamic linking.
641+
An usual symptom is the presence of errors containing `unknown symbol` and it is typical in arch linux, where a dynamically linked version of ghc is used.
642+
643+
The workaround is to use a version of haskell-language-server compiled from source with `-dynamic` enabled`. See more details [here](https://github.com/haskell/haskell-language-server/issues/1160#issuecomment-756566273).
644+
638645
### Troubleshooting the server
639646

640647
#### Diagnostic mode

0 commit comments

Comments
 (0)