Skip to content

No sourcemap found #302

Open
Open
@otopba

Description

@otopba

Environment

Flutter 3.29.0

pubspec:

environment:
sdk: ^3.7.0

dev_dependencies:
sentry_dart_plugin: ^2.4.0

sentry:
upload_debug_symbols: true
upload_source_maps: true
upload_sources: true
project: ws
org: ws-96
log_level: info
ignore_missing: true

Github action:
jobs:
release-telegram-test:
runs-on: ubuntu-latest

steps:
  - name: Checkout code
    uses: actions/checkout@v4

  - name: Set up Flutter
    uses: subosito/flutter-action@v2
    with:
      channel: 'stable'

  - name: Install dependencies
    run: flutter pub get

  - name: Build Flutter Web
    run: |
      flutter build web --release --dart-define=BUILT_TYPE=releaseTelegram --source-maps

  - name: Upload source maps to Sentry
    env:
      SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
    run: flutter packages pub run sentry_dart_plugin

Steps to Reproduce

  1. Run flutter build web --release --dart-define=BUILT_TYPE=releaseTelegram --source-maps
  2. flutter packages pub run sentry_dart_plugin

Expected Result

No warnings and errors

Actual Result

[❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚] 0% reading config values..        
Searching for pubspec.yaml or sentry.properties config...
Found config from pubspec.yaml
Downloading Sentry CLI 2.41.1 from https://downloads.sentry-cdn.com/sentry-cli/2.41.1/sentry-cli-Linux-x86_64 to .dart_tool/pub/bin/sentry_dart_plugin/sentry-cli
Sentry CLI binary checksum verification passed successfully (hash: a007369907840f26b68d0ce83037abf2b14fc68162fdef1d071885a1ace5e3cf).
Sentry CLI downloaded successfully.
☑ reading config values                                                             
[❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚] 9% validating config values..                             
☑ validating config values                                                             
[❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚] 18% uploading debug symbols..                                
☑ uploading debug symbols                                                             
INFO    2025-02-14 23:15:32.093263596 +00:00 sentry-cli was invoked with the following command line: "/home/runner/work/window_seat_client/window_seat_client/.dart_tool/pub/bin/sentry_dart_plugin/sentry-cli" "--log-level" "info" "releases" "--org" "ws-96" "--project" "ws" "new" "[email protected]+1"
Created release [email protected]+1
[❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚] 27% uploading source maps..                               
INFO    2025-02-14 23:15:32.494278941 +00:00 sentry-cli was invoked with the following command line: "/home/runner/work/window_seat_client/window_seat_client/.dart_tool/pub/bin/sentry_dart_plugin/sentry-cli" "--log-level" "info" "releases" "--org" "ws-96" "--project" "ws" "files" "[email protected]+1" "upload-sourcemaps" "build/web" "--ext" "map" "--ext" "js" "--dist" "1"
> Found 9 files
> Analyzing 9 sources
> Rewriting sources
> Adding source map references
> Bundled 9 files for upload
> Bundle ID: 4c80e14b-692b-54ab-a76e-c1c64ff226de
> Uploaded files to Sentry
> File upload complete (processing pending on server)
> Organization: ws-96
> Project: ws
> Release: [email protected]+1
> Dist: 1
> Upload type: artifact bundle
Source Map Upload Report
  Scripts
    ~/canvaskit/canvaskit.js (sourcemap at ../main.dart.js.map)
    ~/canvaskit/chromium/canvaskit.js (sourcemap at ../../main.dart.js.map)
    ~/canvaskit/skwasm.js (sourcemap at ../main.dart.js.map)
    ~/canvaskit/skwasm_st.js (sourcemap at ../main.dart.js.map)
    ~/flutter.js (sourcemap at flutter.js.map)
    ~/flutter_bootstrap.js (sourcemap at flutter.js.map)
    ~/flutter_service_worker.js (sourcemap at main.dart.js.map)
    ~/main.dart.js (sourcemap at main.dart.js.map)
  Source Maps
    ~/main.dart.js.map
INFO    2025-02-14 23:15:36.59[13](https://github.com/otopba/window_seat_client/actions/runs/13339079482/job/37260377712#step:6:14)28638 +00:00 sentry-cli was invoked with the following command line: "/home/runner/work/window_seat_client/window_seat_client/.dart_tool/pub/bin/sentry_dart_plugin/sentry-cli" "--log-level" "info" "releases" "--org" "ws-96" "--project" "ws" "files" "[email protected]+1" "upload-sourcemaps" "lib" "--ext" "dart" "--dist" "1"
> Found [20](https://github.com/otopba/window_seat_client/actions/runs/13339079482/job/37260377712#step:6:21)0 files
> Analyzing 200 sources
> Rewriting sources
> Adding source map references
> Bundled 200 files for upload
> Bundle ID: 91a33889-7fef-5151-b3b4-6f6b07afcfe4
> Nothing to upload, all files are on the server
> File processing complete
> Organization: ws-96
> Project: ws
> Release: [email protected]+1
> Dist: 1
> Upload type: artifact bundle
Source Map Upload Report
  Scripts
    ~/add_flight/add_flight_page.dart (no sourcemap found)
      - warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/add_flight/add_flight_page.dart)
~/add_flight/add_flight_page_cubit.dart (no sourcemap found)
      - warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/add_flight/add_flight_page_cubit.dart)
    ~/add_flight/add_flight_page_cubit_state.dart (no sourcemap found)
      - warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/add_flight/add_flight_page_cubit_state.dart)
~/add_flight/add_flight_page_cubit_state.g.dart (no sourcemap found)
      - warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/add_flight/add_flight_page_cubit_state.g.dart)
    ~/add_flight/airport_sliver_list.dart (no sourcemap found)
      - warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/add_flight/airport_sliver_list.dart)
    ~/add_flight/flight_sliver_list.dart (no sourcemap found)
      - warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/add_flight/flight_sliver_list.dart)
    ~/app/app.dart (no sourcemap found)
...

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdartPull requests that update Dart code

Type

Projects

Status

Needs More Information

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions