-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
file changes outside editor confuse analysis server (with no recourse) #3863
Comments
More info: ctrl-click and code-completion still works. So it's probably not the analyzer per se. Attachment: |
Found a work-around to avoid erasing the whole workspace directory: disable analyze and reenable analyze for the affected files. |
This got even worse yesterday: just saving a file is now enough to trigger the bug. |
This comment was originally written by rudy.fed...@netadvisers.ch the same bug seems to apply whenever an #import and #source(s) are in your own libraries...e.g. main(){...} in subfolder 'mylib' Lib-file: mylib.dart (in subfolder 'myLib') source-file: mySource.dart Issue: This makes an editing of the source files in mylib almost impossible because all the real errors/warnings are hidden between the fake-ones... (Editor Version 0.1.0.201207180615, Build 9737, Dart SDK version 9736) on Windows 7 Home Premium 64x |
Added Started label. |
This comment was originally written by rudy.fed...@netadvisers.ch PS: the above workaround (Analyze on/off) only works one time edit+save. |
Just to pile on:
|
https://chromiumcodereview.appspot.com/10809037/ Fixes in place as of build 9798 Added Fixed label. |
[user feedback]
floitsch: I think that karl already filed a bug, but just in case.
For several days we have had the bug that changing a file outside the editor (even when the editor is not running) breaks its analysis. It will report tons of unresolved variables afterwards.
"Re-analyze sources" does not fix the problem. The only solution seems to delete the workspace directory.
Please mark this as high-priority since it makes switching git-branches nearly impossible.
////////////////////////////////////////////////////////////////////////////////////
Editor: 9052
OS: Linux - amd64 (3.2.5-gg886)
JVM: 1.6.0-google-v4
SDK installed: true
Dartium installed: true
////////////////////////////////////////////////////////////////////////////////////
at com.google.dart.tools.core.internal.model.DartElementImpl.getChildren(DartElementImpl.java:256)
at com.google.dart.tools.core.internal.model.DartElementImpl.getChildrenOfType(DartElementImpl.java:269)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.getTypes(CompilationUnitImpl.java:1335)
at com.google.dart.tools.core.internal.model.DartLibraryImpl.findType(DartLibraryImpl.java:307)
at com.google.dart.tools.core.internal.model.DartProjectImpl.findTypes(DartProjectImpl.java:274)
at com.google.dart.tools.ui.internal.text.dart.FieldProposalInfo.resolveMember(FieldProposalInfo.java:56)
at com.google.dart.tools.ui.internal.text.dart.MemberProposalInfo.getJavaElement(MemberProposalInfo.java:58)
at com.google.dart.tools.ui.internal.text.dart.ProposalInfo.computeInfo(ProposalInfo.java:94)
at com.google.dart.tools.ui.internal.text.dart.ProposalInfo.getInfo(ProposalInfo.java:76)
at com.google.dart.tools.ui.internal.text.dart.AbstractDartCompletionProposal.getAdditionalProposalInfo(AbstractDartCompletionProposal.java:399)
at org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(AdditionalInfoController.java:106)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!ENTRY com.google.dart.tools.ui 4 10001 2012-06-25 13:20:36.522
!MESSAGE Internal Error
!STACK 1
Dart Model Exception: java.io.FileNotFoundException: ${user.home}/code/dart/dart/lib/compiler/source.dart (No such file or directory)
at com.google.dart.tools.core.internal.model.ExternalCompilationUnitImpl.readBuffer(ExternalCompilationUnitImpl.java:174)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.openBuffer(CompilationUnitImpl.java:1717)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.buildStructure(CompilationUnitImpl.java:1543)
at com.google.dart.tools.core.internal.model.ExternalCompilationUnitImpl.buildStructure(ExternalCompilationUnitImpl.java:150)
at com.google.dart.tools.core.internal.model.OpenableElementImpl.generateInfos(OpenableElementImpl.java:482)
at com.google.dart.tools.core.internal.model.DartElementImpl.openWhenClosed(DartElementImpl.java:542)
at com.google.dart.tools.core.internal.model.DartElementImpl.getElementInfo(DartElementImpl.java:318)
at com.google.dart.tools.core.internal.model.DartElementImpl.getElementInfo(DartElementImpl.java:303)
at com.google.dart.tools.core.internal.model.DartElementImpl.getChildren(DartElementImpl.java:256)
at com.google.dart.tools.core.internal.model.DartElementImpl.getChildrenOfType(DartElementImpl.java:269)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.getTypes(CompilationUnitImpl.java:1335)
at com.google.dart.tools.core.internal.model.DartLibraryImpl.findType(DartLibraryImpl.java:307)
at com.google.dart.tools.core.internal.model.DartProjectImpl.findTypes(DartProjectImpl.java:274)
at com.google.dart.tools.ui.internal.text.dart.FieldProposalInfo.resolveMember(FieldProposalInfo.java:56)
at com.google.dart.tools.ui.internal.text.dart.MemberProposalInfo.getJavaElement(MemberProposalInfo.java:58)
at com.google.dart.tools.ui.internal.text.dart.ProposalInfo.computeInfo(ProposalInfo.java:94)
at com.google.dart.tools.ui.internal.text.dart.ProposalInfo.getInfo(ProposalInfo.java:76)
at com.google.dart.tools.ui.internal.text.dart.AbstractDartCompletionProposal.getAdditionalProposalInfo(AbstractDartCompletionProposal.java:399)
at org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(AdditionalInfoController.java:106)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.io.FileNotFoundException: ${user.home}/code/dart/dart/lib/compiler/source.dart (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at com.google.dart.compiler.UrlSource.getSourceReader(UrlSource.java:102)
at com.google.dart.tools.core.internal.model.ExternalCompilationUnitImpl.readBuffer(ExternalCompilationUnitImpl.java:166)
... 19 more
Caused by: java.io.FileNotFoundException: ${user.home}/code/dart/dart/lib/compiler/source.dart (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at com.google.dart.compiler.UrlSource.getSourceReader(UrlSource.java:102)
at com.google.dart.tools.core.internal.model.ExternalCompilationUnitImpl.readBuffer(ExternalCompilationUnitImpl.java:166)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.openBuffer(CompilationUnitImpl.java:1717)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.buildStructure(CompilationUnitImpl.java:1543)
at com.google.dart.tools.core.internal.model.ExternalCompilationUnitImpl.buildStructure(ExternalCompilationUnitImpl.java:150)
at com.google.dart.tools.core.internal.model.OpenableElementImpl.generateInfos(OpenableElementImpl.java:482)
at com.google.dart.tools.core.internal.model.DartElementImpl.openWhenClosed(DartElementImpl.java:542)
at com.google.dart.tools.core.internal.model.DartElementImpl.getElementInfo(DartElementImpl.java:318)
at com.google.dart.tools.core.internal.model.DartElementImpl.getElementInfo(DartElementImpl.java:303)
at com.google.dart.tools.core.internal.model.DartElementImpl.getChildren(DartElementImpl.java:256)
at com.google.dart.tools.core.internal.model.DartElementImpl.getChildrenOfType(DartElementImpl.java:269)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.getTypes(CompilationUnitImpl.java:1335)
at com.google.dart.tools.core.internal.model.DartLibraryImpl.findType(DartLibraryImpl.java:307)
at com.google.dart.tools.core.internal.model.DartProjectImpl.findTypes(DartProjectImpl.java:274)
at com.google.dart.tools.ui.internal.text.dart.FieldProposalInfo.resolveMember(FieldProposalInfo.java:56)
at com.google.dart.tools.ui.internal.text.dart.MemberProposalInfo.getJavaElement(MemberProposalInfo.java:58)
at com.google.dart.tools.ui.internal.text.dart.ProposalInfo.computeInfo(ProposalInfo.java:94)
at com.google.dart.tools.ui.internal.text.dart.ProposalInfo.getInfo(ProposalInfo.java:76)
at com.google.dart.tools.ui.internal.text.dart.AbstractDartCompletionProposal.getAdditionalProposalInfo(AbstractDartCompletionProposal.java:399)
at org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(AdditionalInfoController.java:106)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!SUBENTRY 1 com.google.dart.tools.core 4 0 2012-06-25 13:20:36.523
!MESSAGE ${user.home}/code/dart/dart/lib/compiler/source.dart (No such file or directory)
!STACK 0
java.io.FileNotFoundException: ${user.home}/code/dart/dart/lib/compiler/source.dart (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at com.google.dart.compiler.UrlSource.getSourceReader(UrlSource.java:102)
at com.google.dart.tools.core.internal.model.ExternalCompilationUnitImpl.readBuffer(ExternalCompilationUnitImpl.java:166)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.openBuffer(CompilationUnitImpl.java:1717)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.buildStructure(CompilationUnitImpl.java:1543)
at com.google.dart.tools.core.internal.model.ExternalCompilationUnitImpl.buildStructure(ExternalCompilationUnitImpl.java:150)
at com.google.dart.tools.core.internal.model.OpenableElementImpl.generateInfos(OpenableElementImpl.java:482)
at com.google.dart.tools.core.internal.model.DartElementImpl.openWhenClosed(DartElementImpl.java:542)
at com.google.dart.tools.core.internal.model.DartElementImpl.getElementInfo(DartElementImpl.java:318)
at com.google.dart.tools.core.internal.model.DartElementImpl.getElementInfo(DartElementImpl.java:303)
at com.google.dart.tools.core.internal.model.DartElementImpl.getChildren(DartElementImpl.java:256)
at com.google.dart.tools.core.internal.model.DartElementImpl.getChildrenOfType(DartElementImpl.java:269)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.getTypes(CompilationUnitImpl.java:1335)
at com.google.dart.tools.core.internal.model.DartLibraryImpl.findType(DartLibraryImpl.java:307)
at com.google.dart.tools.core.internal.model.DartProjectImpl.findTypes(DartProjectImpl.java:274)
at com.google.dart.tools.ui.internal.text.dart.FieldProposalInfo.resolveMember(FieldProposalInfo.java:56)
at com.google.dart.tools.ui.internal.text.dart.MemberProposalInfo.getJavaElement(MemberProposalInfo.java:58)
at com.google.dart.tools.ui.internal.text.dart.ProposalInfo.computeInfo(ProposalInfo.java:94)
at com.google.dart.tools.ui.internal.text.dart.ProposalInfo.getInfo(ProposalInfo.java:76)
at com.google.dart.tools.ui.internal.text.dart.AbstractDartCompletionProposal.getAdditionalProposalInfo(AbstractDartCompletionProposal.java:399)
at org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(AdditionalInfoController.java:106)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!ENTRY com.google.dart.tools.ui 4 10001 2012-06-25 13:24:36.501
!MESSAGE Internal Error
!STACK 1
Dart Model Exception: java.io.FileNotFoundException: ${user.home}/code/dart/dart/lib/compiler/source.dart (No such file or directory)
at com.google.dart.tools.core.internal.model.ExternalCompilationUnitImpl.readBuffer(ExternalCompilationUnitImpl.java:174)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.openBuffer(CompilationUnitImpl.java:1717)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.buildStructure(CompilationUnitImpl.java:1543)
at com.google.dart.tools.core.internal.model.ExternalCompilationUnitImpl.buildStructure(ExternalCompilationUnitImpl.java:150)
at com.google.dart.tools.core.internal.model.OpenableElementImpl.generateInfos(OpenableElementImpl.java:482)
at com.google.dart.tools.core.internal.model.DartElementImpl.openWhenClosed(DartElementImpl.java:542)
at com.google.dart.tools.core.internal.model.DartElementImpl.getElementInfo(DartElementImpl.java:318)
at com.google.dart.tools.core.internal.model.DartElementImpl.getElementInfo(DartElementImpl.java:303)
at com.google.dart.tools.core.internal.model.DartElementImpl.getChildren(DartElementImpl.java:256)
at com.google.dart.tools.core.internal.model.DartElementImpl.getChildrenOfType(DartElementImpl.java:269)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.getTypes(CompilationUnitImpl.java:1335)
at com.google.dart.tools.core.internal.model.DartLibraryImpl.findType(DartLibraryImpl.java:307)
at com.google.dart.tools.core.internal.model.DartProjectImpl.findTypes(DartProjectImpl.java:274)
at com.google.dart.tools.ui.internal.text.dart.MethodProposalInfo.resolveMember(MethodProposalInfo.java:66)
at com.google.dart.tools.ui.internal.text.dart.MemberProposalInfo.getJavaElement(MemberProposalInfo.java:58)
at com.google.dart.tools.ui.internal.text.dart.ProposalInfo.computeInfo(ProposalInfo.java:94)
at com.google.dart.tools.ui.internal.text.dart.ProposalInfo.getInfo(ProposalInfo.java:76)
at com.google.dart.tools.ui.internal.text.dart.AbstractDartCompletionProposal.getAdditionalProposalInfo(AbstractDartCompletionProposal.java:399)
at org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(AdditionalInfoController.java:106)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.io.FileNotFoundException: ${user.home}/code/dart/dart/lib/compiler/source.dart (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at com.google.dart.compiler.UrlSource.getSourceReader(UrlSource.java:102)
at com.google.dart.tools.core.internal.model.ExternalCompilationUnitImpl.readBuffer(ExternalCompilationUnitImpl.java:166)
... 19 more
Caused by: java.io.FileNotFoundException: ${user.home}/code/dart/dart/lib/compiler/source.dart (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at com.google.dart.compiler.UrlSource.getSourceReader(UrlSource.java:102)
at com.google.dart.tools.core.internal.model.ExternalCompilationUnitImpl.readBuffer(ExternalCompilationUnitImpl.java:166)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.openBuffer(CompilationUnitImpl.java:1717)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.buildStructure(CompilationUnitImpl.java:1543)
at com.google.dart.tools.core.internal.model.ExternalCompilationUnitImpl.buildStructure(ExternalCompilationUnitImpl.java:150)
at com.google.dart.tools.core.internal.model.OpenableElementImpl.generateInfos(OpenableElementImpl.java:482)
at com.google.dart.tools.core.internal.model.DartElementImpl.openWhenClosed(DartElementImpl.java:542)
at com.google.dart.tools.core.internal.model.DartElementImpl.getElementInfo(DartElementImpl.java:318)
at com.google.dart.tools.core.internal.model.DartElementImpl.getElementInfo(DartElementImpl.java:303)
at com.google.dart.tools.core.internal.model.DartElementImpl.getChildren(DartElementImpl.java:256)
at com.google.dart.tools.core.internal.model.DartElementImpl.getChildrenOfType(DartElementImpl.java:269)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.getTypes(CompilationUnitImpl.java:1335)
at com.google.dart.tools.core.internal.model.DartLibraryImpl.findType(DartLibraryImpl.java:307)
at com.google.dart.tools.core.internal.model.DartProjectImpl.findTypes(DartProjectImpl.java:274)
at com.google.dart.tools.ui.internal.text.dart.MethodProposalInfo.resolveMember(MethodProposalInfo.java:66)
at com.google.dart.tools.ui.internal.text.dart.MemberProposalInfo.getJavaElement(MemberProposalInfo.java:58)
at com.google.dart.tools.ui.internal.text.dart.ProposalInfo.computeInfo(ProposalInfo.java:94)
at com.google.dart.tools.ui.internal.text.dart.ProposalInfo.getInfo(ProposalInfo.java:76)
at com.google.dart.tools.ui.internal.text.dart.AbstractDartCompletionProposal.getAdditionalProposalInfo(AbstractDartCompletionProposal.java:399)
at org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(AdditionalInfoController.java:106)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!SUBENTRY 1 com.google.dart.tools.core 4 0 2012-06-25 13:24:36.502
!MESSAGE ${user.home}/code/dart/dart/lib/compiler/source.dart (No such file or directory)
!STACK 0
java.io.FileNotFoundException: ${user.home}/code/dart/dart/lib/compiler/source.dart (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at com.google.dart.compiler.UrlSource.getSourceReader(UrlSource.java:102)
at com.google.dart.tools.core.internal.model.ExternalCompilationUnitImpl.readBuffer(ExternalCompilationUnitImpl.java:166)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.openBuffer(CompilationUnitImpl.java:1717)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.buildStructure(CompilationUnitImpl.java:1543)
at com.google.dart.tools.core.internal.model.ExternalCompilationUnitImpl.buildStructure(ExternalCompilationUnitImpl.java:150)
at com.google.dart.tools.core.internal.model.OpenableElementImpl.generateInfos(OpenableElementImpl.java:482)
at com.google.dart.tools.core.internal.model.DartElementImpl.openWhenClosed(DartElementImpl.java:542)
at com.google.dart.tools.core.internal.model.DartElementImpl.getElementInfo(DartElementImpl.java:318)
at com.google.dart.tools.core.internal.model.DartElementImpl.getElementInfo(DartElementImpl.java:303)
at com.google.dart.tools.core.internal.model.DartElementImpl.getChildren(DartElementImpl.java:256)
at com.google.dart.tools.core.internal.model.DartElementImpl.getChildrenOfType(DartElementImpl.java:269)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.getTypes(CompilationUnitImpl.java:1335)
at com.google.dart.tools.core.internal.model.DartLibraryImpl.findType(DartLibraryImpl.java:307)
at com.google.dart.tools.core.internal.model.DartProjectImpl.findTypes(DartProjectImpl.java:274)
at com.google.dart.tools.ui.internal.text.dart.MethodProposalInfo.resolveMember(MethodProposalInfo.java:66)
at com.google.dart.tools.ui.internal.text.dart.MemberProposalInfo.getJavaElement(MemberProposalInfo.java:58)
at com.google.dart.tools.ui.internal.text.dart.ProposalInfo.computeInfo(ProposalInfo.java:94)
at com.google.dart.tools.ui.internal.text.dart.ProposalInfo.getInfo(ProposalInfo.java:76)
at com.google.dart.tools.ui.internal.text.dart.AbstractDartCompletionProposal.getAdditionalProposalInfo(AbstractDartCompletionProposal.java:399)
at org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(AdditionalInfoController.java:106)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!ENTRY com.google.dart.tools.ui 4 10001 2012-06-25 13:25:30.305
!MESSAGE Internal Error
!STACK 1
Dart Model Exception: java.io.FileNotFoundException: ${user.home}/code/dart/dart/lib/compiler/source.dart (No such file or directory)
at com.google.dart.tools.core.internal.model.ExternalCompilationUnitImpl.readBuffer(ExternalCompilationUnitImpl.java:174)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.openBuffer(CompilationUnitImpl.java:1717)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.buildStructure(CompilationUnitImpl.java:1543)
at com.google.dart.tools.core.internal.model.ExternalCompilationUnitImpl.buildStructure(ExternalCompilationUnitImpl.java:150)
at com.google.dart.tools.core.internal.model.OpenableElementImpl.generateInfos(OpenableElementImpl.java:482)
at com.google.dart.tools.core.internal.model.DartElementImpl.openWhenClosed(DartElementImpl.java:542)
at com.google.dart.tools.core.internal.model.DartElementImpl.getElementInfo(DartElementImpl.java:318)
at com.google.dart.tools.core.internal.model.DartElementImpl.getElementInfo(DartElementImpl.java:303)
at com.google.dart.tools.core.internal.model.DartElementImpl.getChildren(DartElementImpl.java:256)
at com.google.dart.tools.core.internal.model.DartElementImpl.getChildrenOfType(DartElementImpl.java:269)
at com.google.dart.tools.core.internal.model.CompilationUnitImpl.getTypes(CompilationUnitImpl.java:1335)
at com.google.dart.tools.core.internal.model.DartLibraryImpl.findType(DartLibraryImpl.java:307)
at com.google.dart.tools.core.internal.model.DartProjectImpl.findTypes(DartProjectImpl.java:274)
at com.google.dart.tools.ui.internal.text.dart.MethodProposalInfo.resolveMember(MethodProposalInfo.java:66)
at com.google.dart.tools.ui.internal.text.dart.MemberProposalInfo.getJavaElement(MemberProposalInfo.java:58)
at com.google.dart.tools.ui.internal.text.dart.ProposalInfo.computeInfo(ProposalInfo.java:94)
at com.google.dart.tools.ui.internal.text.dart.ProposalInfo.getInfo(ProposalInfo.java:76)
at
The text was updated successfully, but these errors were encountered: