-
Notifications
You must be signed in to change notification settings - Fork 232
"pub run" should spawn an isolate rather than starting a subprocess #1204
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
Comments
<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3 Added Pub-Run label. |
<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3 This is blocking dart-lang/test#19. |
<img src="https://avatars.githubusercontent.com/u/444270?v=3" align="left" width="48" height="48"hspace="10"> Comment by seaneagan In the meantime could This is also blocking https://github.com/google/stagehand/issues/147 |
<img src="https://avatars.githubusercontent.com/u/444270?v=3" align="left" width="48" height="48"hspace="10"> Comment by seaneagan This would fix |
<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3 Platform.script is already not what people expect under "pub run". Ideally there would be a way to spawn an isolate with a custom value for Platform.script, but that feature request is out-of-scope for this issue. |
<img src="https://avatars.githubusercontent.com/u/444270?v=3" align="left" width="48" height="48"hspace="10"> Comment by seaneagan I think Platform.script currently references the pub cache location of the script, no? I only need (BTW my use case is for unscripted to determine the command name for help text output.) |
<img src="https://avatars.githubusercontent.com/u/444270?v=3" align="left" width="48" height="48"hspace="10"> Comment by seaneagan See also issue #1234, which would be an even better solution for my use case. |
<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3 This is also blocking dart-lang/test#86. |
This comment was originally written by [email protected] Case where this is a real problem: |
This is blocked on dart-lang/sdk#23951. |
I believe dart-lang/sdk#23951 is no longer blocking the issue, so I want to give it a bump. Since it's still not possible to use |
I'm also eager to do this. At this point, it's just a question of having the spare time. |
IDE users keep asking for debugging capabilities of tests (tracked as dart-lang/test#50) and this feature request seems to be the most perfect solution. I guess 'blocked' label is obsolete here. Any ETA? Thanks for taking a look! |
@alexander-doroshko dart-lang/test#50 is actually blocked on dart-lang/sdk#23320, not on this. |
@nex3 #23320 is closed as Not Planned. This request is another way to be able to enable Observatory for the VM that runs tests. We have control on VM options that runs |
dart-lang/sdk#23320 will need to be fixed in order to enable VM debugging in test; there's not really any way around that. |
We seem to be talking about a bit different things.
After that IDE connects to the Observatory on |
The strategy you describe would probably work okay, but it isn't really related to dart-lang/test#50. In general, |
Ok, let's keep dart-lang/test#50 aside. Indeed, I'm not asking to do anything with the Now you see, all I need is a control over VM options that are used by the VM that runs the app if the app is started via Being able to debug tests from the IDE will be a great side effect of this fix. I'm going to use documented and thoroughly tested Dart VM options, so I do not see any risk of unexpected breakage, even if some day new options and alternative way of debugging appear in |
<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="96" height="96"hspace="10"> Issue by nex3
Originally opened as dart-lang/sdk#21821
Currently "pub run" starts a subprocess to run its code. It should instead spawn an isolate to avoid VM startup time and provide accurate information for the stdioType getter.
The text was updated successfully, but these errors were encountered: