GCBallesteros / jupytext.nvim

Jupyter notebooks on neovim powered by Jupytext
66 stars 14 forks source link

Newly created ipynb file delete error. #27

Open fusying-hwang opened 5 days ago

fusying-hwang commented 5 days ago

I created a new ipynb file with contents like

{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n" ] } ], "metadata": { "kernelspec": { "display_name": ".env.venv", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.12.3" } }, "nbformat": 4, "nbformat_minor": 2 }

and then I deleted the file and I got the following error msg

Error executing lua callback: ...cal/share/nvim/lazy/jupytext.nvim/lua/jupytext/utils.lua:16: attempt to index a nil value stack traceback: ...cal/share/nvim/lazy/jupytext.nvim/lua/jupytext/utils.lua:16: in function 'get_ipynb_metadata' ...ocal/share/nvim/lazy/jupytext.nvim/lua/jupytext/init.lua:59: in function 'cleanup' ...ocal/share/nvim/lazy/jupytext.nvim/lua/jupytext/init.lua:110: in function <...ocal/share/nvim/lazy/jupytext.nvim/lua/jupytext/init.lua:109> [C]: in function 'nvim_buf_delete' ...y/nvim-tree.lua/lua/nvim-tree/actions/fs/remove-file.lua:37: in function 'clear_buffer'