-
-
Notifications
You must be signed in to change notification settings - Fork 85
Description
Bug Description
The Component Inspector creates incorrect file paths when the project path contains spaces, resulting in truncated paths and file creation failures.
Current Behavior
When using a project path with spaces, the Component Inspector only processes the path up to the first space character.
Example:
Expected path:
/Users/aaaaa/Local files/Dev/Gitlab xxx/app-name/src/components/test.vue
Actual result: Creates file at
/Users/aaaaa/Local
/Users/aaaaa/Local files/Dev/Gitlab xxx/app-name/files/Dev/Gitlab
/Users/aaaaa/Local files/Dev/Gitlab xxx/myApps/xxx/app-name/src/components/test.vue
Expected Behavior
The Component Inspector should correctly handle file paths containing spaces by properly escaping or quoting them.
Steps to Reproduce
Create a project in a directory path that contains spaces (e.g., Local files/Dev/Project name/)
Use the Component Inspector on a component in this project
Observe that the file path is truncated at the first space
Environment
OS: macOS
Project path: /Users/aaaaa/Local files/Dev/Gitlab xxx/app-name/
Component Inspector version: "vite-plugin-vue-devtools": "^8.0.2",