Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore unknown config tags #883

Merged
merged 2 commits into from
Oct 20, 2022

Conversation

voodoos
Copy link
Collaborator

@voodoos voodoos commented Oct 20, 2022

In Merlin we decided to ignore unknown configuration tags when the provider is Dune.
This allows for easier forward compatibility if the protocol gets extended (with, for example, a new tag).

Since this part of the configuration management is re-implemented in ocaml-lsp-server this PR re-apply that Merlin change.

@rgrinberg rgrinberg merged commit f00decd into ocaml:master Oct 20, 2022
rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Oct 21, 2022
CHANGES:

## Fixes

- Fix various server crashes when opening non OCaml/Reason files. Files such as
  dune, cram, etc. would cause the server to crash. (ocaml/ocaml-lsp#884, fixes ocaml/ocaml-lsp#871)

- Ignore unknown tags in merlin configuration to improve forward compatibility
  with Dune. (ocaml/ocaml-lsp#883)
Khady added a commit to Khady/ocaml-lsp that referenced this pull request Nov 4, 2022
* master:
  fix(go-to-def): report error in response (ocaml#899)
  Update readme (ocaml#895)
  chore(nix): update flakes and dune-release (ocaml#894)
  chore: remove ocamlformat-rpc (ocaml#892)
  chore(nix): pass opam-repository and nixpkgs (ocaml#893)
  chore: unvendor ocamlc-loc (ocaml#869)
  fix: merlin document safety (ocaml#890)
  chore: more precise CHANGES (ocaml#889)
  fix: diagnostics on non dune files (ocaml#887)
  refactor: remove Document.is_merlin (ocaml#888)
  fix: symbols in non merlin docs (ocaml#886)
  refactor: style tweaks in document_symbol (ocaml#885)
  fix: handle incorrect document types (ocaml#884)
  Ignore unknown config tags (ocaml#883)
  Make sure nodejs packages required are installed
  chore: prepare 1.14.0
  Don't let opam ask when not needed
  Allow copy-and-paste of contributing instructions
  Add code action for inlining (ocaml#847)
  Add note about protocol extensions to the readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants