Skip to content

Crashing when project path contains Chinese characters. #2236

@CryUshio

Description

@CryUshio

Stack trace

panic: regexp: Compile(`(?i)^((/Users/x/develop/proj_\副\本/src/node(/.+?)?/[^/]*)|(/Users/x/develop/proj_\副\本/src/node\-common(/.+?)?/[^/]*)|(/Users/x/develop/proj_\副\本/node_modules(/.+?)?/[^/]*)|(/Users/x/develop/proj_\副\本/src/[^/]*/[^/]*/node_modules(/.+?)?/[^/]*))($|/)`): error parsing regexp: invalid escape sequence: `\副`

Steps to reproduce

1.Create a project with Chinese characters in its name and initialize node_modules.
2.Use the VS Code TypeScript Native plugin and start the service.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions