{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/25556","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/25556/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/25556/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/25556/events","html_url":"https://github.com/dart-lang/sdk/issues/25556","id":128050219,"number":25556,"title":"Isolate spawnUri Unable to spawn isolate (1.14.0-dev.7.2)","user":{"login":"rayk","id":349890,"avatar_url":"https://avatars.githubusercontent.com/u/349890?v=3","gravatar_id":"","url":"https://api.github.com/users/rayk","html_url":"https://github.com/rayk","followers_url":"https://api.github.com/users/rayk/followers","following_url":"https://api.github.com/users/rayk/following{/other_user}","gists_url":"https://api.github.com/users/rayk/gists{/gist_id}","starred_url":"https://api.github.com/users/rayk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rayk/subscriptions","organizations_url":"https://api.github.com/users/rayk/orgs","repos_url":"https://api.github.com/users/rayk/repos","events_url":"https://api.github.com/users/rayk/events{/privacy}","received_events_url":"https://api.github.com/users/rayk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-22T00:01:24Z","updated_at":"2016-01-22T20:43:31Z","closed_at":null,"body":"There appears to be some change in 1.14.0-dev.7.2 that is causing us not to be able to locate code from the library with the specified URI.\r\n\r\nThe code for the Isolate to run is sitting in the same directory as the code which spawns the Isolate.\r\n\r\nThis is within the test, directory.... Was previously elsewhere but scale it right back and can still produce the problem\r\n\r\nSpawn code \r\n\r\n``` dart\r\nUri exec = new Uri.file('isolate_executor.dart');\r\nList args = [1,2,3]\r\nString msg = ' Whatever'\r\nIsolate result = await Isolate.spawnUri(exec, args, msg)\r\n```\r\n\r\n```bash\r\ndart:isolate                                     Isolate.spawnUri\r\npackage:durable/src/services/isolate.dart 16:24  acquireIsolate.<async>\r\n===== asynchronous gap ===========================\r\ndart:async                                       Future.Future.microtask\r\npackage:durable/src/services/isolate.dart        acquireIsolate\r\ntest/unit/isolate_test.dart 33:32                main.<fn>.<fn>.<async>\r\n===== asynchronous gap ===========================\r\ndart:async                                       Future.Future.microtask\r\ntest/unit/isolate_test.dart                      main.<fn>.<fn>\r\n\r\nIsolateSpawnException: Unable to spawn isolate: 'data:application/dart;charset=utf-8,import%20%22package:test/src/backend/metadata.dart%22;%0Aimport%20%22package:test/src/runner/vm/isolate_listener.dart%22;%0A%0Aimport%20%22file:///Users/rayk/Projects/durable/test/unit/isolate_executor.dart': error: line 4 pos 76: unterminated string literal\r\nimport \"file:///Users/rayk/Projects/durable/test/unit/isolate_executor.dart\r\n                                                                           ^\r\n``` \r\nThe isolate_executor.dart just has a main, with nothing else.\r\n\r\n```dart\r\n/// This Isolate execute is used for test only purposes. It provides a script\r\n/// to call from within the test environment.\r\n\r\nmain(List args, int messages) {}\r\n```\r\n\r\nI initially thought the problem was with the paths in the URI, I had the spawning code in separate directory as code for the Isolate to execute. Which was previously working fine.  I kept scaling back the problem until I reach the point above.. The spawning code in the test directory and sitting right next to the code for the isolate.\r\n\r\nNot sure if this relates to #24058... But need some help. Thanks."},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/174041108","html_url":"https://github.com/dart-lang/sdk/issues/25556#issuecomment-174041108","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/25556","id":174041108,"user":{"login":"nex3","id":188,"avatar_url":"https://avatars.githubusercontent.com/u/188?v=3","gravatar_id":"","url":"https://api.github.com/users/nex3","html_url":"https://github.com/nex3","followers_url":"https://api.github.com/users/nex3/followers","following_url":"https://api.github.com/users/nex3/following{/other_user}","gists_url":"https://api.github.com/users/nex3/gists{/gist_id}","starred_url":"https://api.github.com/users/nex3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nex3/subscriptions","organizations_url":"https://api.github.com/users/nex3/orgs","repos_url":"https://api.github.com/users/nex3/repos","events_url":"https://api.github.com/users/nex3/events{/privacy}","received_events_url":"https://api.github.com/users/nex3/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T20:43:31Z","updated_at":"2016-01-22T20:43:31Z","body":"> Natalie, is this data:-URI as entry point a new thing in tests? (Is it even test doing it?)\r\n\r\nTest is doing it, but it's not particularly new. It was added in dart-lang/test@a635337bce85dd49ed74a24eeb6dc9c8ed7652ed, which was released in version 0.12.4+1 in August."}}