-
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
Analysis server doesn't start up correctly on Windows #53000
Comments
Seems like Future<void> test_danny() async {
final fileUris = [
'file:///C%3A/Dev/Test%20Projects/dart_application_3',
'file:///C:/Dev/Test%20Projects/dart_application_3'
];
for (final fileUri in fileUris) {
final path1 = Uri.parse(fileUri).toFilePath();
final path2 = pathContext.fromUri(fileUri);
print('Uri.parse($fileUri).toFilePath():\n $path1');
print('pathContext.fromUri($fileUri):\n $path2');
}
}
Probably the reason no tests failed is that we're not encoding the colon, but VS Code is. I'm struggling to find info on whether it's valid or not. If it is, |
I'm going to partially revert 77799f6. The whole change doesn't revert cleanly, and we only need to not use pathContext.fromUri() in the LSP server for now. A smaller revert will be easier to re-land later if we can address the issue in |
https://dart-review.googlesource.com/c/sdk/+/315260 reverts use of I'll try and find some concrete info on whether the escaped colon is valid or not (if it is, we need to fix package:path, and if it's not, we need the VS Code LSP client fixing). |
See #53000 Committing separately to the revert of pathContext.fromUri() so if in future that CL is reverted (to re-land the change), it doesn't remove these tests. Change-Id: I922e5e770a0c8dfcfc6a1cd41f6734d88c2edf7a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/315280 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
On my Windows PC using a bleeding edge SDK (or running server from source), the server fails to start up correctly from VS Code and no language functionality is available.
I'm still investigating, but it seems to be getting stuck waiting for watchers to become ready while building context roots:
There's a suspicious path format in the resource being watched which makes me suspicious about some recent changes I made to use path contexts. I also see this in some of the JSON:
{"scopeUri"::"file::///C::/C::/Dev/Test%20Projects/dart_application_3
This must be a recent break - although I don't know why no bots are failing (it's possible this is isolated to my machine, but that would be odd too).
(@bwilkerson FYI - I'm looking into this and will post back shortly)
The text was updated successfully, but these errors were encountered: