Giter VIP home page Giter VIP logo

Comments (2)

HaaLeo avatar HaaLeo commented on June 14, 2024

Hi @hybras, thank you for your contribution. Let me break this issue down:

Cause

This issue occurs since the default value for packagePath is ./. Now in the workflow you additionally specify extensionFile: rust-analyzer.vsix → Both options are defined → Error: Please specify either an extension file or a package path, but not both..

You can see this also in the unfolded action log:

image

Solution

Similar to the second example in the README you must manually unset the packagePath option. I admit that this is probably somewhat unintuitive and in future releases I may reconsider this behaviour. However, for now the following snippet should solve your issue:

    - name: "Publish to Open VSX Registry"
      uses: HaaLeo/publish-vscode-extension@v0
      with:
        pat: ${{ secrets.OPEN_VSX_TOKEN }}
        extensionFile: "rust-analyzer.vsix"
        packagePath: ""

If you still experience any issues do not hesitate to file another issue.

from publish-vscode-extension.

hybras avatar hybras commented on June 14, 2024

I unset packagePath as you suggested. It worked like a charm. If your into rust, check out the latest release of rust-analyzer.

Thank you for your help, your gh action is invaluable.

from publish-vscode-extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.