Skip to content
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

Dialog - "Error - Repository is read only" #15

Open
jhgoebbert opened this issue Jun 7, 2024 · 3 comments
Open

Dialog - "Error - Repository is read only" #15

jhgoebbert opened this issue Jun 7, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@jhgoebbert
Copy link

jhgoebbert commented Jun 7, 2024

In some situations this extension results in showing a dialog "Error: Repository is read only" if one wants to create a new "Untitled.ipynb" notebook by clicking in the launchpad on "Python 3".

I assume it comes from this lines of code:
https://github.com/jupyterlab-contrib/jupyterlab-gitlab/blob/main/src/contents.ts#L321

  newUntitled(options: Contents.ICreateOptions = {}): Promise<Contents.IModel> {
    return Promise.reject('Repository is read only');
  }

grafik

As soon as one has interacted with the filebrowser in some way, like creating a new file for example, this problem does not occur anymore. So I assume that the function "newUntitled" of the file-browser-plugin is called when a "Python 3"-notebook is newly created. And somehow the implementation of JupyterLab-GitLab is first in the row - which should not be the case.

I have seen this in JupyterLab 3.6 and now also in 4.2.1.

@jhgoebbert jhgoebbert added the bug Something isn't working label Jun 7, 2024
@jhgoebbert
Copy link
Author

This might be a general issue with Contents.IDrive so I link this issue as reference: jupyterlab/jupyterlab#15143

@jhgoebbert
Copy link
Author

The current work-around:
If you want to create a new notebook directly after restarting JupyterLab and do not want to open an existing one, you have to use the context menu of the file browser and not the buttons in the launchpad:
grafik

@jtpio
Copy link
Member

jtpio commented Jun 7, 2024

Thanks @jhgoebbert for reporting 👍

This is likely the same issue as jupyterlab/jupyterlab#15629, as this also happens with the jupyterlab-github extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants