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

Add metadata info to type conversion warnings #1427

Closed
marcofugaro opened this issue Dec 29, 2020 · 1 comment
Closed

Add metadata info to type conversion warnings #1427

marcofugaro opened this issue Dec 29, 2020 · 1 comment
Labels
enhancement Improved functionality

Comments

@marcofugaro
Copy link

Search Terms

type conversion, warning, failed to convert type -1

Problem

While generating the docs, these warnings appear:

I don't know what they're referring to.

Suggested Solution

It would be more useful to show some context information, for example the source file where that type is present.


PS congrats on the release! 🎉

@marcofugaro marcofugaro added the enhancement Improved functionality label Dec 29, 2020
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Dec 29, 2020

There is enough info there for me to pinpoint the bug :) That one is fixed in 0.20.2 now, releasing shortly.

When typedoc fails to convert a type node, we can (and do) print the file name and line number, but with types there is generally not a specific file/line associated with the issue... I've added a bit more logging, so that it at least prints out the reflection hierarchy that it is converting the type for.

Thanks! Release seems to be pretty good so far, no valid "everything is broken" bugs yet!

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

No branches or pull requests

2 participants