Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Command "vsce package" is failing on OSX #9

Open
JamesKim2998 opened this issue May 12, 2017 · 1 comment
Open

Command "vsce package" is failing on OSX #9

JamesKim2998 opened this issue May 12, 2017 · 1 comment

Comments

@JamesKim2998
Copy link

JamesKim2998 commented May 12, 2017

I'm now building kailua VSC plugin for OSX.

After run "vsce package", it's failing on "vscode:prepublish" task.

If I run "(cd ..; cargo build --release)" manually, somehow "vsce package" succeed after that.

The error log is attached below.

Executing prepublish script 'npm run vscode:prepublish'...
Error: Command failed: /bin/sh -c npm run vscode:prepublish

npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/Cellar/node/5.0.0/bin/node" "/usr/local/bin/npm" "run" "vscode:prepublish"
npm ERR! node v5.0.0
npm ERR! npm  v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] vscode:prepublish: `tsc -p ./ && node ./out/src/tools/build-langsvr`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] vscode:prepublish script 'tsc -p ./ && node ./out/src/tools/build-langsvr'.
npm ERR! This is most likely a problem with the kailua package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     tsc -p ./ && node ./out/src/tools/build-langsvr
npm ERR! You can get their info via:
npm ERR!     npm owner ls kailua
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/jameskim/Develop/contribute/kailua/kailua_vsc/npm-debug.log
@JamesKim2998
Copy link
Author

JamesKim2998 commented May 12, 2017

And how about add "How to build and install manually" section on README.md?

It will be like below,

# Cloning repository
git clone https://github.com/devcat-studio/kailua
cd kailua/kailua_vsc

# Install toolkits/dependencies.
npm install -g vsce
npm install -g typescript
npm install

# Package VSIX
(cd ..; cargo build --release) # without this, "vsce package" will be failed ;(
vsce package

# Install to Code
sudo rm -rf $HOME/.vscode/extensions/devCAT.kailua-* # remove previous installation
code --install-extension kailua-1.0.4.vsix

And optionally if you don't have rust.

# Install rustup (environment manager) 
curl -sf https://static.rust-lang.org/rustup.sh | sudo sh
source $HOME/.cargo/env

# Change default env to nightly
rustup update nightly
rustup default nightly

@JamesKim2998 JamesKim2998 changed the title command "vsce package" is failing on OSX Command "vsce package" is failing on OSX May 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant