Skip to content
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

allow for absolute paths in diagnostic reporting #1224

Open
gadfort opened this issue Jan 24, 2025 · 0 comments
Open

allow for absolute paths in diagnostic reporting #1224

gadfort opened this issue Jan 24, 2025 · 0 comments

Comments

@gadfort
Copy link
Contributor

gadfort commented Jan 24, 2025

Is your feature request related to the C++ slang project or the pyslang Python bindings?
C++ slang, but also relates to pyslang

Is your feature request related to a problem? Please describe.
When reporting paths, slang is currently responding with relative paths
../../../../../gcd.v:188:28: warning:
which makes finding the path to the file somewhat difficult.

Describe the solution you'd like
Provide an option to report the paths in absolute/canonical paths:
like
/data/verilog/examples/gcd/gcd.v:188:28: warning:
Either by a flag in the SourceManager or TextDiagnosticClient or where it make most sense to control it (and it should have a binding in pyslang too)

Describe alternatives you've considered
N/A

Additional context
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants