File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
packages/debugger/src/robotcode/debugger/launcher
tests/robotcode/language_server/robotframework/parts/data Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,10 @@ async def wait() -> None:
96
96
self ._protocol .on_connection_lost .add (self .on_connection_lost )
97
97
except (asyncio .CancelledError , KeyboardInterrupt , SystemExit ):
98
98
raise
99
- except ConnectionError :
99
+ except ( ConnectionError , OSError ) :
100
100
pass
101
+ except BaseException as e :
102
+ raise DAPClientError (f"Failed to connect to { self .tcp_params .host } :{ self .tcp_params .port } " ) from e
101
103
102
104
if self ._protocol is not None :
103
105
raise DAPClientError ("Client already connected." )
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ async def _launch(
136
136
137
137
connect_timeout = launcherTimeout or 10
138
138
139
- port = find_free_port (DEBUGGER_DEFAULT_PORT )
139
+ port = find_free_port ()
140
140
141
141
debugger_script = ["-m" , "robotcode.cli" ] if self .debugger_script is None else [str (Path (self .debugger_script ))]
142
142
@@ -254,6 +254,7 @@ async def _launch(
254
254
),
255
255
return_type = RunInTerminalResponseBody ,
256
256
)
257
+ # time.sleep(1) # Give some time for the terminal to start
257
258
elif console is None or console == "internalConsole" :
258
259
run_env : Dict [str , Optional [str ]] = dict (os .environ )
259
260
run_env .update (env )
Original file line number Diff line number Diff line change 1
1
[extend-profiles .firefox ]
2
2
description = " The overridden firefox profile"
3
3
extend-python-path = [" ./python" ]
4
- output-dir = " output"
4
+ # output-dir = "output"
5
5
6
6
[tool .robotcode-analyze .extend-modifiers ]
7
7
extend-warning = [" VariableNotFound" ]
You can’t perform that action at this time.
0 commit comments