question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trouble publishing to Open VSX

See original GitHub issue

Hello! 👋 We would love to have the redhat.java extension available in https://open-vsx.org

So we’ve recently added it to an auto-publishing script, but it turns out that our script is not packaging the redhat.java extension correctly.

Here is the steps that it currently runs to publish redhat.java:

git clone https://github.com/redhat-developer/vscode-java
cd vscode-java/
npm install
npx ovsx publish

This results in a broken extension: https://open-vsx.org/extension/redhat/java which we are trying to remove from https://open-vsx.org and republish correctly.

We found that the extension is missing at least the Java Language Server, and that it would require at least one extra step between npm install and ovsx publish:

./node_modules/.bin/gulp download_server

However, I wonder why this isn’t part of the vscode:prepublish steps? (The ovsx CLI will automatically run that before publishing.)

Also, if you’re interested in taking over the publishing to https://open-vsx.org from this repository (which may be better long-term), you can simply call npx ovsx publish in your CI (you’ll also need a OVSX_PAT environment variable, containing a token from https://open-vsx.org/user-settings/tokens).

Environment
  • Operating System: Ubuntu
  • JDK version: ?
  • Visual Studio Code version: *
  • Java extension version: *
Steps To Reproduce
  1. Run npm install
  2. Run npx ovsx publish
  3. Notice that the extension published to https://open-vsx.org/extension/redhat/java is incomplete (i.e. broken)

See also https://github.com/eclipse-theia/theia/issues/7448

Current Result

Published extension is missing Java Language Server.

Expected Result

… should include Java Language Server.

Additional Informations

Currently auto-published from https://github.com/open-vsx/publish-extensions/blob/f23b96303537f99369bf6878075045de89663a3a/extensions.json#L288-L293, but publishing needs to be fixed and/or migrated to this repository.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
fbriconcommented, Apr 2, 2020

Ok I pushed it manually for now: https://open-vsx.org/extension/redhat/java I also claimed the redhat namespace: https://github.com/eclipse/open-vsx.org/issues/6

Now I need to configure the Jenkins jobs on the RH side to do the publishing automatically

2reactions
fbriconcommented, Apr 1, 2020

Currently, most releases of vscode-java can not be rebuilt from source after a certain time, because the server is rebuilt by the CI, instead of being downloaded from a known place. Yes, we know we need to improve that. In the meantime, would it make things easier if you downloaded the released builds directly from our github releases page?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Eclipse Foundation Open VSX Registry Frequently Asked ...
What do I Need to Know as a Publisher to Open VSX? ... Users can ask questions, search for answers, enter issues and...
Read more >
Resolve "Publish GitLab Workflow extension to Open VSX ...
I've tested the open-vsx publishing in this pipeline. And it worked well: https://open-vsx.org/extension/GitLab/gitlab-workflow. Closes #205 (closed).
Read more >
EditorConfig for VS Code - Open VSX Registry
This plugin attempts to override user/workspace settings with settings found in .editorconfig files. No additional or vscode-specific files are required. As ...
Read more >
eclipse/openvsx - Gitter
Is there a GitHub action to publish to Open VSX? nm, I see that there is one at the end of that doc....
Read more >
Open VSX - Gitpod
As a result, you are not forced to publish proprietary extensions to a public marketplace, but maintain precise control over their availability.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found