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

NPE in FileState.isPart: The getter 'libraryNameOffset' was called on null. #35606

Open
raininfall opened this Issue Jan 9, 2019 · 0 comments

Comments

Projects
None yet
3 participants
@raininfall
Copy link

raininfall commented Jan 9, 2019

Analyzer Feedback from IntelliJ

Version information

  • IDEA AI-181.5540.7.32.5056338
  • 2.1.0-dev.9.4
  • AI-181.5540.7.32.5056338, JRE 1.8.0_152-release-1136-b06x64 JetBrains s.r.o, OS Windows 8.1(amd64) v6.3 , screens 1366x768

Exception

Please append the contents of:
file://C:\Users\荣乾\AppData\Local\Temp\report.txt

Dart analysis server, SDK version 2.1.0-dev.9.4, server version 1.21.1, error: Analysis failed: D:\test\room\lib\model\database.dart
NoSuchMethodError: The getter 'libraryNameOffset' was called on null.
Receiver: null
Tried calling: libraryNameOffset
#0      Object.noSuchMethod (dart:core/runtime/libobject_patch.dart:50:5)
#1      FileState.isPart (package:analyzer/src/dart/analysis/file_state.dart:220:32)
#2      AnalysisDriver._computeAnalysisResult (package:analyzer/src/dart/analysis/driver.dart:1192:30)
<asynchronous suspension>
#3      AnalysisDriver.performWork (package:analyzer/src/dart/analysis/driver.dart:1050:39)
<asynchronous suspension>
#4      AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:1891:24)
<asynchronous suspension>
#5      AnalysisDriverScheduler.start (package:analyzer/src/dart/analysis/driver.dart:1832:5)
#6      new AnalysisServer (package:analysis_server/src/analysis_server.dart:340:29)
#7      SocketServer.createAnalysisServer (package:analysis_server/src/socket_server.dart:79:26)
#8      StdioAnalysisServer.serveStdio (package:analysis_server/src/server/stdio_server.dart:37:18)
#9      Driver.start.<anonymous closure> (package:analysis_server/src/server/driver.dart:505:21)
#10     _rootRun (dart:async/zone.dart:1124:13)

@raininfall raininfall closed this Jan 9, 2019

@raininfall raininfall reopened this Jan 9, 2019

@stereotype441 stereotype441 changed the title Dart Analyzer Error NPE in FileState.isPart: The getter 'libraryNameOffset' was called on null. Jan 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment