-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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:isolate spawnUri should have a customizable package root #12474
Comments
package_isolate_test is affected by this, too. |
Marked this as blocking #17156. |
We will need this feature. It's impossible to do this fully dynamically in dart2js code, since package root is a compile time concept. Does dart2js have a strategy for supporting it? cc @a-siva. |
For the record, our use case with pub doesn't require it to work in dart2js so not supporting it on dart2js doesn't block us. |
I think that the other main library should be compiled separately. |
Marked this as blocking #20859. |
Adding a milestone since Ivan agreed this would be done by end of 9/12. If I have that wrong, let me know. Added this to the 1.7 milestone. |
cc @Skabet. |
The CL is already available here: https://codereview.chromium.org/545483002 Please provide us with feedback as soon as possible (landing this will take a few more days, as we need to coordinate with Dartium efforts). |
I've patched it in locally and it seems to work fine. It provided a 420ms improvement in one of my test cases, which is great. |
\o/ \o/ \o/ |
This comment was originally written by @zoechi When I launch several isolates they can't have different current working directories (in addition to different package roots)? As far as I know this is bound to the process. When I launch an isolate from code that accesses files using relative paths this doesn't work without setting CWD first, but when I launch more than one isolate with different CWD requirements concurrently these will collide. I went back from isolates to processes because of this in some use cases. |
We are aware of the limitation in regard to CWD and isolates. Can you file a seperate bug for this, so we can track the progress? It's an area we have yet to fully investigate. |
This comment was originally written by @zoechi Done dartbug.com/20903 |
Landed the VM (and dummy Dartium) change today. Reassigning to Dartium. Removed the owner. |
\o/ |
Unmarked this as blocking #20859. |
Added this to the 1.9 milestone. |
Is this fixed? Set owner to @sgjesse. |
Right now, when starting an isolate with spawnUri, the package root is set to the same thing as the parent isolate's package root. This should be customizable; otherwise it's nearly impossible to run code with different dependencies than the host process in an isolate.
The text was updated successfully, but these errors were encountered: