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

"Dart Editor Initialization" caused java.lang.IllegalArgumentException #776

Closed
DartBot opened this issue Dec 9, 2011 · 4 comments
Closed
Assignees

Comments

@DartBot
Copy link

DartBot commented Dec 9, 2011

This issue was originally filed by hiro...@gmail.com


> What steps will reproduce the problem?

  1. start dart editor
  2. create a new application (name: Hello, directory /home/xxx/dart/Hello)
  3. exit dart editor
  4. start dart editor
  5. Dart Editor Initialization error

> What version of the product are you using?

2011.12.02 - build 1910

> On what operating system?

-os linux -ws gtk -arch x86

> Please provide any additional information below.

console log

!SESSION 2011-12-09 11:02:25.353 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_01
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=ja_JP
Command-line arguments: -os linux -ws gtk -arch x86 -consoleLog -data workspace

!ENTRY org.eclipse.core.jobs 4 2 2011-12-09 11:02:30.277
!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:162)
    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)

@bwilkerson
Copy link
Member

I was unable to reproduce this using the latest code base (2313) on a Mac. We need to try on Linux to see whether it might be platform dependent.


Added Area-Editor, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Dec 13, 2011

This comment was originally written by hiro...@gmail.com


I use Ubuntu Linux 11.10 and Oracle JDK7 update1.

@danrubel
Copy link

danrubel commented Mar 6, 2012

I'll handle this one.


Set owner to @danrubel.
Added Accepted label.

@danrubel
Copy link

danrubel commented May 2, 2012

Added Fixed label.

copybara-service bot pushed a commit that referenced this issue Nov 28, 2022
Revisions updated by `dart tools/rev_sdk_deps.dart`.

ffi (https://github.com/dart-lang/ffi/compare/3ede231..17a8142):
  17a8142  2022-11-21  Daco Harkes  Add links to API reference and examples to README (#167)

fixnum (https://github.com/dart-lang/fixnum/compare/bca3816..62916f2):
  62916f2  2022-11-24  Lasse R.H. Nielsen  Split into separate libraries instead of using parts. (#97)
  14d4827  2022-11-23  Lasse R.H. Nielsen  Add `tryParse` methods. (#96)

http (https://github.com/dart-lang/http/compare/d56141d..047d6ed):
  047d6ed  2022-11-22  Brian Quinlan  Fixes a bug where requests made in different Clients would fail (#827)
  9dbbafb  2022-11-17  Brian Quinlan  Add tests for compressed responses (#823)

markdown (https://github.com/dart-lang/markdown/compare/37951d1..ee3f4e9):
  ee3f4e9  2022-11-24  Zhiguang Chen  Fix a blockquote issue (#496)
  c9048c0  2022-11-16  Zhiguang Chen  Optimise DelimiterSyntax (#492)

protobuf (https://github.com/dart-lang/protobuf/compare/ae90e53..c181573):
  c181573  2022-11-23  Kevin Moore  [api_benchmark] migrate to null-safety (#776)
  648deaf  2022-11-23  Kevin Moore  Standardize and fix lints (#775)
  bfa4c0d  2022-11-23  Kevin Moore  Fix `///` at the top of generated Dart files (#774)
  ed68426  2022-11-17  Devon Carew  Remove duplicate consts (#773)

sse (https://github.com/dart-lang/sse/compare/283568d..8d018dd):
  8d018dd  2022-11-23  Elliott Brooks (she/her)  Format markdown files (#68)
  2f6f151  2022-11-23  Elliott Brooks (she/her)  Add optional `debugKey` parameter to SSE client (#67)
  eaee6a8  2022-11-23  Elliott Brooks (she/her)  Use Fetch API in SSE Client (#66)

test (https://github.com/dart-lang/test/compare/7756833..b25dac9):
  b25dac99  2022-11-21  Kevin Moore  checks: finish async tests (#1793)
  3166163e  2022-11-18  Devon Carew  Update scorecards-analysis.yml (#1792)
  d930d5b0  2022-11-18  Nate Bosch  Add support for async soft checks (#1789)
  b1411a21  2022-11-18  Devon Carew  blast_repo fixes (#1788)
  a6aa04e0  2022-11-18  Jacob MacDonald  disable wasm tests for now as they are failing (#1791)
  8b5174c1  2022-11-17  Kevin Moore  Starting on async tests (#1787)

Change-Id: Ic361fce7753d08d43fc827f13cb1bfa1738cc16e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/272343
Auto-Submit: Devon Carew <devoncarew@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants