-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[dartdev] Fails to report VM service URL on Windows when run from different drive #55830
Comments
Seems to be an issue in DDS. I haven't looked into the code at all, but I found that passing |
Thanks for the details @dnys1! I'll take a look to see if I can reproduce. |
I'm unable to reproduce this on the main branch ( |
Thanks, @bkonyi. The above was discovered on the Dart stable branch (3.4.1). Trying with flutter master, I get the following output: PS D:\workspace\dev_test> dart run --enable-vm-service=0 .\example.dart
Hello, World!
Could not start the VM service:
DartDevelopmentServiceException: Failed to start Dart Development Service
Although it says Windows 10, this is Windows 11, running commands in new Terminal program. Not sure if that makes a difference. |
Thanks for the response @dnys1. I've tried to run using the Dart SDK shipped with Flutter, but I'm still unable to reproduce:
Is there anything special about your drive configuration by any chance? I know we've had some issues with Dev Drives before, although I'm a bit fuzzy on what was actually impacted. Would it be possible for you to try moving your SDK (or creating a new copy of it) on your D:\ drive and seeing if you can reproduce? |
Welp.. I went to dive in and debug this but as soon as I started, I was no longer able to consistently reproduce it. Not sure what to make of it! I'll close this for now and chalk it up to something being wrong with my dev setup. I appreciate the quick help, @bkonyi! |
Starting with Dart 3.4.0,
dart run
fails to report the VM service URL on Windows when the command is run from a separate drive.Assuming the
dart
executable lives on theC:\
drive and this simple Dart program (example.dart
):dart run
fromC:\
drive (base case)D:\
driveInterestingly, the VM service does seem to be starting, though, since the following prints a URL.
There doesn't seem to be a good workaround for this, either:
--enable-vm-service=<open port>
does not spawn on the provided port--write-service-info
does not create the file (tried different drive letter, relative/absolute combos)The text was updated successfully, but these errors were encountered: