ocaml-lsp icon indicating copy to clipboard operation
ocaml-lsp copied to clipboard

Unknown configuration tag

Open gdobreva opened this issue 9 months ago • 1 comments

Hello,

I am using dune to compile my code, but unfortunately for every file, I get several unknown configuration tag errors from ocamllsp (for example: Unknown configuration tag "INDEX" ocamllsp Unknown configuration tag "INDEX" ocamllsp Unknown configuration tag "INDEX" ocamllsp Unknown configuration tag "SOURCE_ROOT" ocamllsp Unknown configuration tag "UNIT_NAME" ocamllsp).

I have tried fixing it, but none of the solutions I found on other threads helped.

This is my opam list: alcotest | 1.8.0 | Alcotest is a lightweight and colourful test framework astring | 0.8.5 | Alternative String module for OCaml base-bigarray | base | base-bytes | base | Bytes library distributed with the OCaml compiler base-threads | base | base-unix | base | bos | 0.2.1 | Basic OS interaction for OCaml cmdliner | 1.3.0 | Declarative definition of command line interfaces for OCaml cmitomli | 1.0.0 | Converts compiled interface files (.cmi) into source interface files (.mli) cppo | 1.8.0 | Code preprocessor like cpp for OCaml csexp | 1.5.2 | Parsing and printing of S-expressions in Canonical form dot-merlin-reader | 4.5 | Reads config files for merlin dune | 3.17.2 | Fast, portable, and opinionated build system dune-build-info | 3.17.2 | Embed build information inside executable dune-rpc | 3.17.2 | Communicate with dune using rpc dyn | 3.17.2 | Dynamic type fiber | 3.7.0 | Dune's monadic structured concurrency library fmt | 0.9.0 | OCaml Format pretty-printer combinators fpath | 0.7.3 | File system paths for OCaml host-arch-x86_64 | 1 | OCaml on amd64 (64-bit) host-system-other | 1 | OCaml on an unidentified system logs | 0.7.0 | Logging infrastructure for OCaml merlin | 4.7-413 | Editor helper, provides completion, typing and source browsing in Vim and Emacs ocaml | 4.13.1 | The OCaml compiler (virtual package) ocaml-compiler-libs | v0.12.4 | OCaml compiler libraries repackaged ocaml-config | 2 | OCaml Switch Configuration ocaml-lsp-server | 1.10.5 | LSP Server for OCaml ocaml-print-intf | 1.2.0 | Display human-readable OCaml interface from a compiled .cmi ocaml-syntax-shims | 1.0.0 | Backport new syntax to older OCaml versions ocaml-system | 4.13.1 | The OCaml compiler (system version, from outside of opam) ocamlbuild | 0.15.0 | OCamlbuild is a build system with builtin rules to easily build most OCaml projects ocamlfind | 1.9.6 | A library manager for OCaml ocamlformat-rpc-lib | 0.27.0 | Auto-formatter for OCaml code (RPC mode) octavius | 1.2.2 | Ocamldoc comment syntax parser omd | 1.3.1 | A Markdown frontend in pure OCaml. ordering | 3.17.2 | Element ordering pp | 2.0.0 | Pretty-printing library ppx_derivers | 1.2.1 | Shared [@@deriving] plugin registry ppx_deriving | 6.0.3 | Type-driven code generation for OCaml ppx_yojson_conv_lib | v0.15.0 | Runtime lib for ppx_yojson_conv ppxlib | 0.34.0 | Standard infrastructure for ppx rewriters re | 1.12.0 | RE is a regular expression library for OCaml result | 1.5 | Compatibility Result module rresult | 0.7.0 | Result value combinators for OCaml seq | base | Compatibility package for OCaml's standard iterator type starting from 4.07. sexplib0 | v0.16.0 | Library containing the definition of S-expressions and some base converters spawn | v0.17.0 | Spawning sub-processes stdlib-shims | 0.3.0 | Backport some of the new stdlib features to older compiler stdune | 3.17.2 | Dune's unstable standard library topkg | 1.0.7 | The transitory OCaml software packager user-setup | 0.8 | Helper for the configuration of editors for the use of OCaml tools uutf | 1.0.3 | Non-blocking streaming Unicode codec for OCaml xdg | 3.17.2 | XDG Base Directory Specification yojson | 2.2.2 | Yojson is an optimized parsing and printing library for the JSON format

Thank you for your help :)

gdobreva avatar Jan 31 '25 14:01 gdobreva