Giter VIP home page Giter VIP logo

Comments (7)

bpasero avatar bpasero commented on July 28, 2024 5

@emackey to verify the fix would work can you open the file node_modules/vscode/lib/shared.js in your extension folder and change the options bag to this:

var options = {
    url: url,
    strictSSL: false,
    headers: headers
};

And then run npm install again to see if this time it fetches the vscode.d.ts properly?

Looks like I could read out process.env.npm_config_strict_ssl: 'true' before the remote call and set strictSSL option according to that value.

from vscode-extension-vscode.

camwar11 avatar camwar11 commented on July 28, 2024 2

@bpasero Sure, I should be able to work it tonight.

from vscode-extension-vscode.

bpasero avatar bpasero commented on July 28, 2024

From @joaomoreno on March 6, 2017 10:46

@bpasero The code to fetch vscode.d.ts should maybe pay attention to npm's value of strict-ssl?

from vscode-extension-vscode.

emackey avatar emackey commented on July 28, 2024

@bpasero I can confirm that the options change fixes the problem for me. Thanks for taking this on!

from vscode-extension-vscode.

bpasero avatar bpasero commented on July 28, 2024

Fixed via 1.0.6

from vscode-extension-vscode.

camwar11 avatar camwar11 commented on July 28, 2024

@bpasero it seems that there is a bug in npm when setting environment variables based on config variables to false (see here). I think this issue still exists due to this fact and that I am still running into a similar issue:
Error installing vscode.d.ts: Error: unable to get local issuer certificate

This commit in particular seems to fix it by comparing the value to the "true" string and flipping the logic.

from vscode-extension-vscode.

bpasero avatar bpasero commented on July 28, 2024

@camwar11 good catch, want to jump in with a PR?

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.