dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.23k stars 1.57k forks source link

Dart Analysis error #37096

Closed MarkusSchmidtPro closed 4 years ago

MarkusSchmidtPro commented 5 years ago

Analyzer Feedback from IntelliJ

Version information

Exception

Dart analysis server, SDK version 2.3.0-edge.a1668566e563aef64025d0af88a099cbbe847b7e, server version 1.26.0, FATAL error: NoSuchMethodError: The setter 'previous=' was called on null.
Receiver: null
Tried calling: previous=Instance of 'SimpleToken'
#0      Driver._captureExceptions.errorFunction (package:analysis_server/src/server/driver.dart:579:7)
#1      _CustomZone.handleUncaughtError (dart:async/zone.dart:1003:19)
#2      _CustomZone.runGuarded (dart:async/zone.dart:925:7)
#3      _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#4      _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#5      _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#6      _Timer._runTimers (dart:isolate-patch/timer_impl.dart:391:30)
#7      _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)
#8      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:171:12)

For additional log information, please append the contents of file://T:\temp\report1.txt.

MarkusSchmidtPro commented 5 years ago

I got this when a file (edited with IntelliJ) had an invisible NUL at the end. I don't know how this happened. Anyways, I opened the file with VS Code, where I could see and remove the [NUL] character at the end.

Btw.: [√] Flutter (Channel stable, v1.5.4-hotfix.2, on Microsoft Windows [Version 10.0.17763.529], locale de-DE) [√] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [√] Android Studio (version 3.4) [√] IntelliJ IDEA Community Edition (version 2019.1) [√] VS Code (version 1.34.0)

a-siva commented 5 years ago

Dumping priority to P1 as it has been seen multiple times.

srawlins commented 4 years ago

This has been seen as recently as Dart 2.4.1.

srawlins commented 4 years ago

Dart 2.3 and 2.4 were released over 6 months ago; please upgrade Dart (or Flutter) to a recent version. Feel free to re-open this issue if it occurs again.