Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Add arduino-language-server support #298

Merged
merged 9 commits into from
Dec 6, 2021
Merged

Conversation

thetic
Copy link
Contributor

@thetic thetic commented Nov 30, 2021

Address #292

This is far from finished.

  • Handle arduino-cli.exe (vs arduino-cli) on Windows
  • Prevent go installer from using the arduino-cli version when installing arduino-language-server.
  • Install and pass clangd. Can this depend on the existing installer somehow?

References

@thetic thetic changed the title Add arduino-language-server supprot Add arduino-language-server support Nov 30, 2021
Copy link
Owner

@williamboman williamboman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should install each component in a separate subdirectory, to avoid them interfering with one another? I don't think there's a nice way of doing so currently, let me think of how such an installer API could look like...

@thetic
Copy link
Contributor Author

thetic commented Dec 2, 2021

I opened an issue on the server to mimic arduino-cli's config file deduction: arduino/arduino-language-server#90

Copy link
Owner

@williamboman williamboman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work 🎯! I think this looks good now. This is installing 3 different components atm, and because there are no builtin APIs to help with this, they all install to the same directory. I mention it in another comment earlier, but I'd like to make that possible before merging this. Will look into it asap and push any necessary changes

* origin/main:
  add ccls (williamboman#299)
  sumneko_lua: don't provide -E argument as it's not needed (williamboman#309)
  fix(angularls): also provide `cmd` property
  fix(installers/shell): pass script via arg, when possible (williamboman#307)
@williamboman
Copy link
Owner

@thetic I added a commit that makes sure to install the CLI and LSP to separate directories. Could you see if things still work for you? I also removed the arch check for Mac, because it seems like it starts just fine on my arm Mac (although I couldn't really get any diagnostics or go to definition working in a sample project I found on GitHub, but I might be doing something wrong).

@thetic
Copy link
Contributor Author

thetic commented Dec 5, 2021

This isn't working for me. I wonder if clangd is indeed required.

@williamboman
Copy link
Owner

This isn't working for me. I wonder if clangd is indeed required.

Did my commits break things, or was it not working before either?

@thetic
Copy link
Contributor Author

thetic commented Dec 5, 2021

I'm investigating now.

@thetic
Copy link
Contributor Author

thetic commented Dec 5, 2021

Disregard. I'm running into limitations of the actual server it seems. Installation is working as expected.

@williamboman
Copy link
Owner

Disregard. I'm running into limitations of the actual server it seems. Installation is working as expected.

Yeah the server seems to not really do anything? Let's merge this for now, I'd be happy to bundle clangd at a later point if it turns out to make sense to do so

@williamboman williamboman merged commit 17d7c32 into williamboman:main Dec 6, 2021
williamboman added a commit that referenced this pull request Dec 6, 2021
* origin/main:
  Add arduino-language-server support (#298)
williamboman added a commit that referenced this pull request Dec 7, 2021
* main:
  fix(quick_lint_js): use latest dist instead of collecting it via github API (#319)
  tag eslint with javascript & typescript
  fix(quick_lint_js): account for the fact that the archive has different structures across platforms (#315)
  fix installing arduino_language_server on Windows
  fix(quick_lint_js): use correct release files (#314)
  add quick_lint_js (#313)
  Add arduino-language-server support (#298)
  feat: use vim.ui.select to prompt which server to install
williamboman added a commit that referenced this pull request Jan 5, 2022
* main: (47 commits)
  feat: allow server installation by just typing `:LspInstall` (#331)
  .github: update new server request template
  add solidity_ls language server (#296)
  fix: zls-0.2 uses a different archive path (#330)
  better healthchecks with min version check
  stylua
  fix: increase timeout for sync installs to 60 minutes
  fix(angularls): fix --ngProbeLocation (#323)
  README: add link to Rust Wiki page
  add spectral (#295)
  add :PylspInstall command for managing 3rd party pylsp plugins (#318)
  initial healthcheck integration (#321)
  fix(installers/npm): dont apply global-style for standalone npm install
  fix(quick_lint_js): use latest dist instead of collecting it via github API (#319)
  tag eslint with javascript & typescript
  fix(quick_lint_js): account for the fact that the archive has different structures across platforms (#315)
  fix installing arduino_language_server on Windows
  fix(quick_lint_js): use correct release files (#314)
  add quick_lint_js (#313)
  Add arduino-language-server support (#298)
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants