Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.4k
tools: update inspector_protocol to 0aafd2#27770
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
nodejs-github-bot commented May 19, 2019
bnoordhuis commented May 20, 2019
You need these changes from 608878c: Detailsdiff --git a/tools/inspector_protocol/code_generator.py b/tools/inspector_protocol/code_generator.py index 1e12343e05..7b555d7478 100755 --- a/tools/inspector_protocol/code_generator.py+++ b/tools/inspector_protocol/code_generator.py@@ -36,9 +36,9 @@ module_path, module_filename = os.path.split(os.path.realpath(__file__)) def read_config(): # pylint: disable=W0703 - def json_to_object(data, output_base, config_base):+ def json_to_object(data, output_base): def json_object_hook(object_dict): - items = [(k, os.path.join(config_base, v) if k == "path" else v) for (k, v) in object_dict.items()]+ items = [(k, os.path.join(output_base, v) if k == "path" else v) for (k, v) in object_dict.items()] items = [(k, os.path.join(output_base, v) if k == "output" else v) for (k, v) in items] keys, values = list(zip(*items)) return collections.namedtuple('X', keys)(*values) @@ -69,7 +69,6 @@ def read_config(): jinja_dir = arg_options.jinja_dir output_base = arg_options.output_base config_file = arg_options.config - config_base = os.path.dirname(config_file) config_values = arg_options.config_value except Exception: # Work with python 2 and 3 http://docs.python.org/py3k/howto/pyporting.html @@ -80,7 +79,7 @@ def read_config(): try: config_json_file = open(config_file, "r") config_json_string = config_json_file.read() - config_partial = json_to_object(config_json_string, output_base, config_base)+ config_partial = json_to_object(config_json_string, output_base) config_json_file.close() defaults ={".use_snake_file_names": False,Now I get C++ compile errors, I'll dig some more. :-) Details |
bnoordhuis commented May 20, 2019 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
@targosbnoordhuis/io.js@4ac1158716 should give you a compiling build. Tests pass for me locally. |
Co-authored-by: Ben Noordhuis <[email protected]>
targos commented May 20, 2019
Thank you Ben, I included your changes! |
nodejs-github-bot commented May 20, 2019
targos commented May 21, 2019
bnoordhuis left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Partially RS)LGTM with some observations:
You check in roll.py but that's not something we use or could use, right?
Likewise, encoding_test.cc and encoding_test_helper.h aren't used or even built.
You check in encoding.cc and encoding.h but they're (re)generated from encoding_cpp.template and encoding_h.template, aren't they?
Aside: interesting that the inspector is adopting CBOR. Not that we currently use it but it's an interesting avenue to explore if we ever run into performance problems with the JSON-based protocol.
targos commented May 21, 2019
So, what I did is copy the same files the V8 checks in here: https://github.com/v8/v8/tree/master/third_party/inspector_protocol |
Trott commented May 30, 2019 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
targos commented May 30, 2019
I was waiting for a 2nd LGTM but now it can land 👍 |
Trott left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More than a bit rubber-stampy of me but LGTM
Trott commented Jun 1, 2019
Landed in 5aaa7fe |
Co-authored-by: Ben Noordhuis <[email protected]> PR-URL: nodejs#27770 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Co-authored-by: Ben Noordhuis <[email protected]> PR-URL: #27770 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]> Reviewed-By: Rich Trott <[email protected]>
/cc @nodejs/v8-inspector
I have the following error that I don't know how to fix: