Crates.io | sourcemap-resolver |
lib.rs | sourcemap-resolver |
version | 0.1.1 |
source | src |
created_at | 2024-06-27 08:24:29.751794 |
updated_at | 2024-07-03 03:41:33.885131 |
description | Sourcemap resolving library and CLI |
homepage | |
repository | https://github.com/veryl-lang/sourcemap-resolver |
max_upload_size | |
id | 1285198 |
size | 49,158 |
sourcemap-resolver is a CLI utility and library to resolve Source Map Revision 3 which is adopted as Veryl's sourcemap. Through the CLI command, a file location in log files can be resolved to the original location.
For example, if the line 28 in test.sv
is generated from line 26 in test.veryl
, the following annotation will be added by the CLI.
ERROR: [VRFC 10-2865] module 'test3' ignored due to previous errors [/path.../test.sv:28]
^-- /path.../test.veryl:26:18
The prebuilt binary will be provided within Veryl's release. The following command can be used too.
cargo install sourcemap-resolver
To annotate the existing logs, the following command can be used.
$ sourcemap-resolver test.log
Pipe can be used too to annotate on the fly.
$ [command] | sourcemap-resolver
The following tools are supported:
If you want to add another tool support, please open an issue and submit a log example.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.