Skip to content

Fails on paths that contain backslashes (\) #3

@JesseTG

Description

@JesseTG

When using a build-directory input that contains a backslash, as is common on Windows, then the problem matcher will fail to install with a message similar to the following:

Run root-project/gcc-problem-matcher-improved@9d83f12b27a78210f0485fb188e08d94fa807a6d
  with:
    build-directory: D:\a\melonds-ds\melonds-ds/build
  env:
    BUILD_DIR: D:\a\melonds-ds\melonds-ds/build
    DIST_DIR: D:\a\melonds-ds\melonds-ds/build/dist
Error: Unable to process command '::add-matcher::D:\a\_actions\root-project\gcc-problem-matcher-improved\9d83f12b27a78210f0485fb188e08d94fa807a6d\dist/gcc_matcher.json' successfully.
Error: Bad JSON escape sequence: \a. Path 'problemMatcher[0].pattern[0].regexp', line 7, position 36.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions