-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updaet documentation * Add missing error transformation script * Make fix patht to transformation script
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
# this make file is just a small wrapper/helper to easily use this workspace within vim | ||
# | ||
# 1. Build workspace within vim and retrieve compile errors + warnings | ||
# :make c | ||
# 2. Format the code | ||
# :make f | ||
|
||
t: c | ||
|
||
c: | ||
cargo build --workspace --message-format=json | python3 ~/.bin/rerr.py | ||
cargo build --workspace --message-format=json | python3 ./scripts/rerr.py | ||
|
||
f: | ||
cargo fmt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env python3 | ||
import sys | ||
import json | ||
|
||
for line in map(str.rstrip, sys.stdin): | ||
m = json.loads(line) | ||
try: | ||
for s in m["message"]["spans"]: | ||
print("{}:{}: {}".format(s["file_name"], s["line_start"], m["message"]["message"])) | ||
except: | ||
pass |