Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fail when trying to launch extension from debugger #1329

Closed
misoguy opened this issue Feb 24, 2017 · 8 comments
Closed

Build fail when trying to launch extension from debugger #1329

misoguy opened this issue Feb 24, 2017 · 8 comments

Comments

@misoguy
Copy link
Contributor

misoguy commented Feb 24, 2017

Please thumbs-up 👍 this issue if it personally affects you! You can do this by clicking on the emoji-face on the top right of this post. Issues with more thumbs-up will be prioritized.


What did you do?

Forked vim/master, cloned it and tried to build.

  1. npm install
  2. gulp
  3. run "Launch Extension" from vscode debugger

What did you expect to happen?

build to be successful and launch extension

What happened instead?

build failed

Technical details:

[23:56:06] Using gulpfile ~/Documents/Vim/gulpfile.js
[23:56:06] Starting 'tslint'...
[23:56:06] Starting 'compile'...
> [email protected] vscode:prepublish /Users/soojae/Documents/Vim
> node ./node_modules/vscode/bin/compile -p ./
src/actions/actions.ts(1141,53): error TS2532: Object is possibly 'undefined'.
src/actions/actions.ts(1141,68): error TS2532: Object is possibly 'undefined'.
src/actions/actions.ts(1147,71): error TS2532: Object is possibly 'undefined'.
src/textEditor.ts(205,30): error TS2532: Object is possibly 'undefined'.
src/textEditor.ts(234,30): error TS2532: Object is possibly 'undefined'.
src/textEditor.ts(235,65): error TS2532: Object is possibly 'undefined'.
src/textEditor.ts(238,52): error TS2532: Object is possibly 'undefined'.
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "vscode:prepublish"
npm ERR! node v7.6.0
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] vscode:prepublish: `node ./node_modules/vscode/bin/compile -p ./`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] vscode:prepublish script 'node ./node_modules/vscode/bin/compile -p ./'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the vim package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./node_modules/vscode/bin/compile -p ./
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs vim
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls vim
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/soojae/Documents/Vim/npm-debug.log
[23:56:18] 'compile' errored after 12 s
[23:56:18] Error: Command `npm run vscode:prepublish` failed with exit code 1
    at ChildProcess.exithandler (child_process.js:211:12)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:192:7)
    at maybeClose (internal/child_process.js:890:16)
    at Socket.<anonymous> (internal/child_process.js:334:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:189:7)
    at Pipe._handle.close [as _onclose] (net.js:501:12)
[23:56:25] Finished 'tslint' after 19 s
  • VSCode Version: 1.9.1
  • VsCodeVim Version: 0.5.3
  • OS: macOS Sierra 10.12.3
@jpoon
Copy link
Member

jpoon commented Feb 24, 2017

Can you try doing a node run postinstall?

@misoguy
Copy link
Contributor Author

misoguy commented Feb 25, 2017

I believe you meant npm run postinstall
I tried it and got the following results

> node ./node_modules/vscode/bin/install && gulp init

Detected VS Code engine version: ^1.6.0
Found minimal version that qualifies engine range: 1.6.0
Fetching vscode.d.ts from: https://raw.githubusercontent.com/Microsoft/vscode/1.6.0/src/vs/vscode.d.ts
vscode.d.ts successfully installed!

After that I tried gulp and ended up with the same error as previously mentioned

@jpoon
Copy link
Member

jpoon commented Feb 25, 2017

Hmm, looks like our build is broken. Looks like some dependency changed beneath us...

They look like minor tslint issues; feel free to submit a PR.

@misoguy
Copy link
Contributor Author

misoguy commented Feb 25, 2017

I'd gladly submit a PR for this case.
It looks like tslint issues as you mentioned.
Should the PR be about changing the tslint to make the build work or changing the code base so that the build works without changing the current tslint?

@jpoon
Copy link
Member

jpoon commented Feb 25, 2017

Either or :)

@misoguy
Copy link
Contributor Author

misoguy commented Feb 25, 2017

Understood, I'll try to get on it after the weekends

@johnfn
Copy link
Member

johnfn commented Feb 25, 2017

The ts bugs are legit so I'd definitely prefer them to be fixed! I don't understand why some people see them and others don't, though. Must be a version issue.

@misoguy
Copy link
Contributor Author

misoguy commented Feb 25, 2017

@johnfn you were right about the version issue, seems like typescript version is the culprit to this issue. I have submitted a PR for this fix. I'd love to get a comment about the PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants