Comments (7)
@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.
@bpasero Sure, I should be able to work it tonight.
from vscode-extension-vscode.
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.
@bpasero I can confirm that the options change fixes the problem for me. Thanks for taking this on!
from vscode-extension-vscode.
Fixed via 1.0.6
from vscode-extension-vscode.
@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.
@camwar11 good catch, want to jump in with a PR?
from vscode-extension-vscode.
Related Issues (20)
- Failed to get code binary when testing in environment that needs to use strictSSL:false HOT 1
- Missing error messages for bad setup HOT 1
- Add functionality to change locale in VS Code test instance HOT 16
- Servers(child processes) are cashing HOT 1
- vscode-install failed for vscode module HOT 11
- `node ./node_modules/vscode/bin/install` won't detect VSCode engine in ubuntu docker container HOT 5
- Error installing vscode.d.ts: Error: Request returned status code: 500 HOT 3
- Split module into @types/vscode and vscode-test HOT 8
- Can this module point to microsoft/vscode? HOT 3
- Switch to yarn instead of npm HOT 2
- Pass mocha options for easier CI test reports HOT 2
- Remove lib/shared and update install script
- Move test runner to `vscode-test` HOT 1
- Unable to use local URIs with vscode-resource HOT 1
- Local VSCode No Longer Installed as `stable`... HOT 6
- diff security vulnerability HOT 3
- Wrong node version for extension HOT 1
- [JS] eslint complains: "Unable to resolve path to module 'vscode'" HOT 1
- Can extensions have control for hiding context menus like Add Logpoint.. HOT 1
- Failed to execute fetch TypeError: Cannot read property '0' of undefined HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-extension-vscode.