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

Issue when moving file to new directory #41768

Closed
MiichaelD opened this issue May 4, 2020 · 2 comments
Closed

Issue when moving file to new directory #41768

MiichaelD opened this issue May 4, 2020 · 2 comments
Labels
analyzer-crash-report Issues which have been reported due to an analysis server crash area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@MiichaelD
Copy link

Analyzer Feedback from IntelliJ

Version information

  • IDEA AI-192.7142.36.36.6392135
  • 2.8.0
  • AI-192.7142.36.36.6392135, JRE 1.8.0_212-release-1586-b4-5784211x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.15.4, screens 2560x1440, 2560x1600, 1680x1050 Retina

Exception

Dart analysis server, SDK version 2.8.0, server version 1.27.4, error: FileSystemException(path=/Users/michaelduarte/Dev/Flutter/crossing-app/lib/pages/list_countries.dart; message=Cannot open file)
#0      _PhysicalFile.readAsStringSync (package:analyzer/file_system/physical_file_system.dart:210:7)
#1      _OverlayFile.readAsStringSync (package:analyzer/file_system/overlay_file_system.dart:245:18)
#2      FileSource.contentsFromFile (package:analyzer/src/source/source_resource.dart:90:46)
#3      FileSource.contents.<anonymous closure> (package:analyzer/src/source/source_resource.dart:74:14)
#4      _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:256:15)
#5      FileSource.contents (package:analyzer/src/source/source_resource.dart:73:37)
#6      MoveFileRefactoringImpl._isPackageReference (package:analysis_server/src/services/refactoring/move_file.dart:176:34)
#7      MoveFileRefactoringImpl._computeNewUri (package:analysis_server/src/services/refactoring/move_file.dart:157:9)
#8      MoveFileRefactoringImpl.createChange.<anonymous closure> (package:analysis_server/src/services/refactoring/move_file.dart:145:22)
#9      ChangeBuilderImpl.addFileEdit (package:analyzer_plugin/src/utilities/change_builder/change_builder_core.dart:72:20)
<asynchronous suspension>
#10     MoveFileRefactoringImpl.createChange (package:analysis_server/src/services/refactoring/move_file.dart:144:27)
<asynchronous suspension>
#11     _RefactoringManager.getRefactoring.<anonymous closure> (package:analysis_server/src/edit/edit_domain.dart:968:41)
<asynchronous suspension>
#12     _RefactoringManager.getRefactoring.<anonymous closure> (package:analysis_server/src/edit/edit_domain.dart)
#13     _rootRun (dart:async/zone.dart:1184:13)
#14     _CustomZone.run (dart:async/zone.dart:1077:19)
#15     _runZoned (dart:async/zone.dart:1619:10)
#16     runZonedGuarded (dart:async/zone.dart:1608:12)
#17     _RefactoringManager.getRefactoring (package:analysis_server/src/edit/edit_domain.dart:924:5)
#18     EditDomainHandler._getRefactoring (package:analysis_server/src/edit/edit_domain.dart:811:24)
#19     EditDomainHandler.handleRequest (package:analysis_server/src/edit/edit_domain.dart:368:16)
#20     AnalysisServer.handleRequest.<anonymous closure>.<anonymous closure> (package:analysis_server/src/analysis_server.dart:319:40)
#21     _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:256:15)
#22     AnalysisServer.handleRequest.<anonymous closure> (package:analysis_server/src/analysis_server.dart:315:50)
#23     _rootRun (dart:async/zone.dart:1184:13)
#24     _CustomZone.run (dart:async/zone.dart:1077:19)
#25     _runZoned (dart:async/zone.dart:1619:10)
#26     runZonedGuarded (dart:async/zone.dart:1608:12)
#27     AnalysisServer.handleRequest (package:analysis_server/src/analysis_server.dart:314:5)
#28     ByteStreamServerChannel._readRequest.<anonymous closure> (package:analysis_server/src/channel/byte_stream_channel.dart:171:16)
#29     _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:256:15)
#30     ByteStreamServerChannel._readRequest (package:analysis_server/src/channel/byte_stream_channel.dart:161:47)
#31     ByteStreamServerChannel.listen.<anonymous closure> (package:analysis_server/src/channel/byte_stream_channel.dart:106:26)
#32     _rootRunUnary (dart:async/zone.dart:1192:38)
#33     _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#34     _CustomZone.runUnaryGuarded (dart:async/zone.dart:987:7)
#35     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#36     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:266:7)
#37     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:70:11)
#38     _EventSinkWrapper.add (dart:async/stream_transformers.dart:17:11)
#39     _StringAdapterSink.add (dart:convert/string_conversion.dart:238:11)
#40     _LineSplitterSink._addLines (dart:convert/line_splitter.dart:152:13)
#41     _LineSplitterSink.addSlice (dart:convert/line_splitter.dart:127:5)
#42     StringConversionSinkMixin.add (dart:convert/string_conversion.dart:165:5)
#43     _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:122:24)
#44     _rootRunUnary (dart:async/zone.dart:1192:38)
#45     _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#46     _CustomZone.runUnaryGuarded (dart:async/zone.dart:987:7)
#47     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#48     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:266:7)
#49     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:70:11)
#50     _EventSinkWrapper.add (dart:async/stream_transformers.dart:17:11)
#51     _StringAdapterSink.add (dart:convert/string_conversion.dart:238:11)
#52     _StringAdapterSink.addSlice (dart:convert/string_conversion.dart:243:7)
#53     _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:314:20)
#54     _Utf8ConversionSink.add (dart:convert/string_conversion.dart:3...

For additional log information, please append the contents of
file:///private/var/folders/w2/jdp01h4d6nn1fzq4gt9y56x000d4rq/T/report.txt.

@lrhn lrhn added analyzer-crash-report Issues which have been reported due to an analysis server crash area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels May 5, 2020
@srawlins
Copy link
Member

Thanks for reporting this issue! This was previously reported at #40063; please follow along there.

@srawlins
Copy link
Member

Duplicate of #40063

@srawlins srawlins marked this as a duplicate of #40063 Jun 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-crash-report Issues which have been reported due to an analysis server crash area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants