Skip to content

LSP[haskell-language-server]: Error INVALID_SERVER_JSON: "Expected value but found unexpected end of string at character 204" #1817

Description

@jackrosenberg

I have confirmed that this is a bug related to nvf

  • This is a bug, and not an user error or a support request. I understand that my issue will be closed if it is not a bug in nvf.
  • I have checked the issues tab and confirmed that my issue has not yet been reported. I understand that my issue will be closed if it is a duplicate.

Description

nvf config here

have haskell stuff installed via direnv:

      devShells."${system}".default = pkgs.mkShell {
        strictDeps = true;
        nativeBuildInputs = with pkgs; [
          cabal-install
          haskell.compiler.ghc925
          haskell-language-server
          # version 408.2, build with ghc 9.2.5
          (haskellPackages.z3.overrideAttrs {
            compiler = pkgs.haskell.compiler.ghc925;
          }) 
        ] ++
        [ self.packages."${system}".gclparser ];
      };
  };
}

after editing app/main.hs in neovim the LSP fails, logs here: https://paste.jackr.eu/JcFT5Buq3bb

Installation Method

NixOS Module (nixosModules.default)

Installation Method (Other)

No response

nvf Version

"repo": "nvf",
"rev": "45ad22485d23bf131e3543eb7de16d0adf274e8b",

Reproduction steps

  1. open 'app/main.hs'
  2. read error at bottom of screen.

Expected behavior

no error

Actual Behavior

yes error

System Information

- system: `"x86_64-linux"`
 - host os: `Linux 6.18.45, NixOS, 26.11 (Zokor), 26.11.20260822.2c423e0`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.95.2
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux, x86_64-v4-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/jack/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/jack/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/jack/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/jack/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/vnafrww9nnqb9y6p9m1nq5nmbafwm7db-lix-2.95.2/share`
 - nixpkgs: `/nix/store/d6mryll7gbj6hbczvyrvnflcyxxq11zn-source`

Relevant log output

https://paste.jackr.eu/d99vWZ8ggri

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions