Error: Attempted to get parent of root folder "/"

Đang mở
#657 2 bình luận 3 reaction 1 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

pending triage
Describe the bug

I keep getting failures of it looking up directories when starting the vitest extension in VS Code.

Reproduction

https://github.com/TypeCellOS/BlockNote/

Output
[INFO 9:34:39 AM] [v0.0.0] Vitest extension is activated because Vitest is installed or there is a Vite/Vitest config file in the workspace.
[INFO 9:34:40 AM] [API] Resolving workspace configs: vitest.workspace.ts
[INFO 9:34:41 AM] [TERMINAL] Initiated ws connection via ws://localhost:57840
[INFO 9:34:41 AM] [TERMINAL] Starting Vitest v2.1.9 (blockNote/vitest.workspace.ts) in the terminal: node /Users/nickthesick/.cursor/extensions/vitest.explorer-1.28.2-universal/dist/worker.js;
[INFO 9:34:41 AM] [TERMINAL] Shell integration is initiated.
[INFO 9:34:42 AM] [API] Vitest v2.1.9 (blockNote/vitest.workspace.ts) terminal process 65980 created
[INFO 9:34:42 AM] [API] Resolving configs: tests/vite.config.ts, playground/vite.config.ts, xl-pdf-exporter/vite.config.ts, mantine/vite.config.ts, xl-docx-exporter/vite.config.ts, code-block/vite.config.ts, ariakit/vite.config.ts, react/vite.config.ts, server-util/vite.config.ts, xl-ai-server/vite.config.ts, xl-ai/vite.config.ts, core/vite.config.ts, core/vite.config.bundled.ts, shadcn/vite.config.ts, xl-email-exporter/vite.config.ts, xl-multi-column/vite.config.ts, xl-odt-exporter/vite.config.ts, 01-ui-elements-remove/vite.config.ts, 17-advanced-tables-2/vite.config.ts, 12-static-formatting-toolbar/vite.config.ts, 03-formatting-toolbar-block-type-items/vite.config.ts, 07-suggestion-menus-slash-menu-component/vite.config.ts, 01-tiptap-arrow-conversion/vite.config.ts, 07-converting-blocks-to-odt/vite.config.ts, 06-converting-blocks-to-docx/vite.config.ts, 11-uppy-file-panel/vite.config.ts, 10-suggestion-menus-grid-mentions/vite.config.ts, 08-converting-blocks-to-react-email/vite.config.ts, 15-advanced-tables/vite.config.ts, 08-suggestion-menus-emoji-picker-columns/vite.config.ts, 01-converting-blocks-to-html/vite.config.ts, 09-suggestion-menus-emoji-picker-component/vite.config.ts, 02-formatting-toolbar-buttons/vite.config.ts, 05-converting-blocks-to-pdf/vite.config.ts, 04-converting-blocks-from-md/vite.config.ts, 02-converting-blocks-from-html/vite.config.ts, 03-converting-blocks-to-md/vite.config.ts, react-custom-blocks/vite.config.ts, draggable-inline-content/vite.config.ts, 04-pdf-file-block/vite.config.ts, 06-toggleable-blocks/vite.config.ts, 03-font-style/vite.config.ts, react-custom-styles/vite.config.ts, react-custom-inline-content/vite.config.ts, 02-suggestion-menus-mentions/vite.config.ts, 01-alert-block/vite.config.ts, 05-alert-block-full-ux/vite.config.ts, 02-liveblocks/vite.config.ts, 05-comments-with-sidebar/vite.config.ts, 01-partykit/vite.config.ts, 03-y-sweet/vite.config.ts, 04-comments/vite.config.ts, 06-ghost-writer/vite.config.ts, 14-experimental-mobile-formatting-toolbar/vite.config.ts, 07-forking/vite.config.ts, 05-side-menu-drag-handle-items/vite.config.ts, 01-minimal/vite.config.ts, 16-link-toolbar-buttons/vite.config.ts, 04-with-collaboration/vite.config.ts, 04-side-menu-buttons/vite.config.ts, 13-custom-ui/vite.config.ts, 06-suggestion-menus-slash-menu-items/vite.config.ts, 03-custom-ai-menu-items/vite.config.ts, 02-playground/vite.config.ts, 01-theming-dom-attributes/vite.config.ts, 06-code-block/vite.config.ts, 02-changing-font/vite.config.ts, 05-removing-default-blocks/vite.config.ts, 13-custom-paste-handler/vite.config.ts, testing/vite.config.ts, 09-shadcn/vite.config.ts, 11-custom-placeholder/vite.config.ts, 03-multi-column/vite.config.ts, 07-custom-code-block/vite.config.ts, 02-block-objects/vite.config.ts, 03-theming-css/vite.config.ts, 06-block-manipulation/vite.config.ts, 05-theming-css-variables-code/vite.config.ts, 12-multi-editor/vite.config.ts, 01-minimal/vite.config.ts, 08-ariakit/vite.config.ts, 07-selection-blocks/vite.config.ts, 04-theming-css-variables/vite.config.ts, react-vanilla-custom-inline-content/vite.config.ts, react-vanilla-custom-styles/vite.config.ts, react-vanilla-custom-blocks/vite.config.ts, 01-file-uploading/vite.config.ts, 04-rendering-static-documents/vite.config.ts, 02-saving-loading/vite.config.ts, 03-s3/vite.config.ts, 04-default-blocks/vite.config.ts, 10-localization/vite.config.ts
[INFO 9:34:42 AM] [API] Ignoring config tests/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config playground/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config xl-pdf-exporter/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config mantine/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config xl-docx-exporter/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config code-block/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config ariakit/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config react/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config server-util/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config xl-ai-server/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config xl-ai/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config core/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config core/vite.config.bundled.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config shadcn/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config xl-email-exporter/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config xl-multi-column/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config xl-odt-exporter/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 01-ui-elements-remove/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 17-advanced-tables-2/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 12-static-formatting-toolbar/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 03-formatting-toolbar-block-type-items/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 07-suggestion-menus-slash-menu-component/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 01-tiptap-arrow-conversion/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 07-converting-blocks-to-odt/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 06-converting-blocks-to-docx/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 11-uppy-file-panel/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 10-suggestion-menus-grid-mentions/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 08-converting-blocks-to-react-email/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 15-advanced-tables/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 08-suggestion-menus-emoji-picker-columns/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 01-converting-blocks-to-html/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 09-suggestion-menus-emoji-picker-component/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 02-formatting-toolbar-buttons/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 05-converting-blocks-to-pdf/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 04-converting-blocks-from-md/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 02-converting-blocks-from-html/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 03-converting-blocks-to-md/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config react-custom-blocks/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config draggable-inline-content/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 04-pdf-file-block/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 06-toggleable-blocks/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 03-font-style/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config react-custom-styles/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config react-custom-inline-content/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 02-suggestion-menus-mentions/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 01-alert-block/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 05-alert-block-full-ux/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 02-liveblocks/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 05-comments-with-sidebar/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 01-partykit/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 03-y-sweet/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 04-comments/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 06-ghost-writer/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 14-experimental-mobile-formatting-toolbar/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 07-forking/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 05-side-menu-drag-handle-items/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 01-minimal/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 16-link-toolbar-buttons/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 04-with-collaboration/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 04-side-menu-buttons/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 13-custom-ui/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 06-suggestion-menus-slash-menu-items/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 03-custom-ai-menu-items/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 02-playground/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 01-theming-dom-attributes/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 06-code-block/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 02-changing-font/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 05-removing-default-blocks/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 13-custom-paste-handler/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config testing/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 09-shadcn/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 11-custom-placeholder/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 03-multi-column/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 07-custom-code-block/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 02-block-objects/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 03-theming-css/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 06-block-manipulation/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 05-theming-css-variables-code/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 12-multi-editor/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 01-minimal/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 08-ariakit/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 07-selection-blocks/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 04-theming-css-variables/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config react-vanilla-custom-inline-content/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config react-vanilla-custom-styles/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config react-vanilla-custom-blocks/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 01-file-uploading/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 04-rendering-static-documents/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 02-saving-loading/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 03-s3/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 04-default-blocks/vite.config.ts because there is a workspace config in the parent folder
[INFO 9:34:42 AM] [API] Ignoring config 10-localization/vite.config.ts because there is a workspace config in the parent folder
[Error 9:34:42 AM] [Error Error] Fatal Error: Attempted to get parent of root folder "/".
Error: Fatal Error: Attempted to get parent of root folder "/".
	at Un.getOrCreateFolderTestItem (/Users/nickthesick/.cursor/extensions/vitest.explorer-1.28.2-universal/dist/extension.js:22:8709)
	at Un.getOrCreateFolderTestItem (/Users/nickthesick/.cursor/extensions/vitest.explorer-1.28.2-universal/dist/extension.js:22:8810)
	at Un.getOrCreateFolderTestItem (/Users/nickthesick/.cursor/extensions/vitest.explorer-1.28.2-universal/dist/extension.js:22:8810)
	at Un.getOrCreateFolderTestItem (/Users/nickthesick/.cursor/extensions/vitest.explorer-1.28.2-universal/dist/extension.js:22:8810)
	at Un.getOrCreateFolderTestItem (/Users/nickthesick/.cursor/extensions/vitest.explorer-1.28.2-universal/dist/extension.js:22:8810)
	at Un.getOrCreateFolderTestItem (/Users/nickthesick/.cursor/extensions/vitest.explorer-1.28.2-universal/dist/extension.js:22:8810)
	at Un.getOrCreateFolderTestItem (/Users/nickthesick/.cursor/extensions/vitest.explorer-1.28.2-universal/dist/extension.js:22:8810)
	at Un.getOrCreateFolderTestItem (/Users/nickthesick/.cursor/extensions/vitest.explorer-1.28.2-universal/dist/extension.js:22:8810)
	at Un.getOrCreateFolderTestItem (/Users/nickthesick/.cursor/extensions/vitest.explorer-1.28.2-universal/dist/extension.js:22:8810)
	at Un.getOrCreateFileTestItem (/Users/nickthesick/.cursor/extensions/vitest.explorer-1.28.2-universal/dist/extension.js:22:8147)
	at Un.discoverAllTestFiles (/Users/nickthesick/.cursor/extensions/vitest.explorer-1.28.2-universal/dist/extension.js:22:7263)
	at Un.watchTestFilesInWorkspace (/Users/nickthesick/.cursor/extensions/vitest.explorer-1.28.2-universal/dist/extension.js:22:9121)
	at Ai._defineTestProfiles (/Users/nickthesick/.cursor/extensions/vitest.explorer-1.28.2-universal/dist/extension.js:24:2791)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async Ai.defineTestProfiles (/Users/nickthesick/.cursor/extensions/vitest.explorer-1.28.2-universal/dist/extension.js:24:1701)
	at async Ai.activate (/Users/nickthesick/.cursor/extensions/vitest.explorer-1.28.2-universal/dist/extension.js:24:7158)
	at async Uy (/Users/nickthesick/.cursor/extensions/vitest.explorer-1.28.2-universal/dist/extension.js:24:662)
	at async Pue._activate (file:///Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:136:16497)
	at async Pue._waitForDepsThenActivate (file:///Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:136:16439)
	at async Pue._initialize (file:///Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:136:15801)
Extension Version

1.28.2

Vitest Version

2.1.9

Validations
Ngôn ngữ chính
TypeScript
Star
934
Fork
123
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của vitest-dev/vscode

Tất cả issue của vitest-dev/vscode

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.