-
Notifications
You must be signed in to change notification settings - Fork 44
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
dart analyze fails with "Output exceeded n bytes" #1205
Comments
The documentation logs can be seen here: https://pub.dev/documentation/tizen_interop/latest/log.txt |
Sorry, that was a red herring. I ran a manual pana run, without the limit on output size, and here is the relevant section:
╷
pub.dev analyzes the package with the core lints. If you are certain that you don't want to follow the dart naming convention in the generated code, you can put: |
@sigurdm Thank you so much for the really quick response!
Does pana (pub.dev) always use the core lints even if there's a custom include: package:lints/core.yaml
linter:
rules:
camel_case_types: false
non_constant_identifier_names: false
Maybe this is the only option I can use if pana works in that way. |
Yeah - it always uses those and ignores the custom |
Okay. I read the ffigen documentation again and noticed that adding the following preamble is the recommended way to suppress the warnings. preamble: |
// ignore_for_file: camel_case_types, non_constant_identifier_names Thank you again for the help! |
https://pub.dev/packages/tizen_interop/score
I'm a maintainer of the above package but I can't understand why the static analysis always fails with "Running
dart analyze
produced too large output".The issue can be reproduced locally with pana.
But the error is not reproduced when I run
dart analyze
directly with the exact same command used by pana.$ /home/swift/Git/flutter-tizen/flutter/bin/cache/dart-sdk/bin/dart --no-analytics analyze --format machine lib ### No issues! ###
My Dart SDK version:
$ /home/swift/Git/flutter-tizen/flutter/bin/cache/dart-sdk/bin/dart --version Dart SDK version: 2.19.1 (stable) (Tue Jan 31 12:25:35 2023 +0000) on "linux_x64"
The package (tizen_interop) is obviously large in code size (about 1M lines) but this fact doesn't explain why pana fails. What would be the real cause of the issue and how should I deal with it?
The text was updated successfully, but these errors were encountered: