Skip to content

vscode problem matcher improvements#408

Merged
bors[bot] merged 2 commits intorust-lang:masterfrom
vemoo:problem-matchers
Jan 2, 2019
Merged

vscode problem matcher improvements#408
bors[bot] merged 2 commits intorust-lang:masterfrom
vemoo:problem-matchers

Conversation

@vemoo
Copy link
Contributor

@vemoo vemoo commented Jan 2, 2019

The problem matcher wasn't working properly and looking at the rustc errors i realized it could be simplified.

I also added a new problem matcher that can be used with https://github.com/passcod/cargo-watch to get the errors in the editor on save. To use it one can create a tasks.json file with:

{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "shell",
            "label": "cargo watch",
            "command": "cargo",
            "isBackground": true,
            "args": [
                "watch",
                "-c"
            ],
            "problemMatcher": [
                "$rustc-watch"
            ]
        }
    ]
}

I initially implemented it like this: cff9f62 but i think there's a bug in vscode so i worked around it by copying the pattern for both problem matchers. The first commit can be used if microsoft/vscode#65840 is merged.

@matklad
Copy link
Contributor

matklad commented Jan 2, 2019

bors r+

Thanks!

bors bot added a commit that referenced this pull request Jan 2, 2019
408: vscode problem matcher improvements r=matklad a=vemoo

The problem matcher wasn't working properly and looking at the rustc errors i realized it could be simplified.

I also added a new problem matcher that can be used with https://github.com/passcod/cargo-watch to get the errors in the editor on save. To use it one can create a tasks.json file with:
```json
{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "shell",
            "label": "cargo watch",
            "command": "cargo",
            "isBackground": true,
            "args": [
                "watch",
                "-c"
            ],
            "problemMatcher": [
                "$rustc-watch"
            ]
        }
    ]
}
```
I initially implemented it like this: cff9f62 but i think there's a bug in vscode so i worked around it by copying the pattern for both problem matchers. The first commit can be used if microsoft/vscode#65840 is merged.


Co-authored-by: Bernardo <berublan@gmail.com>
@bors
Copy link
Contributor

bors bot commented Jan 2, 2019

Build succeeded

And happy new year from bors! 🎉

@bors bors bot merged commit 96f0683 into rust-lang:master Jan 2, 2019
kjeremy added a commit to kjeremy/rust-analyzer that referenced this pull request Feb 18, 2019
Now that microsoft/vscode#65840 is in the latest
release we can use the first commit from rust-lang#408
bors bot added a commit that referenced this pull request Feb 19, 2019
858: Use named multiline Problem Matcher r=matklad a=kjeremy

Now that microsoft/vscode#65840 is in the latest release we can use the first commit from #408

Co-authored-by: kjeremy <kjeremy@gmail.com>
matklad pushed a commit to matklad/vscode-rust that referenced this pull request Jul 13, 2020
Now that microsoft/vscode#65840 is in the latest
release we can use the first commit from rust-lang/rust-analyzer#408
matklad pushed a commit to matklad/vscode-rust that referenced this pull request Jul 13, 2020
858: Use named multiline Problem Matcher r=matklad a=kjeremy

Now that microsoft/vscode#65840 is in the latest release we can use the first commit from rust-lang/rust-analyzer#408

Co-authored-by: kjeremy <kjeremy@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants