Closed shoorlyne closed 6 years ago
Ah, I checked-in the Hydra sbt-plugin. To get around this, please delete or comment out the contents of project/hydra.sbt
Thanks! Now I got past that point.
I am now seeing a new issue, when running vsce package
:
Executing prepublish script 'npm run vscode:prepublish'...
Error: Command failed: npm run vscode:prepublish
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 156 100 156 0 0 280 0 --:--:-- --:--:-- --:--:-- 280
100 167 100 167 0 0 144 0 0:00:01 0:00:01 --:--:-- 144
100 11832 100 11832 0 0 9185 0 0:00:01 0:00:01 --:--:-- 213k
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! scala-lsp@0.2.3 vscode:prepublish: `curl -L -o coursier https://github.com/alexarchambault/coursier/raw/991b60ddbcb7d781c17a463f7af980f2dd888d4b/coursier && tsc -p ./`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the scala-lsp@0.2.3 vscode:prepublish 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! /root/.npm/_logs/2018-09-19T10_31_51_391Z-debug.log
The detailed log looks like:
2 info using npm@5.5.1
3 info using node@v8.9.3
4 verbose run-script [ 'prevscode:prepublish',
4 verbose run-script 'vscode:prepublish',
4 verbose run-script 'postvscode:prepublish' ]
5 info lifecycle scala-lsp@0.2.3~prevscode:prepublish: scala-lsp@0.2.3
6 info lifecycle scala-lsp@0.2.3~vscode:prepublish: scala-lsp@0.2.3
7 verbose lifecycle scala-lsp@0.2.3~vscode:prepublish: unsafe-perm in lifecycle true
8 verbose lifecycle scala-lsp@0.2.3~vscode:prepublish: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/dragos-vscode-scala/scala/node_modules/.bin:/root/scala-2.12.6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
9 verbose lifecycle scala-lsp@0.2.3~vscode:prepublish: CWD: /dragos-vscode-scala/scala
10 silly lifecycle scala-lsp@0.2.3~vscode:prepublish: Args: [ '-c',
10 silly lifecycle 'curl -L -o coursier https://github.com/alexarchambault/coursier/raw/991b60ddbcb7d781c17a463f7af980f2dd888d4b/coursier && tsc -p ./' ]
11 silly lifecycle scala-lsp@0.2.3~vscode:prepublish: Returned: code: 2 signal: null
12 info lifecycle scala-lsp@0.2.3~vscode:prepublish: Failed to exec vscode:prepublish script
13 verbose stack Error: scala-lsp@0.2.3 vscode:prepublish: `curl -L -o coursier https://github.com/alexarchambault/coursier/raw/991b60ddbcb7d781c17a463f7af980f2dd888d4b/coursier && tsc -p ./`
13 verbose stack Exit status 2
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:280: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 scala-lsp@0.2.3
15 verbose cwd /dragos-vscode-scala/scala
16 verbose Linux 4.17.17-x86_64-linode116
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "vscode:prepublish"
18 verbose node v8.9.3
19 verbose npm v5.5.1
20 error code ELIFECYCLE
21 error errno 2
22 error scala-lsp@0.2.3 vscode:prepublish: `curl -L -o coursier https://github.com/alexarchambault/coursier/raw/991b60ddbcb7d781c17a463f7af980f2dd888d4b/coursier && tsc -p ./`
22 error Exit status 2
23 error Failed at the scala-lsp@0.2.3 vscode:prepublish script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2, true ]
Sorry for all the trouble, indeed there was a problem with the build. I just pushed a commit that fixes is on my machine. Please let me know if you can build now.
Build looks good now. Thanks!
I am seeing the following error when trying to run
sbt publishLocal
:How can I get around this?
Thanks!