Skip to content

Syntax error! The symbol `JSCheckScriptSyntax' does not fit here. #11

@panmona

Description

@panmona

In my project, I suddenly get the following error when building with GHC, which causes autocomplete (HLS) to completely fail:

Failed to build webkit2gtk3-javascriptcore-0.14.4.6.
Build log (
/home/m/.cabal/logs/ghc-9.12.2/webkit2gtk3-javascriptcore-0.14.4.6-e338888fe8281e79c6394e3e53741a95909fe0ea837ddbb440d6bba2fd75787e.log
):
[1 of 2] Compiling Main             ( dist/setup/setup.hs, dist/setup/Main.o )
[2 of 2] Linking dist/setup/setup
Configuring webkit2gtk3-javascriptcore-0.14.4.6...
Preprocessing library for webkit2gtk3-javascriptcore-0.14.4.6...
setup: Error in C header file.

/usr/include/webkitgtk-4.0/JavaScriptCore/JSBase.h:125: (column 44) [FATAL] 
  >>> Syntax error!
  The symbol `JSCheckScriptSyntax' does not fit here.

I don't have a direct dependency on this package but via reflex-dom.

Versions:

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.12.2
$ cabal --version
cabal-install version 3.14.1.1
compiled using version 3.14.1.1 of the Cabal library 

Let me know if you need any more information.

Discourse topic for reference: https://discourse.haskell.org/t/build-failing-for-ghcjs-project-the-symbol-jscheckscriptsyntax-does-not-fit-here/12185/4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions