Uh oh!
There was an error while loading. Please reload this page.
deps: move inspector_protocol to deps - #22411
Conversation
Dependencies that influence directly what goes into the `node` binary should be in `deps/`. Refs: nodejs#21975 (comment)
addaleax
commented
Aug 20, 2018
Regarding the fixup commit here … it seems interesting that Travis CI caught something that our own test-commit-linuxone didn’t …? 🤔 |
There was a problem hiding this comment.
This is not code this is a code generation tool.
The code this tool uses is in https://github.com/nodejs/node/tree/master/src/inspector
Ref: https://chromium.googlesource.com/deps/inspector_protocol/
Ref: #21975 (review)
refack
commented
Aug 20, 2018
IMO this is equivalent to
( Just to be clear I'm -1 on this change, and request that is not dismissed (unless overridden by a TSC vote). /CC @nodejs/build @nodejs/build-files @nodejs/v8-update @nodejs/v8 @addaleax Since you brought it up, I found your comment #21975 (comment) confusing and even a little bit disrespectful. If you had critique on my comment you should brought it up then and there. To all those to approved, I'd like to remind you of the policy: |
refack
commented
Aug 20, 2018
refack
commented
Aug 20, 2018
Seems like we have |
joyeecheung
commented
Aug 20, 2018
@refack The code generated by (Also on a side note, do we need to bump the V8 embedder suffix if we update inspector_protocol? If we do, then I believe it brings this closer to the |
As mentioned in #21975 this copy of the tool is node's own. It is meant to be independent of the one in https://github.com/nodejs/node/tree/master/deps/v8/third_party/inspector_protocol. So no need to change |
refack
commented
Aug 20, 2018
BTW if the name is confusing. This actually has very little to do with the debugging inspector. We use it to generate the code used to communicate with V8 to get VM tracing information. |
joyeecheung
commented
Aug 20, 2018
Ah, thanks, didn't know that!
If there is a bug in the code generated by |
kfarnung
commented
Aug 20, 2018
@refack The generated code isn't used to communicate with V8, it's used to define an object model that represents the CrDP interface. It's up to the implementer of the generated classes (in this case node) to interact with the system and perform the requested action. It's there to act as a bridge between the debugger requests (e.g. DevTools, VS Code, etc.) and the application code that can service the requests. The name |
Thank you @kfarnung for the explanation. Given that #21975 established that node needs it's own version, back to the point of this PR, is |
eugeneo
commented
Aug 20, 2018
inspector_protocol is a tool - it is a Python codegenerator and a collection of templates. |
addaleax
commented
Aug 20, 2018
Okay everyone, I’m closing this … this isn’t that important, plus I talked to @refack and he has some ideas around an altogether better approach for the particular issue that the “extra” dependencies solve. |
Dependencies that influence directly what goes into the
nodebinaryshould be in
deps/.Refs: #21975 (comment)
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes