Chrome devtools console method autocompletion for node is not working
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 122k
- Fork
- 37.4k
- Merge trung bình
- 4 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 272
Mô tả
Version
v22.13.0
Platform
Microsoft Windows NT 10.0.19045.0 x64
Subsystem
No response
What steps will reproduce the bug?
- open Chrome 132.0.6834.84 and load chrome://inspect
- open dedicated devtools for node
- run "node --inspect"
- wait for node to connect to devtools
- enter "global." in the devtools console
- the autocompletion method list does not pop up
How often does it reproduce? Is there a required condition?
always
What is the expected behavior? Why is that the expected behavior?
The autocompletion method list is expected to pop up as it does for browser objects and as it used to for node:
What do you see instead?
No autocomplete method popup.
Additional information
Since this is working in Chrome 113, it appeared as a Chrome issue and was submitted on the Chrome bug tracker, but was closed with the following response:
https://issues.chromium.org/u/2/issues/390205856#comment5
This is a Node.js issue. I can reproduce this down to Node 14, but with Node 12 autocompletion works as expected.
The way autocompletion of object properties works is that we evaluate the input, but abort if this evaluation may cause a side effect. Without side effect, we get the object properties and offer these properties as autocomplete options.
From Node 14, side effect check fails. You can easily check this by running Node with node --trace-side-effect-free-evaluate --inspect.
I would suggest you file an issue on the Node issue tracker.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Tái hiện bằng Node v22.13.0 với node --inspect, Chrome 132 và global. trong console DevTools chuyên dụng. So sánh với node --trace-side-effect-free-evaluate --inspect và lần theo đường dẫn đánh giá side-effect của tính năng tự động hoàn thành của inspector; được coi là hoàn tất khi các gợi ý phương thức xuất hiện trở lại cho global..
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- devtools, javascript, nodejs
- Lĩnh vực
- developer-experience, devtools
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 52/100