You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using JupyterLab v4.2.5 and v2.0.0 of the extension. It turns out that is_hidden(...) returned a boolean instead of an awaitable object. I found that Jupyter Server instantiated a synchronous contents manager instead of an async alternative. I removed the await keyword in L42 and the opener starts working correctly. A safer solution might be using ensure_async(...) as in the upstream handlers.
Reproduce
Activate the quick open dialog.
Type anything.
Find the error message in the terminal.
Expected behavior
It should return a list of files without errors.
Context
Python package version: 3.11.9
Extension version: v2.0.0
Operating System and its version: Ubuntu 22.04.5 LTS
Browser and its version: Chrome 129
Command Line Output
[W 2024-10-03 22:36:10.945 ServerApp] wrote error: 'Unhandled error'
Traceback (most recent call last):
File "/home/ubuntu/camp/.venv/lib/python3.11/site-packages/tornado/web.py", line 1790, in _execute
result = await result
^^^^^^^^^^^^
File "/home/ubuntu/camp/.venv/lib/python3.11/site-packages/jupyterlab_quickopen/handler.py", line 83, in get
contents_by_path = await self.scan_disk(full_path, excludes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/camp/.venv/lib/python3.11/site-packages/jupyterlab_quickopen/handler.py", line 51, in scan_disk
if await self.should_hide(entry, excludes):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/ubuntu/camp/.venv/lib/python3.11/site-packages/jupyterlab_quickopen/handler.py", line 42, in should_hide+ self.contents_manager.is_hidden(entry.path)
TypeError: object bool can't be used in 'await' expression
The text was updated successfully, but these errors were encountered:
Description
I am using JupyterLab v4.2.5 and v2.0.0 of the extension. It turns out that
is_hidden(...)
returned a boolean instead of an awaitable object. I found that Jupyter Server instantiated a synchronous contents manager instead of an async alternative. I removed theawait
keyword in L42 and the opener starts working correctly. A safer solution might be usingensure_async(...)
as in the upstream handlers.Reproduce
Expected behavior
It should return a list of files without errors.
Context
Command Line Output
The text was updated successfully, but these errors were encountered: