Comments (3)
Hello
same issue here.
npm run compile
> [email protected] compile /Users/pascalpoizat/Documents/Code/vscode-extension-samples/lsp-sample
> tsc -p client/tsconfig.json && cd server && npm run installServer && cd .. && tsc -p server/tsconfig.json
> [email protected] installServer /Users/pascalpoizat/Documents/Code/vscode-extension-samples/lsp-sample/server
> installServerIntoExtension ../client ./package.json ./tsconfig.json
Copying package.json to extension's server location...
Updating server npm modules into extension's server location...
npm notice created a lockfile as package-lock.json. You should commit this file.
server/src/server.ts(25,5): error TS6133: 'workspaceRoot' is declared but its value is never read.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] compile: `tsc -p client/tsconfig.json && cd server && npm run installServer && cd .. && tsc -p server/tsconfig.json`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] compile script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/pascalpoizat/.npm/_logs/2017-12-08T15_18_40_424Z-debug.log
from vscode-extension-samples.
The log for the issue mentioned above is:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/8.9.2/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'compile' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'precompile', 'compile', 'postcompile' ]
5 info lifecycle [email protected]~precompile: [email protected]
6 info lifecycle [email protected]~compile: [email protected]
7 verbose lifecycle [email protected]~compile: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~compile: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/pascalpoizat/Documents/Code/vscode-extension-samples/lsp-sample/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/pascalpoizat/.local/bin
9 verbose lifecycle [email protected]~compile: CWD: /Users/pascalpoizat/Documents/Code/vscode-extension-samples/lsp-sample
10 silly lifecycle [email protected]~compile: Args: [ '-c',
10 silly lifecycle 'tsc -p client/tsconfig.json && cd server && npm run installServer && cd .. && tsc -p server/tsconfig.json' ]
11 silly lifecycle [email protected]~compile: Returned: code: 2 signal: null
12 info lifecycle [email protected]~compile: Failed to exec compile script
13 verbose stack Error: [email protected] compile: `tsc -p client/tsconfig.json && cd server && npm run installServer && cd .. && tsc -p server/tsconfig.json`
13 verbose stack Exit status 2
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:925:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/pascalpoizat/Documents/Code/vscode-extension-samples/lsp-sample
16 verbose Darwin 17.2.0
17 verbose argv "/usr/local/Cellar/node/8.9.2/bin/node" "/usr/local/bin/npm" "run" "compile"
18 verbose node v8.9.2
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 2
22 error [email protected] compile: `tsc -p client/tsconfig.json && cd server && npm run installServer && cd .. && tsc -p server/tsconfig.json`
22 error Exit status 2
23 error Failed at the [email protected] compile script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2, true ]
from vscode-extension-samples.
Found a solution with #38
by applying what is proposed by @hessellund.
from vscode-extension-samples.
Related Issues (20)
- chat-sample: Error from participant: Language model 'copilot-gpt-3.5-turbo' errored, check cause for more details HOT 1
- comment-sample has many error when open developer window HOT 1
- Command 'Github Authentication Sample: Get Github User' resulted in an error
- Report Extension Sample Issue
- The "View Problem" positioning error in the code diagnosis pop-up window HOT 1
- CANNOT use API proposal: chatAgents2 HOT 2
- Debugging of `chat-agend-sample` hangs on build
- Cannot Launch Chat-Agent-Sample HOT 2
- [handleDidShowCompletionItem] & [handleDidPartiallyAcceptCompletionItem] does not exist in type 'InlineCompletionItemProvider'
- helloworld-test-cli-sample is broken HOT 1
- CodelensProvider not refreshing when changing documents
- lsp-embedded-language-service example (potentially) missing activation event
- Codicons didn't display on WebviewViewProvider
- FTP connection failure on tree-view-sample
- Error compiling test-provider-sample executionCount does not exist on type StatementCoverage HOT 3
- hello-world-web-sample doesn't load if developing in WSL HOT 2
- Authentication provider sample can't log out HOT 1
- Inline completion not working
- Custom Text Editor dirty flag inconsistencies
- Create Terminal.shellIntegration sample
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-samples.