Ask Your Question
4

What is the solution for rectifying the problem of an inaccurate path in vscode problem matcher while compiling using $tsc-watch?

asked 2022-05-17 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-01-23 02:00:00 +0000

qstack gravatar image

There are a few possible solutions to rectify the problem of an inaccurate path in the VSCode problem matcher while compiling using $tsc-watch:

  1. Double-check the file paths: Ensure that the file paths specified in your VSCode tasks.json file match the correct file paths in your project directory.

  2. Use relative paths: Instead of specifying absolute file paths, use relative paths in your tasks.json file. This ensures that the file paths are relative to the project directory, rather than the root directory.

  3. Use the CWD (current working directory): Set the task's "cwd" property to the project directory. This ensures that the compiler runs in the project directory, which may resolve any filepath issues.

  4. Use a different problem matcher: You can try using a different built-in problem matcher, or even create a custom problem matcher that more accurately matches your compiler's output.

  5. Upgrade TypeScript: If you're using an older version of TypeScript, upgrading to the latest version may resolve any issues with inaccurate path matching.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-05-17 11:00:00 +0000

Seen: 10 times

Last updated: Jan 23 '22