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

Error: Errors encountered during parsing. #197

Closed
kzhui125 opened this issue Sep 16, 2024 · 5 comments · Fixed by #206
Closed

Error: Errors encountered during parsing. #197

kzhui125 opened this issue Sep 16, 2024 · 5 comments · Fixed by #206

Comments

@kzhui125
Copy link

typeshare ./server --lang=typescript --output-file=generated_types.ts
Error: Errors encountered during parsing.

No verbose message?
Don't know why, my rust project can build successfully

@kzhui125
Copy link
Author

image

This error message has to be shown in RUST_LOG=debug typeshare

@MOmarMiraj
Copy link
Contributor

Judging from your error message, you are trying to translate a usize which the typescript typeshare does not support currently as seen in core/src/language/typescript.rs

@kzhui125
Copy link
Author

thanks, hope we can improve the error reporting

@zapplecat
Copy link

Also had this same exact issue. Would be nice to surface during error or maybe a note in the docs might be good

@darrell-roberts
Copy link
Member

darrell-roberts commented Nov 12, 2024

Created PR #206 that defaults the initialization to info. This will output the info and error level log to stdout/stderr. I hadn't noticed when I added the logger that the way it was initialized required RUST_LOG to be set otherwise it would not initialize. The change sets the default info and allows you to override with RUST_LOG.

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 a pull request may close this issue.

4 participants