Skip to content

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

Open
@jhgoebbert

Description

@jhgoebbert

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions