Error when opening notebook files in tests
I have written an extension that automatically opens a notebook file. The relevant code for that is below:
const p = path.join(__dirname, "simple-notebook.ipynb");
const u = vscode.Uri.file(p);
const nb = await vscode.workspace.openNotebookDocument(u);
await vscode.window.showNotebookDocument(nb);
When I run the extension in debug mode, this works just fine. When I try to test this logic via the API, the following error occurs:
Error: Notebook Editor creation failure for document {"$mid":1,"external":"file:///c%3A/Users/.../simple-notebook.ipynb","path":"/c:/Users/.../simple-notebook.ipynb","scheme":"file"}
Can you share the contents of simple-notebook.ipynb?
Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!
It's just an empty notebook. I also tried adding a single import line import re, but the issue still persists
Hey @rebornix, this issue might need further attention.
@leep-frog, you can help us out by closing this issue if the problem no longer exists, or adding more information.
The problem still persists. @connor4312 or @rebornix any thoughts?
Hey @rebornix, this issue might need further attention.
@leep-frog, you can help us out by closing this issue if the problem no longer exists, or adding more information.
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!