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

file changes outside editor confuse analysis server (with no recourse) #3863

Closed
pq opened this issue Jun 25, 2012 · 8 comments
Closed

file changes outside editor confuse analysis server (with no recourse) #3863

pq opened this issue Jun 25, 2012 · 8 comments
Assignees
Labels
P0 A serious issue requiring immediate resolution
Milestone

Comments

@pq
Copy link
Member

pq commented Jun 25, 2012

[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

@floitschG
Copy link
Contributor

More info: ctrl-click and code-completion still works. So it's probably not the analyzer per se.
Attached screenshot to give an idea of what it looks like. In the screenshot I can still ctrl-click on "CompilerTask" and it will take me to the class.


Attachment:
editor.png (45.76 KB)

@floitschG
Copy link
Contributor

Found a work-around to avoid erasing the whole workspace directory: disable analyze and reenable analyze for the affected files.
This works ok, if there are only few files affected. Otherwise deleting the workspace directory is still the faster option. (mostly because of issue #3660).
However, even with the work-around this is really annoying.

@floitschG
Copy link
Contributor

This got even worse yesterday: just saving a file is now enough to trigger the bug.

@DartBot
Copy link

DartBot commented Jul 19, 2012

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.
app-file: myApp.dart
  #import('dart:html');
  #import('mylib/mylib.dart');

  main(){...}

in subfolder 'mylib' Lib-file: mylib.dart
  #library("mylib");
  #import('dart:html'); // only one
  #source('mySource.dart');
  #source('mySource1.dart');
  #source('mySource2.dart');
  
  class AClassInMyLib{
     Element element; // from dart:html
     AClassInMyLib(){
         element = new Element().tag('div');
         ...
     }
  }

(in subfolder 'myLib') source-file: mySource.dart
  class AClassInMySource{
     Element element; // fm dart:html
     AClassInMySource(){
         element = new Element().tag('div');
         ...
     }
  }

Issue:
a) app runs and when you edit and save the file myLib.dart everything is fine, no errors, no warnings.
b) app runs but when you edit and save the file mySource.dart all types from dart:html or any other .dart files in myLib genereates warning and errors (in the editor only) like: - "no such type "Element" (or any other type from #import or #source ) though the App still runs fine. Hint: if I a do a) again like just add/remove a space and save it: all the errors and warning disappears.

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
The workaround: "disable analyze and reenable analyze for the affected files" works here too
Rudy

@danrubel
Copy link

Added Started label.

@DartBot
Copy link

DartBot commented Jul 19, 2012

This comment was originally written by rudy.fed...@netadvisers.ch


PS: the above workaround (Analyze on/off) only works one time edit+save.
The next time all errors + warning are shown again.
Analyze on/off) on affected file is therefore required every 2nd edit+save.

@kevmoo
Copy link
Member

kevmoo commented Jul 20, 2012

Just to pile on:

  1. I'm getting this error when I'm editing code within the editor v 9785
  2. The last integration build (9661) seems fine
  3. I tried to do the "Don't Analyze/Analyze" trick, but clicking "Analyze" in the context menu does not re-enable analysis

@danrubel
Copy link

https://chromiumcodereview.appspot.com/10809037/
https://chromiumcodereview.appspot.com/10810052/

Fixes in place as of build 9798
Please reopen if you are still having problems.


Added Fixed label.

@pq pq added Area-Editor P0 A serious issue requiring immediate resolution labels Jul 23, 2012
@pq pq added this to the M1 milestone Jul 23, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 A serious issue requiring immediate resolution
Projects
None yet
Development

No branches or pull requests

5 participants