-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paths relative to some parent directory in task with problemMatcher #27427
Comments
@mprobst it does. The problem matcher accept for the fileLocation property and array of strings as well. Something like:
Let me know if this works for you. If not ping and I will reopen the issue. |
Seems to me that with the ".." fix you have to edit your task file every time you open from a different location. |
To be more clear, the reported errors are always relative to the current working directory, but the current working directory changes during the build process. And to complicate things more the leaving statements pops back to the previous one, so if you parse the entering and Leaving statements, it is not stateless. You have to keep track of a stack of directories. |
@xaljox this is a know problem we have an issue for. |
See #11663 |
VSCode Version:
Version 1.12.2
Commit 19222cd
Date 2017-05-10T13:16:25.899Z
Shell 1.6.6
Renderer 56.0.2924.87
Node 7.4.0
OS Version: Linux 4.4.0-75-generic Add support for Perl5 symbol indexing #96~14.04.1-Ubuntu SMP Thu Apr 20 11:06:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
I'm trying to write tasks for the bazel build system (http://bazel.build). With bazel, it's common to have very large projects, so users often open subdirectories in VSCode, instead of the project root. bazel still prints all messages relative to its workspace root though. For example, given the source tree:
Users might open
my/project/
in VSCode (as the workspace location). Now runningbazel build
with a working directory ofmy/project
, it'll print errors such as:Note that paths are relative to the workspace root (
my/
above, the directory containing the WORKSPACE file).problemMatcher
supports paths relative to the directory opened in VSCode and absolute paths, but AFAICT not paths relative to some parent folder.I guess this is hard to support in a configuration file format. Maybe it'd be easier if there was an API for an extension to contribute problem matchers (and tasks, for that matter)?
The text was updated successfully, but these errors were encountered: