Skip to content

Wrong files when space in the path (MacOS) #131

Description

@kugatsu765

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",

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions