-
Notifications
You must be signed in to change notification settings - Fork 32
“--host-vmservice-port=8181“ does not work on web platforms #68
Description
The --host-vmservice-port argument does not work on web platforms, and the VM service port is still assigned randomly.
`(base) PS E:\CodeBuddy\MCP_server\mcp_flutter\flutter_test_app> flutter run -d chrome --host-vmservice-port=8181 --enable-vm-service --disable-service-auth-codes --web-port=3000
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
Launching lib\main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome... 17.4s
This app is linked to the debug service: ws://127.0.0.1:55192/_1oVm1p1Jmo=/ws
Debug service listening on ws://127.0.0.1:55192/_1oVm1p1Jmo=/ws
Flutter run key commands.
r Hot reload.
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
A Dart VM Service on Chrome is available at: http://127.0.0.1:55192/_1oVm1p1Jmo=
Starting application from main method in: org-dartlang-app:/web_entrypoint.dart.
[MCPToolkit] Posted tool registration events: 3 tools, 0 resources
The Flutter DevTools debugger and profiler on Chrome is available at: http://127.0.0.1:9101?uri=http://127.0.0.1:55192/_1oVm1p1Jmo=
[MCPToolkit] Posted tool registration events: 1 tools, 1 resources
Initial MCP tools and resources registered
[MCPToolkit] Posted tool registration events: 1 tools, 0 resources
[MCPToolkit] Posted tool registration events: 1 tools, 0 resources
[MCPToolkit] Posted tool registration events: 1 tools, 0 resources
══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during layout:
A RenderFlex overflowed by 6209 pixels on the right.
The relevant error-causing widget was:
Row Row:file:///E:/CodeBuddy/MCP_server/mcp_flutter/flutter_test_app/lib/main.dart:262:13
To inspect this widget in Flutter DevTools, visit:
http://127.0.0.1:9101/#/inspector?uri=http%3A%2F%2F127.0.0.1%3A55192%2F_1oVm1p1Jmo%3D&inspectorRef=inspector-0
The overflowing RenderFlex has an orientation of Axis.horizontal.
The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and
black striped pattern. This is usually caused by the contents being too big for the RenderFlex.
Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the
RenderFlex to fit within the available space instead of being sized to their natural size.
This is considered an error condition because it indicates that there is content that cannot be
seen. If the content is legitimately bigger than the available space, consider clipping it with a
ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex,
like a ListView.
The specific RenderFlex in question is: RenderFlex#09c50 relayoutBoundary=up25 OVERFLOWING:
creator: Row ← Column ← Padding ← Semantics ← DefaultTextStyle ← AnimatedDefaultTextStyle ←
_InkFeatures-[GlobalKey#1ef50 ink renderer] ← NotificationListener ←
CustomPaint ← _ShapeBorderPaint ← PhysicalShape ← _MaterialInterior ← ⋯
parentData: offset=Offset(0.0, 44.0); flex=null; fit=null (can use size)
constraints: BoxConstraints(0.0<=w<=857.0, 0.0<=h<=Infinity)
size: Size(857.0, 20.0)
direction: horizontal
mainAxisAlignment: start
mainAxisSize: max
crossAxisAlignment: center
textDirection: ltr
verticalDirection: down
spacing: 0.0
◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤
════════════════════════════════════════════════════════════════════════════════════════════════════
[MCPToolkit] Posted tool registration events: 1 tools, 0 resources
Delayed MCP tools registered - demonstrating auto-registration`