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
In a (cabal) Haskell project, the vscode-haskell extension is giving me an error on one file, and I don't understand what the error means nor how to work around it. There doesn't seem to be anything wrong with the project, as it builds and runs fine with cabal build and cabal run. The error appears and squiggly underlines {-# LANGUAGE Extension #-} pragmas at the top of the file. The file in question uses a small amount of template haskell -- for obtaining some derive instances. Thus, if I remove all the extensions, and in particular the {-# LANGUAGE TemplateHaskell #-} extension, the program will fail to build. The exact error message is
Unexpected usage error
/nix/store/2jfn3d7vyj7h0h6lmh510rz31db68l1i-glibc-2.33-50/lib/libc.so.6: symbol
_dl_catch_error_ptr version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2
with link time reference
How can I find out what the error is and how to get around it?
The text was updated successfully, but these errors were encountered:
From the error message i suspect it could be related with template haskell, does the error go away if you removes the template haskell definitions (even without removing the language pragma)?
In fact i think this is essentially #392, so i am gonna close it if you dont mind.
You can read more about in that issue but the workaround seems to be build hls from source in the target machine
In a (cabal) Haskell project, the vscode-haskell extension is giving me an error on one file, and I don't understand what the error means nor how to work around it. There doesn't seem to be anything wrong with the project, as it builds and runs fine with cabal build and cabal run. The error appears and squiggly underlines
{-# LANGUAGE Extension #-}
pragmas at the top of the file. The file in question uses a small amount of template haskell -- for obtaining some derive instances. Thus, if I remove all the extensions, and in particular the{-# LANGUAGE TemplateHaskell #-}
extension, the program will fail to build. The exact error message isHow can I find out what the error is and how to get around it?
The text was updated successfully, but these errors were encountered: