Skip to content

manticore lsp: a copied bare binary fails with an empty-prelude error #518

Closed

Description

@blacktrs

Problem

manticore lsp builds its workspace from the bundled prelude and stdlib .sig. These are located relative to the binary. A binary copied on its own, without lib/ and the prelude beside it, exits 1 with "Workspace: the prelude is empty".

Impact

An editor extension that points manticore.path at a copied binary, or a packaged install that ships only the executable, cannot start the language server.

Expected

The installed layout (what tools/install_smoke.sh verifies) starts the server from any cwd and through a symlink. Today that works from / and through a symlink to bin/manticore; a bare copy does not.

Acceptance

  • Decide whether the prelude/stdlib ship inside the release archive beside the binary (document it) or are embedded in the binary.
  • tools/install_smoke.sh covers manticore lsp initialize/shutdown on the installed layout.

Found while building the LSP server (P3).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions