-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Labels
package:processtype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
Description
I created a new Dart project and asked Copilot to run the tests. It invoked the MCP tool but failed with an error so had to fall back to using the command line:

<<< (dart and flutter tooling) {"jsonrpc":"2.0","id":0,"result":{"roots":[{"uri":"file:///d%3A/Dev/Test%20Projects/mcp_test_dart","name":"mcp_test_dart"}]}}
>>> (dart and flutter tooling) {"jsonrpc":"2.0","result":{"content":[{"text":"dart|flutter test failed in d:\\Dev\\Test Projects\\mcp_test_dart:\n\n\nErrors\n'\\\"D:\\Tools\\Dart\\Latest (Bleeding Edge)\\bin\\dart.exe\\\"' is not recognized as an internal or external command,\r\noperable program or batch file.","type":"text"}],"isError":true},"id":3}
The path D:\Tools\Dart\Latest (Bleeding Edge)\bin\dart.exe
is definitely correct, but a) I don't know if those backslashes need escaping, b) it contains spaces and c) it contains parens.
I had a quick scan on GitHub but couldn't see the code that was spawning the process to see whether there's any escaping going on (or required).
cc @jakemac53
Metadata
Metadata
Assignees
Labels
package:processtype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)