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

name conflict with the lsp package #861

Open
blackbird1128 opened this issue Oct 17, 2024 · 1 comment
Open

name conflict with the lsp package #861

blackbird1128 opened this issue Oct 17, 2024 · 1 comment
Labels
kind: bug Something isn't working part: lsp server
Milestone

Comments

@blackbird1128
Copy link

Describe the bug

A name conflict between the lsp package (lsp) and coq-lsp.lsp makes it impossible to use them both together due to a module name clash. Both libraries export a module named Lsp.

To Reproduce
In a Dune project, try linking lsp and coq-lsp.lsp

(executable
 (public_name foo)
 (name main)
 (libraries foo lsp coq-lsp.lsp))

Dune will indicate various errors when trying to use anything from Lsp

Expected behavior

As both libraries can be used together, renaming the coq-lsp.lsp module to something more precise would avoid the name conflict.

Desktop

  • OS: Ubuntu
  • coq-lsp version: 0.1.8
  • VS Code version: not used here

Additional context

@blackbird1128 blackbird1128 added the kind: bug Something isn't working label Oct 17, 2024
@ejgallego
Copy link
Owner

Thanks for the report, will fix ASAP by renaming the module to Fleche_lsp.

We'd like to use upstream LSP libraries (cc: #2 ), however, we support some extensions, for example with Range-based offsets, which make us hard to use them for now.

But it is still in the roadmap to eventually remove our own Lsp implementation.

@ejgallego ejgallego added this to the 0.2.3 milestone Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working part: lsp server
Projects
None yet
Development

No branches or pull requests

2 participants