Skip to content

Show an error when trying to rename a notebook to an existing file #7705

@jtpio

Description

@jtpio

Description

Attempting to rename a notebook by clicking on the name of the notebook and entering a name that already exists results in an error in the Dev Tools console.

Uncaught (in promise) ResponseError: File already exists: Untitled.ipynb

Reproduce

notebook-rename-existing-file.mp4

Expected behavior

If a notebook with the same name already exists on disk, it should show an error message to the user instead of logging it in the Dev Tools console.

Context

Jupyter Notebook 7.5.0a2 on main: 0e4fdd1

To implement the fix, we likely need to update the handling of the error here:

const result = await renameDialog(docManager, current.context);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions