Giter VIP home page Giter VIP logo

Comments (5)

umdstu avatar umdstu commented on June 10, 2024 5

Just found this after hitting the issue myself. During a new extension generation (yo code)- the setup failed because that environment does not have connection to the internet. And because the typings file is only acessible via a github raw URL, rather than a repository like npm, the fetch returns a 404 and fails the rest.

So while debugging this I decided to re-run the install node ./node_modules/vscode/bin/install which results in the above error. The error message is wrong/misleading, because for starters it's not looking at the package.json file at all, it's looking for an environment variable; process.env.npm_package_engines_vscode

This means the installer will also never work unless it's run via the yeoman generator when I can only assume that env variable is defined. Either change the error message, or change the install script to actually use the package.json file (recommended as this would allow it to work outside of the yeoman generator).

from vscode-extension-vscode.

octref avatar octref commented on June 10, 2024 1

With the new changes you don't need internet to start new extension: https://code.visualstudio.com/updates/v1_36#_splitting-vscode-package-into-typesvscode-and-vscodetest

Just do yarn add @types/vscode@<VERSION>, where version can be 1.34.0, 1.35.0, 1.36.0, etc.

from vscode-extension-vscode.

bpasero avatar bpasero commented on June 10, 2024

@rberrelleza does it reproduce from a hello world extensions created via yo code?

from vscode-extension-vscode.

umdstu avatar umdstu commented on June 10, 2024

@bpasero ^ (edit link not working for me, sorry)

from vscode-extension-vscode.

rhclayto avatar rhclayto commented on June 10, 2024

Running this from the CLI worked for me:

npm_package_engines_vscode="^1.19.0" node ./node_modules/vscode/bin/install

from vscode-extension-vscode.

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.