Skip to content

Debugging Installation

ndonfris edited this page May 7, 2024 · 3 revisions

yarn install should complete without errors

If there is an error when running the yarn install command, going through the specific scripts that are called during installation will more than likely fix the issue.

Check which commands are executed via yarn install inside the package.json file.

{
    "scripts": {
        "postinstall": "<HERE>",
        "other-scripts": "..."
    }
}

Then check each individual script, located in the scripts/*.fish directory. This can be done by running each script via: fish scripts/<...>.fish

Note

If all the scripts are working, then the server command should be working.

If the yarn complie command throws an error

  • make sure tree-sitter-fish.wasm is built
    • can be done by using tree-sitter-cli to run (tree-sitter build-wasm /path/to/tree-sitter-fish/
    • can be done by using the scripts/build-fish-wasm.sh executable
  • make sure the tree-sitter-fish.wasm file is placed in the project root directory.

command fish-lsp not found

  • check if the executable was built

    ~/path/to/fish-lsp/bin/fish-lsp -h
    #~/path/to/fish-lsp/out/cli.js -h

    built via: yarn compile

  • the cli.js file is providing output, all you have to do is link it via yarn

    cd ~/path/to/fish-lsp
    yarn link 

    you could also just alias the out/cli.js file as the command fish-lsp