-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix spurious "File Changed" dialog in JupyterLab 4.1+/Notebook 7.1+ #337
Fix spurious "File Changed" dialog in JupyterLab 4.1+/Notebook 7.1+ #337
Conversation
882d32e
to
8d033ab
Compare
4437fea
to
a0c6d20
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Now that we use the file hash, we could use it to check if the server was the one who saved the file last, instead of using timestamps (see jupyter-server/jupyter_server#1367 (comment) and jupyterlab/jupyterlab#14031 (comment)). This could be done in another PR. |
self._contents_manager.get( | ||
self.path, | ||
content=False, | ||
require_hash=True, # TODO require version supporting hash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will address this one before merging.
As only 2.11.1 added `require_hash` argument
Hi team, |
@shrutiagarwal13 you need JupyterLab 4.3.0b1 and jupyter-ydoc v3.0.0a4. If it does not work with these versions and jupyter-collaboration pre-release let me know. |
@krassowski thanks for reaching out. While the issue occurs less frequently now, I still encounter errors in certain scenarios, as shown in the attached screen recording. This tends to happen when pressing 'Ctrl+S' multiple times. The following package versions are installed:
JLab_Collab_Error3.mp4 |
jupyter_ydoc
to addhash
setter Addhash
property with setter and getter jupyter-server/jupyter_ydoc#262fileChanged
signal from drive and this gets passed down to the context which stores the hash; this requires Update contents model on file change due to save from RTC jupyterlab#16695