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

Additional error message when parsing type definition #1488

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

GodModeOn
Copy link
Contributor

Describe the PR
Additional error message when parsing type definition

2023/03/06 18:51:36 Generating datalayer.UpdateInput
-> 2023/03/06 18:51:36 parse type error in 'datalayer.UpdateInput': cannot find type definition: special.Extratype
2023/03/06 18:51:36 Skipping 'datalayer.UpdateInput', recursion detected.

When type definition not found in pkgDefs.packages it shows error like there is some recursion detected, but there is a incorrect/confusing path to the type special.Extratype used in imports section:

Used import path:
"github.com/company/go-special"

Expected import path:
"github.com/company/special"

This error message helps to find the specific type that is causing the "recursion"

@codecov
Copy link

codecov bot commented Mar 15, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (9faf8b3) 85.19% compared to head (c2838c5) 85.19%.

❗ Current head c2838c5 differs from pull request most recent head 6aa60c0. Consider uploading reports for the commit 6aa60c0 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1488   +/-   ##
=======================================
  Coverage   85.19%   85.19%           
=======================================
  Files          19       19           
  Lines        3627     3628    +1     
=======================================
+ Hits         3090     3091    +1     
  Misses        459      459           
  Partials       78       78           
Impacted Files Coverage Δ
parser.go 94.50% <100.00%> (+<0.01%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sdghchj sdghchj merged commit 0524687 into swaggo:master Mar 20, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants