getsentry / sentry-dart-plugin

A Dart Build Plugin that uploads debug symbols for Android, iOS/macOS and source maps for Web to Sentry via sentry-cli
MIT License
68 stars 28 forks source link

Sentry dart plugin does not detect and send .dart files to Sentry. #283

Open lukaszmielczarekdev opened 4 days ago

lukaszmielczarekdev commented 4 days ago

Environment

Sentry dart plugin v.2.2.0

Steps to Reproduce

The problem I have is that it doesn't send .dart files to Sentry, it only sends one package with .js files (10 pieces). There should be a second portion, much larger with .dart files. The logs say that it found 10 files first, then 0. In the previous version of the package, all files were sent, and in the latest one only one part.

Image

Expected Result

Image

Actual Result

Image

buenaflor commented 4 days ago

thx for the info, with 2.1.0 it worked before?

lukaszmielczarekdev commented 4 days ago

Yeah. The expected result screenshot is from version 2.1.0.

buenaflor commented 4 days ago

We bumped our default Sentry CLI version from v2.27.0 to v2.38.1 in 2.2.0, could you try setting sentry_cli_version to 2.27.0 in your plugin config and see if that makes a difference?

If not then we'd have to take a look at this pr

lukaszmielczarekdev commented 4 days ago

Still doesn't work. I have a Flutter app that is embedded in a React app when built. I use fvm flutter build web --base-href "/simulator/" --source-maps --output "../shopify/web/frontend/simulator" --dart-define=SENTRY_RELEASE="${RELEASE_NAME}" --dart-define=SENTRY_DIST="${DIST_ID}". Maybe this information will be useful.