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

Problem locating files on Windows #685

Closed
danrubel opened this issue Dec 5, 2011 · 6 comments
Closed

Problem locating files on Windows #685

danrubel opened this issue Dec 5, 2011 · 6 comments
Assignees

Comments

@danrubel
Copy link

danrubel commented Dec 5, 2011

!ENTRY com.google.dart.indexer 4 0 2011-12-04 15:15:16.562
!MESSAGE Unexpected Exception
!STACK 0
com.google.dart.indexer.workspace.index.TargetIndexingFailed: Failed to index file (retry): file:/C:/Dart/dart/samples/total/src/Reader.dart
       at com.google.dart.indexer.workspace.index.WorkspaceIndexer.indexTarget(WorkspaceIndexer.java:481)
       at com.google.dart.indexer.workspace.index.WorkspaceIndexer.doIndexPendingFiles(WorkspaceIndexer.java:436)
       at com.google.dart.indexer.workspace.index.WorkspaceIndexer.indexPendingFiles(WorkspaceIndexer.java:235)
       at com.google.dart.indexer.workspace.driver.WorkspaceIndexingDriver$IndexingJob.run(WorkspaceIndexingDriver.java:60)
       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.IllegalArgumentException
       at org.eclipse.core.internal.resources.WorkspaceRoot.findFilesForLocationURI(WorkspaceRoot.java:112)
       at org.eclipse.core.internal.resources.WorkspaceRoot.findFilesForLocationURI(WorkspaceRoot.java:104)
       at com.google.dart.tools.core.internal.util.ResourceUtil.getResources(ResourceUtil.java:123)
       at com.google.dart.tools.core.internal.model.DartProjectImpl.findFileForUri(DartProjectImpl.java:776)
       at com.google.dart.tools.core.internal.model.DartProjectImpl.getHandleFromMemento(DartProjectImpl.java:705)
       at com.google.dart.tools.core.internal.model.DartElementImpl.getHandleFromMemento(DartElementImpl.java:318)
       at com.google.dart.tools.core.internal.model.DartModelImpl.getHandleFromMemento(DartModelImpl.java:293)
       at com.google.dart.tools.core.internal.model.DartElementImpl.getHandleFromMemento(DartElementImpl.java:318)
       at com.google.dart.tools.core.DartCore.create(DartCore.java:264)
       at com.google.dart.tools.core.DartCore.create(DartCore.java:240)
       at com.google.dart.tools.core.internal.indexer.location.DartElementLocationType.byUniqueIdentifier(DartElementLocationType.java:75)
       at com.google.dart.indexer.locations.LocationPersitence.byUniqueIdentifier(LocationPersitence.java:76)
       at com.google.dart.indexer.storage.paged.LocationTreeStore.fromPath(LocationTreeStore.java:444)
       at com.google.dart.indexer.storage.paged.LocationTreeStore.locationFromId(LocationTreeStore.java:198)
       at com.google.dart.indexer.storage.paged.FileTreeStore.decode(FileTreeStore.java:303)
       at com.google.dart.indexer.storage.paged.FileTreeStore.read(FileTreeStore.java:181)
       at com.google.dart.indexer.storage.paged.DiskMappedStorage.readFileInfo(DiskMappedStorage.java:230)
       at com.google.dart.indexer.storage.GenericFileTransaction.<init>(GenericFileTransaction.java:73)
       at com.google.dart.indexer.storage.GenericStorageTransaction.createFileTransaction(GenericStorageTransaction.java:111)
       at com.google.dart.indexer.index.IndexTransaction.indexTarget(IndexTransaction.java:108)
       at com.google.dart.indexer.workspace.index.WorkspaceIndexer.indexTarget(WorkspaceIndexer.java:475)
       ... 4 more
!SESSION 2011-12-05 01:21:36.880 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_01
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64 -data workspace

!ENTRY org.eclipse.core.jobs 4 2 2011-12-05 01:21:54.703
!MESSAGE An internal error occurred during: "Dart Editor Initialization".
!STACK 0
java.lang.IllegalArgumentException
       at org.eclipse.core.internal.resources.WorkspaceRoot.findFilesForLocationURI(WorkspaceRoot.java:112)
       at org.eclipse.core.internal.resources.WorkspaceRoot.findFilesForLocationURI(WorkspaceRoot.java:104)
       at com.google.dart.tools.core.internal.util.ResourceUtil.getResources(ResourceUtil.java:123)
       at com.google.dart.tools.core.internal.model.DartProjectImpl.findFileForUri(DartProjectImpl.java:776)
       at com.google.dart.tools.core.internal.model.DartProjectImpl.getHandleFromMemento(DartProjectImpl.java:705)
       at com.google.dart.tools.core.internal.model.DartElementImpl.getHandleFromMemento(DartElementImpl.java:318)
       at com.google.dart.tools.core.internal.model.DartModelImpl.getHandleFromMemento(DartModelImpl.java:293)
       at com.google.dart.tools.core.internal.model.DartElementImpl.getHandleFromMemento(DartElementImpl.java:318)
       at com.google.dart.tools.core.DartCore.create(DartCore.java:264)
       at com.google.dart.tools.core.DartCore.create(DartCore.java:240)
       at com.google.dart.tools.core.internal.indexer.location.DartElementLocationType.byUniqueIdentifier(DartElementLocationType.java:75)
       at com.google.dart.indexer.locations.LocationPersitence.byUniqueIdentifier(LocationPersitence.java:76)
       at com.google.dart.indexer.storage.paged.LocationTreeStore.fromPath(LocationTreeStore.java:444)
       at com.google.dart.indexer.storage.paged.LocationTreeStore.locationFromId(LocationTreeStore.java:198)
       at com.google.dart.indexer.storage.paged.LocationTreeStore.decodeLocation(LocationTreeStore.java:409)
       at com.google.dart.indexer.storage.paged.LocationTreeStore.decode(LocationTreeStore.java:371)
       at com.google.dart.indexer.storage.paged.LocationTreeStore.read(LocationTreeStore.java:236)
       at com.google.dart.indexer.storage.paged.DiskMappedStorage.readLocationInfo(DiskMappedStorage.java:256)
       at com.google.dart.indexer.index.readonly.DiskBackedIndexImpl.getLocationInfo(DiskBackedIndexImpl.java:78)
       at com.google.dart.indexer.index.layers.reverse_edges.ReverseEdgesQuery.executeUsing(ReverseEdgesQuery.java:42)
       at com.google.dart.indexer.workspace.index.WorkspaceIndexer.execute(WorkspaceIndexer.java:158)
       at com.google.dart.indexer.workspace.driver.WorkspaceIndexingDriver.execute(WorkspaceIndexingDriver.java:182)
       at com.google.dart.tools.core.indexer.DartIndexer.getAllTypes(DartIndexer.java:165)
       at com.google.dart.tools.core.indexer.DartIndexer.warmUpIndexer(DartIndexer.java:838)
       at com.google.dart.tools.ui.DartUIStartup$StartupJob.indexerWarmup(DartUIStartup.java:87)
       at com.google.dart.tools.ui.DartUIStartup$StartupJob.run(DartUIStartup.java:50)
       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

@danrubel
Copy link
Author

danrubel commented Dec 5, 2011

////////////////////////////////////////////////////////////////////////////////////
Editor Version: 1910
OS: Windows 7
////////////////////////////////////////////////////////////////////////////////////

@danrubel
Copy link
Author

danrubel commented Dec 5, 2011

