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

Version 1.13 breaks extensions that use vscode-debugadapter #65

Closed
ramya-rao-a opened this issue Sep 23, 2016 · 6 comments
Closed

Version 1.13 breaks extensions that use vscode-debugadapter #65

ramya-rao-a opened this issue Sep 23, 2016 · 6 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@ramya-rao-a
Copy link

ramya-rao-a commented Sep 23, 2016

https://travis-ci.org/Microsoft/vscode-go/jobs/162066430 is a travis build failure for the Go extension that uses vscode-debugadapter with the below setting in package.json
"vscode-debugadapter": "^1.11.0"

I can reproduce this locally by clearing the node_nodules folder and running npm install followed by node ./node_modules/vscode/bin/compile
The error is: node_modules/vscode-debugadapter/lib/protocol.d.ts(1,1): error TS1084: Invalid 'reference' directive syntax.

No error if the ^ in the package.json is dropped "vscode-debugadapter": "1.11.0"

Travis builds ran just fine yesterday, so this should be due to the latest upgrade to 1.13 which uses Typescript 2.0 which could have breaking changes.

Including @mousetraps who helped to narrow this down

@weinand
Copy link
Contributor

weinand commented Sep 23, 2016

@ramya-rao-a yes, the debug protocol libraries for node have been updated for TypeScript 2.0.2 and the '@types' feature.

The 1.6 release notes mention this and provide a workaround if someone is not ready for the TypeScript upgrade:

Debug Protocol server library upgraded to TypeScript 2.0.2

The server library vscode-debugadapter for the VS Code debug protocol has been upgraded to TypeScript 2.0.2 and its new '@types' feature.

If you are not ready to upgrade your debug extension to TypeScript 2.x you can continue to use the previous version of the library by setting your dependencies in the package.json to the 1.12 version:

  "dependencies": {
    "vscode-debugprotocol": "1.12.*",
    "vscode-debugadapter": "1.12.*"
    ...
  },
  "devDependencies": {
    "vscode-debugadapter-testsupport": "1.12.*",
    ...
  },

@weinand weinand added the debug label Sep 23, 2016
@weinand weinand closed this as completed Sep 23, 2016
@kieferrm
Copy link
Member

@weinand according to https://docs.npmjs.com/getting-started/semantic-versioning shouldn't we increment the major version of the npm package as this is a breaking change?

@mousetraps
Copy link

Agreed re semver. Also did a quick search to understand the impact and almost everyone depending on vscode-debugadapter is using carets and was thereby silently broken by this change. https://github.com/search?l=json&q=vscode-debugadapter&ref=simplesearch&type=Code&utf8=%E2%9C%93

Sent from my Rotary Phone

    _____________________________

From: Kai Maetzel notifications@github.com
Sent: Friday, September 23, 2016 7:17 AM
Subject: Re: [Microsoft/vscode-debugadapter-node] Version 1.13 breaks extensions that use vscode-debugadapter (#65)
To: Microsoft/vscode-debugadapter-node vscode-debugadapter-node@noreply.github.com
Cc: Mention mention@noreply.github.com, Sara Itani itani@outlook.com

@weinand according to https://docs.npmjs.com/getting-started/semantic-versioning shouldn't we increment the major version of the npm package as this is a breaking change?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@weinand
Copy link
Contributor

weinand commented Sep 23, 2016

I don't want to increment the major version because there is no semantic change in the protocol and everything is 'binary' compatible. The only issue is that TS 2.0 produces some /// <reference types="node" /> at the beginning of the d.ts files which TS 1.8 cannot handle. Removing this fixes the issue.

@weinand weinand self-assigned this Sep 23, 2016
@weinand weinand added this to the September 2016 milestone Sep 23, 2016
@weinand weinand added the bug Issue identified by VS Code Team member as probable bug label Sep 23, 2016
@weinand
Copy link
Contributor

weinand commented Sep 23, 2016

I've removed the /// <reference types="node" /> from the vscode-debugadapter and the vscode-testsupport modules and published them as v1.13.1 on npm.

@ramya-rao-a please try to rebuild vscode-go.

@ramya-rao-a
Copy link
Author

@weinand That works. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

4 participants