Repository navigation
Demo the esmvaltool language server - #4661
Draft
bouweandela wants to merge 1 commit into
Draft
bouweandela wants to merge 1 commit into
bouweandela wants to merge 1 commit into
Conversation
Use the development versions of ESMValCore and the language server in the default environment, to demonstrate the language server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 of 7 tasks
Contributor
Contributor
|
nevermind, I actually read through the package 😃 - that is a mega cool thing! I had no idea there's such a thing, and that can be that useful as middleware, am pinching this idea for other things like xconv2 🍻 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Branch to try out the new esmvaltool-language-server. You can install the language server into the default pixi environment by running
pixi installin the repository with this branch. After installing it and configuring your editor to use it (instructions for VSCode below, for emacs in the language server repo, for other editors ask or google it yourself), you can open a recipe to try out the features.VSCode instructions
The esmvaltool-language-server repository contains both the language server and a vscode extension that uses the language server. Because the VSCode extension has not yet been published on the its marketplace, you'll need to build and install it manually to use it for now. Once ESMValCore v2.16 is released (assuming the changes to ESMValCore needed to make it work in ESMValGroup/ESMValCore#3261 and optionally ESMValGroup/ESMValCore#3279 make it into that release), we can publish the extension on the vscode marketplace, and these steps will no longer be needed.
Build and install the extension:
This requires Node.js, which isn't part of the pixi environment, so it uses the
nodeandnpmyou already have or if you don't have them yet, you'll need to install those using your OS package manager or from https://nodejs.org/en/download.npm run packagewill build the VSCode extension and produce a file namedesmvaltool-0.1.0.vsix. Use the--forceflag to replace any older copy you've installed.Point the extension at the demo environment:
After a reload, the extension uses the Python interpreter selected in the Python extension.
Either select the pixi environment there, or set
esmvaltool.languageServer.pythonPathin.vscode/settings.jsonto the path thatpixi run which pythonprints.Before you get started
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
To help with the number of pull requests: