Skip to content
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

NonExistingSource exception during sendAnalysisNotificationNavigation #24272

Closed
danrubel opened this issue Sep 2, 2015 · 3 comments
Closed
Assignees
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. closed-cannot-reproduce Closed as we were unable to reproduce the reported issue P2 A bug or feature request we're likely to work on

Comments

@danrubel
Copy link

danrubel commented Sep 2, 2015

From IntelliJ logs...

Dart analysis server, SDK version 1.11.1, server version 1.7.0, error: UnsupportedOperationException: /home//<....>/server.dart does not exist. null
#0 NonExistingSource.encoding (package:analyzer/src/generated/source.dart:344)
#1 CompilationUnitElementImpl.identifier (package:analyzer/src/generated/element.dart:1410)
#2 ElementLocationImpl.ElementLocationImpl.con1 (package:analyzer/src/generated/element.dart:3138)
#3 ElementImpl.location (package:analyzer/src/generated/element.dart:2768)
#4 DartUnitNavigationComputer._addRegion (package:analysis_server/src/computer/computer_navigation.dart:52)
#5 DartUnitNavigationComputer._addRegionForNode (package:analysis_server/src/computer/computer_navigation.dart:75)
#6 _DartUnitNavigationComputerVisitor.visitSimpleIdentifier (package:analysis_server/src/computer/computer_navigation.dart:218)
#7 SimpleIdentifier.accept (package:analyzer/src/generated/ast.dart:16160)
#8 AstNode._safelyVisitChild (package:analyzer/src/generated/ast.dart:2937)
#9 ClassDeclaration.visitChildren (package:analyzer/src/generated/ast.dart:4235)
#10 RecursiveAstVisitor.visitClassDeclaration (package:analyzer/src/generated/ast.dart:14574)
#11 ClassDeclaration.accept (package:analyzer/src/generated/ast.dart:4171)
#12 _DartUnitNavigationComputerVisitor.visitCompilationUnit (package:analysis_server/src/computer/computer_navigation.dart:127)
#13 CompilationUnit.accept (package:analyzer/src/generated/ast.dart:4779)
#14 DartUnitNavigationComputer.compute (package:analysis_server/src/computer/computer_navigation.dart:32)
#15 sendAnalysisNotificationNavigation. (package:analysis_server/src/operation/operation_analysis.dart:137)
#16 _sendNotification. (package:analysis_server/src/operation/operation_analysis.dart:188)
#17 _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:152)
#18 _sendNotification (package:analysis_server/src/operation/operation_analysis.dart:186)
#19 sendAnalysisNotificationNavigation (package:analysis_server/src/operation/operation_analysis.dart:135)
#20 _DartNavigationOperation.perform (package:analysis_server/src/operation/operation_analysis.dart:346)
#21 AnalysisServer.performOperation (package:analysis_server/src/analysis_server.dart:731)

@danrubel danrubel added Type-Defect area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. labels Sep 2, 2015
@zoechi
Copy link
Contributor

zoechi commented Sep 2, 2015

@alexander-doroshko
Copy link

No, I don't think they are related.
Stack trace pasted here is an unexpected error reported by the server.
Error reported by Mike is sort of 'expected', it is reported by a different mechanism and IDE won't rethrow them any more.

@bwilkerson bwilkerson assigned scheglov and unassigned bwilkerson Nov 10, 2015
@scheglov scheglov added the closed-cannot-reproduce Closed as we were unable to reproduce the reported issue label Nov 17, 2015
@scheglov
Copy link
Contributor

I cannot imagine how it could be possible to have a ClassDeclaration in a NonExistingSource.

@kevmoo kevmoo added P2 A bug or feature request we're likely to work on and removed Priority-Medium labels Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. closed-cannot-reproduce Closed as we were unable to reproduce the reported issue P2 A bug or feature request we're likely to work on
Projects
None yet
Development

No branches or pull requests

6 participants