Skip to content

Commit 0a33c1c

Browse files
committed
Add java-access-bridge to conda.yaml
1 parent 47cc45a commit 0a33c1c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

robocorp-code/bin/create_env/conda_vscode_windows_amd64.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ dependencies:
1515
- robocorp-inspector==0.10.2 # https://github.com/robocorp/inspector/blob/master/CHANGELOG.md
1616
- robotframework==5.0.1 # https://github.com/robotframework/robotframework/blob/master/doc/releasenotes/rf-5.0.1.rst
1717
- playwright==1.37.0
18+
- java-access-bridge-wrapper=="1.1.0"

robocorp-code/src/robocorp_code/inspector/java/robocorp_java/_event_pump.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(
2121
# Jab wrapper needs to be part of the thread that pumps the window events
2222
self._jab_wrapper: JavaAccessBridgeWrapper = None
2323
self._future: futures.Future = futures.Future()
24-
self._quit_queue_loop = threading.Event()
24+
self._quit_event_loop = threading.Event()
2525

2626
def _pump_background(self) -> bool:
2727
try:
@@ -48,9 +48,10 @@ def run(self) -> None:
4848
if platform.system() != "Windows":
4949
return
5050

51+
# Raise the error to the main thread from here
5152
self._jab_wrapper = JavaAccessBridgeWrapper(ignore_callbacks=True)
5253
self._future.set_result(self._jab_wrapper)
53-
while not self._quit_queue_loop.is_set():
54+
while not self._quit_event_loop.is_set():
5455
# The pump is non blocking. If the is no message in the queue
5556
# wait for 10 milliseconds until check again to prevent too
5657
# fast loop.
@@ -59,7 +60,7 @@ def run(self) -> None:
5960
time.sleep(0.01)
6061

6162
def stop(self):
62-
self._quit_queue_loop.set()
63+
self._quit_event_loop.set()
6364
self._jab_wrapper = None
6465
if not self._future.done():
6566
self._future.cancel()

0 commit comments

Comments
 (0)