Open in Editor and Open in Finder shortcuts fail with a missing path argument
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- developer-experience, tooling
Hướng nghiên cứu
Bắt đầu với packages/core/src/node/context.ts và các RPC handler trong packages/core/src/node/rpc/public, sau đó kiểm tra packages/hub-ui/src/client/components/views-builtin/SettingsShortcuts.vue và packages/hub-ui/src/client/state/commands.ts của Devframe. Tái hiện sự cố bằng pnpm -C playgrounds/core run dev và các Shortcut được liệt kê. Công việc được xem là hoàn tất khi đã thống nhất hành vi của Shortcut và cả hai lệnh không còn tạo ra lỗi đường dẫn bị thiếu trong repository thích hợp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
Settings → Shortcuts lets me assign shortcuts to Open in Editor and Open in Finder, but pressing either shortcut does nothing visible. The browser console reports:
Error: The "paths[1]" argument must be of type string. Received undefined
Both commands failed consistently when repeated. Cmd+K still opens the command palette normally.
Reproduction
Reproduced with the repository's core playground:
- Start the playground with
pnpm -C playgrounds/core run devafter setting up the repository. - Open the playground in Chrome and authorize Vite DevTools.
- Go to Settings → Shortcuts.
- Assign Ctrl+Shift+E to Open in Editor and Ctrl+Shift+Y to Open in Finder.
- Close the shortcut editor, focus the host page, and press each shortcut.
Neither action opens its target; both produce the error above. Each was repeated twice with the same result. This reproduction uses the existing playground rather than a separate reduced project.
Expected behavior
A shortcut offered in Settings should have a usable execution path. Could you clarify the intended behavior for these two commands: are they meant to support user-assigned shortcuts, and if so, where should the target path come from?
Code observations and ownership
The failing path crosses both repositories:
- Vite DevTools registers these two commands with a required
path: stringandshowInPalette: false. Its RPC handlers resolve that path against the workspace root. The intended target of these Vite-specific commands belongs here. - Devframe's
@devframes/hub-uiowns the shortcut settings that offer these bindings and the keyboard dispatcher that callsexecute(id)without arguments. Handling commands that require arguments may therefore need a change upstream in Devframe.
Filed here because this is reproducible in Vite DevTools with its built-in commands. Could you confirm the intended shortcut behavior and whether this issue should be transferred to devframes/devframe? These observations explain the missing-path error, but do not establish whether the intended resolution is to supply a target or restrict shortcut eligibility.
System Info
- macOS, Chrome 153
- Vite DevTools core playground; package version: 0.7.3
@devframes/huband@devframes/hub-ui: 0.9.18
Used Package Manager
pnpm
- Ngôn ngữ chính
- TypeScript
- Star
- 1.2k
- Fork
- 89
- Merge trung bình
- 18 giờ 46 phút
- Pull request đã merge (30 ngày)
- 24
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.
Issue khác của vitejs/devtools
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
enhancement
-
pending triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
-
DevTools error page origin Đang mởpending triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
Tất cả issue của vitejs/devtools
Issue tương tự
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Crush Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
ElementsProject/cln-application#167 · 1 bình luận · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Quantco/pnpm-licenses#17 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100