vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Error when opening notebook files in tests

Open leep-frog opened this issue 1 year ago • 6 comments

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"}

leep-frog avatar Nov 30 '24 04:11 leep-frog

Can you share the contents of simple-notebook.ipynb?

connor4312 avatar Nov 30 '24 13:11 connor4312

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

leep-frog avatar Dec 10 '24 00:12 leep-frog

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?

leep-frog avatar Mar 04 '25 04:03 leep-frog

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!