!ENTRY com.google.dart.indexer 4 0 2011-12-04 14:34:42.227
!MESSAGE Unexpected Exception
!STACK 0
com.google.dart.indexer.workspace.index.TargetIndexingFailed: Failed to index file (retry): file:/C:/Users/Saskia%20Bakker/dart/Test1/Test1.dart
       at com.google.dart.indexer.workspace.index.WorkspaceIndexer.indexTarget(WorkspaceIndexer.java:481)
       at com.google.dart.indexer.workspace.index.WorkspaceIndexer.doIndexPendingFiles(WorkspaceIndexer.java:436)
       at com.google.dart.indexer.workspace.index.WorkspaceIndexer.indexPendingFiles(WorkspaceIndexer.java:235)
       at com.google.dart.indexer.workspace.driver.WorkspaceIndexingDriver$IndexingJob.run(WorkspaceIndexingDriver.java:60)
       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.IllegalArgumentException
       at org.eclipse.core.internal.resources.WorkspaceRoot.findFilesForLocationURI(WorkspaceRoot.java:112)
       at org.eclipse.core.internal.resources.WorkspaceRoot.findFilesForLocationURI(WorkspaceRoot.java:104)
       at com.google.dart.tools.core.internal.util.ResourceUtil.getResources(ResourceUtil.java:123)
       at com.google.dart.tools.core.internal.model.DartProjectImpl.findFileForUri(DartProjectImpl.java:776)
       at com.google.dart.tools.core.internal.model.DartProjectImpl.getHandleFromMemento(DartProjectImpl.java:705)
       at com.google.dart.tools.core.internal.model.DartElementImpl.getHandleFromMemento(DartElementImpl.java:318)
       at com.google.dart.tools.core.internal.model.DartModelImpl.getHandleFromMemento(DartModelImpl.java:293)
       at com.google.dart.tools.core.internal.model.DartElementImpl.getHandleFromMemento(DartElementImpl.java:318)
       at com.google.dart.tools.core.DartCore.create(DartCore.java:264)
       at com.google.dart.tools.core.DartCore.create(DartCore.java:240)
       at com.google.dart.tools.core.internal.indexer.location.DartElementLocationType.byUniqueIdentifier(DartElementLocationType.java:75)
       at com.google.dart.indexer.locations.LocationPersitence.byUniqueIdentifier(LocationPersitence.java:76)
       at com.google.dart.indexer.storage.paged.LocationTreeStore.fromPath(LocationTreeStore.java:444)
       at com.google.dart.indexer.storage.paged.LocationTreeStore.locationFromId(LocationTreeStore.java:198)
       at com.google.dart.indexer.storage.paged.LocationTreeStore.decodeLocation(LocationTreeStore.java:409)
       at com.google.dart.indexer.storage.paged.LocationTreeStore.decode(LocationTreeStore.java:371)
       at com.google.dart.indexer.storage.paged.LocationTreeStore.read(LocationTreeStore.java:236)
       at com.google.dart.indexer.storage.paged.DiskMappedStorage.readLocationInfo(DiskMappedStorage.java:256)
       at com.google.dart.indexer.storage.GenericStorageTransaction.removeStaleLocationsFromDestination(GenericStorageTransaction.java:171)
       at com.google.dart.indexer.index.IndexTransaction.removeStaleInformationAboutLocations(IndexTransaction.java:273)
       at com.google.dart.indexer.index.IndexTransaction.removeInformationThatWillBeReconstructed(IndexTransaction.java:239)
       at com.google.dart.indexer.index.IndexTransaction.removeInformationThatWillBeReconstructed(IndexTransaction.java:223)
       at com.google.dart.indexer.index.IndexTransaction.indexTarget(IndexTransaction.java:109)
       at com.google.dart.indexer.workspace.index.WorkspaceIndexer.indexTarget(WorkspaceIndexer.java:475)
       ... 4 more

@bwilkerson
Copy link
Member

Set owner to @bwilkerson.

@bwilkerson
Copy link
Member

Please verify whether this has been fixed.


Set owner to @devoncarew.

@DartBot
Copy link

DartBot commented Dec 16, 2011

This comment was originally written by [email protected]


On the same build I seem to have even worse problems: at the start of the
Dart editor:
An internal error occurred during: "Dart Editor Initialization".
java.lang.IllegalArgumentException

A rebuild and a subsequent attempt to run it gives the same problems. I
have sent feedback with details.

@devoncarew
Copy link
Member

No longer seeing this on Windows-


Added Done label.

copybara-service bot pushed a commit that referenced this issue Aug 21, 2023
… webdev

Revisions updated by `dart tools/rev_sdk_deps.dart`.

collection (https://github.com/dart-lang/collection/compare/1ed009e..1a9b7eb):
  1a9b7eb  2023-08-15  ebraminio  Minor typo fix (#304)

dartdoc (https://github.com/dart-lang/dartdoc/compare/5cfb1f3..e148373):
  e1483735  2023-08-14  Parker Lougheed  Adjust links to dart.dev class modifier documentation (#3476)

http (https://github.com/dart-lang/http/compare/9f167a7..631d4ec):
  631d4ec  2023-08-18  Alex James  Add java_http .gitattributes file (#999)
  58a5462  2023-08-17  Alex James  JavaClient can stream the HTTP response body (#1005)
  df1f625  2023-08-15  Brian Quinlan  Add some additional header tests (#1006)

mockito (https://github.com/dart-lang/mockito/compare/ff79de6..e54a006):
  e54a006  2023-08-18  Copybara-Service  Merge pull request #685 from LuisDuarte1:feature/build-extensions
  5f3a4ca  2023-08-18  Luís Duarte  Format files
  2d4ec1e  2023-08-17  Luís Duarte  Update lib/src/builder.dart
  bc06f9f  2023-08-17  Luís Duarte  Make builder not merge generic extension.
  af043a0  2023-08-16  Luís Duarte  Replace double-quotes with single quotes
  034e6c1  2023-08-16  Luís Duarte  Update lib/src/builder.dart
  4ff995f  2023-08-10  Luís Duarte  Make MockBuilder support build_extensions option.

protobuf (https://github.com/dart-lang/protobuf/compare/a852ba4..5e8f36b):
  5e8f36b  2023-08-16  Ömer Sinan Ağacan  Add dart2wasm targets to benchmark builder (#806)
  41d0156  2023-08-15  Ömer Sinan Ağacan  Document why we add '$' prefix to result local in constructors (#870)
  41193fd  2023-08-14  Devon Carew  Rename a local variable to avoid proto field name conflicts, re-generate protos (#869)

test (https://github.com/dart-lang/test/compare/bc0a992..d0fc4bd):
  d0fc4bde  2023-08-16  Nate Bosch  Extend the timeout for runtime_matrix_test (#2084)
  cdf80280  2023-08-16  Nate Bosch  Add some console logging to browser test startup (#2083)
  6146c292  2023-08-16  Nate Bosch  Add an ignore for an SDK deprecation (#2082)
  27142079  2023-08-15  Parker Lougheed  Fix improperly rendered changelog entry (#2081)
  46cf4de0  2023-08-15  Nate Bosch  Timeout browser suite loads (#2080)

tools (https://github.com/dart-lang/tools/compare/295ff92..2be6c2e):
  2be6c2e  2023-08-16  Ben Konyi  Added `dartCliCommandExecuted` and `pubGet` events (#123)

webdev (https://github.com/dart-lang/webdev/compare/19aad27..fc876cb):
  fc876cb0  2023-08-16  Elliott Brooks  Reset Webdev to 3.0.8-wip (#2197)
  1aa7c523  2023-08-16  Elliott Brooks  Prepare webdev for release to 3.0.7 (#2196)

Change-Id: Idc228d0f3f70f5b3e7bfc6e777260dfe84fe96f5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322060
Commit-Queue: Devon Carew <[email protected]>
Reviewed-by: Nate Bosch <[email protected]>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants