Skip to content

Quasiquotation is not working on MacOS: Symbol not found: _pcre_compile2 #2546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ingun37 opened this issue Dec 27, 2021 · 2 comments
Closed
Labels
component: ghcide os: macos type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@ingun37
Copy link

ingun37 commented Dec 27, 2021

Your environment

Which OS do you use:
MacOS
Which LSP client (editor/plugin) do you use:
VSCode+Haskell
Describe your project (alternative: link to the project):
stack.yaml, package.yaml

Steps to reproduce

Install pcre-heavy, enable {-# LANGUAGE QuasiQuotes, FlexibleContexts #-}, and then define anything using QuasiQuotation

{-# LANGUAGE QuasiQuotes, FlexibleContexts #-}
import Text.Regex.PCRE.Heavy
aaa = [re|\d+|]

Expected behaviour

HLS not to crash.

Actual behaviour

HLS Crashes.

Include debug information

dyld: lazy symbol binding failed: Symbol not found: _pcre_compile2
  Referenced from: /usr/local/lib/libpcre.dylib
  Expected in: flat namespace

dyld: Symbol not found: _pcre_compile2
  Referenced from: /usr/local/lib/libpcre.dylib
  Expected in: flat namespace
@ingun37 ingun37 added status: needs triage type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. labels Dec 27, 2021
@jneira
Copy link
Member

jneira commented Dec 28, 2021

hi, thanks for the bug report, I am afraid hls support for template Haskell using precompiled binaries is sometimes not reliable, specially in macos
See the troubleshooting guide to see a possible workaround for the issue:
https://haskell-language-server.readthedocs.io/en/latest/troubleshooting.html#static-binaries

@jneira
Copy link
Member

jneira commented Dec 28, 2021

As there are lot of similar but reports about thecsame root problem and a meta issue about (#1431) I am gonna close this one if you don't mind, feel free to reopen if you think this one differs in any way

@jneira jneira closed this as completed Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ghcide os: macos type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

No branches or pull requests

2 participants