package lsp

  1. Overview
  2. Docs
LSP protocol implementation in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

jsonrpc-1.6.1.tbz
sha256=bccc0d7194714a4c40c362766ad9095d3c58505a1d4f1dc4becd9b3d1bda8209
sha512=199bee8c74aec6822bc83bf9a7c3757206bdaa55a19cd1f5cf480127618a078baa1e917f6a90a6135a5277e4eb87977e685c10e6503f546997e6b985949e190f

doc/lsp.stdune/Stdune/User_error/index.html

Module Stdune.User_errorSource

Error meant for humans

Sourcemodule Annot : sig ... end
Sourceexception E of User_message.t * Annot.t list

User errors are errors that users need to fix themselves in order to make progress. Since these errors are read by users, they should be simple to understand for people who are not familiar with the dune codebase.

The additional Annot.t is intended to carry extra context for other, non-user-facing purposes (such as data for the RPC).

Sourceval raise : ?loc:Stdune__.Loc0.t -> ?hints:User_message.Style.t Pp.t list -> ?annots:Annot.t list -> User_message.Style.t Pp.t list -> _

Raise a user error. The arguments are interpreted in the same way as User_message.make. The first paragraph is prefixed with "Error:".

Sourceval make : ?loc:Stdune__.Loc0.t -> ?hints:User_message.Style.t Pp.t list -> User_message.Style.t Pp.t list -> User_message.t

Create a user error.

The "Error:" prefix

Sourceval has_location : User_message.t -> Annot.t list -> bool

Returns true if the message has an explicit location or one embed in the text.

Sourceval has_embed_location : Annot.t list -> bool

Returns true if the following list of annotations contains Annot.Has_embedded_location.

OCaml

Innovation. Community. Security.