Skip to content

"flutter attach --machine" provides a malformed VM Service URI #118609

@DanTup

Description

@DanTup

The wsUri printed when using flutter attach --machine appears to be malformed:

danny@Dannys-MacBook-Pro flutter_counter % flutter attach --machine -d iPhone --debug-url http://127.0.0.1:49606/h-O0daymeDM=/
[{"event":"daemon.connected","params":{"version":"0.6.1","pid":2769}}]
[{"event":"app.start","params":{"appId":"f0197a9d-8d92-40e6-839a-61d561321b8e","deviceId":"A1F0E6A3-DBEA-4CBE-BACE-3893023E5897","directory":null,"supportsRestart":true,"launchMode":"attach"}}]
[
	{
		"event": "app.debugPort",
		"params": {
			"appId": "f0197a9d-8d92-40e6-839a-61d561321b8e",
			"port": 49606,
	######## wsUri looks wrong here
			"wsUri": "ws://127.0.0.1:49606/h-O0daymeDM=/.,/ws",
			"baseUri": "file:///Users/danny/Library/Developer/CoreSimulator/Devices/A1F0E6A3-DBEA-4CBE-BACE-3893023E5897/data/Containers/Data/Application/B788D5FE-81AD-487E-9B95-8EA6357DFF65/tmp/flutter_counterFG3CJR/flutter_counter/"
		}
	}
]

The wsUri returned is ws://127.0.0.1:49606/h-O0daymeDM=/.,/ws but I would expect it to be ws://127.0.0.1:49606/h-O0daymeDM=/ws.

Metadata

Metadata

Assignees

Labels

toolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions