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

[ksp2] No API to get error type's name #2268

Open
acejingbo opened this issue Dec 26, 2024 · 0 comments
Open

[ksp2] No API to get error type's name #2268

acejingbo opened this issue Dec 26, 2024 · 0 comments

Comments

@acejingbo
Copy link

acejingbo commented Dec 26, 2024

When an type Foo is error type (unresolvable), there's no way to get API to get this error type's original name/code/text Foo.

Repro

acejingbo@8900934

See when you wrote NonExistType in code, no matter how you query you only get <ERROR TYPE: NonExistType> and cannot get the original name NonExistType. And the only way left if a hardcoded regex
"""<ERROR TYPE: ([\w\s\.]+)>""".toRegex().find(errorType.toString())?.destructured?.toList()?.first()

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

No branches or pull requests

1 participant