foam icon indicating copy to clipboard operation
foam copied to clipboard

[v0.26.0] show graph command fails

Open codebuff opened this issue 1 year ago • 6 comments

Describe the bug

Show graph command fails. I am using this inside code-server , please see logs below

2024-10-02 15:57:59.507 [error] TypeError: fetch failed
	at node:internal/deps/undici/undici:12502:13
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async LH (/home/vscode/.local/share/code-server/extensions/foam.foam-vscode-0.26.0/out/bundles/extension-node.js:275:6895)
	at async IH (/home/vscode/.local/share/code-server/extensions/foam.foam-vscode-0.26.0/out/bundles/extension-node.js:275:6190)
	at async /home/vscode/.local/share/code-server/extensions/foam.foam-vscode-0.26.0/out/bundles/extension-node.js:275:4825
	at async u.h (/usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:161:210546) foam-vscode.show-graph {"value":"foam.foam-vscode","_lower":"foam.foam-vscode"}

Small Reproducible Example

No response

Steps to Reproduce the Bug or Issue

Try Foam:show graph command

Expected behavior

Graph appears

Screenshots or Videos

No response

Operating System Version

inside code-server instance, client is browser on Mac OS

Visual Studio Code Version

1.93.1

Additional context

As a workaround, I am reverting back to 0.25.12

codebuff avatar Oct 02 '24 16:10 codebuff

This also fails on vscode serve-web. There is also a warning the console: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.

I don't think that warning is connected... there are no other errors or warnings in the network or console.

mescanne avatar Oct 13 '24 09:10 mescanne

This also happened to me on Linux with either vscode or codium options.

mihaimaruseac avatar Oct 16 '24 16:10 mihaimaruseac

same. bump

sbussard-inversemetric avatar Oct 18 '24 13:10 sbussard-inversemetric

@pderaaij is looking into the issue. In the meantime, as 0.26 didn't introduce anything new except for the support of Foam as web extension, I recommend the workaround shared above about reverting to 0.25.12

riccardoferretti avatar Oct 18 '24 15:10 riccardoferretti

Confirming that rolling back to 0.25.12 gets this working in the github codespace/web docker.

With 0.26.4 failing.

VerveLight avatar Feb 11 '25 16:02 VerveLight

A tiny bit ironic if 0.26 enables it as a web Ide extension, as i'm unable to get foam commands to work on gitlab's web ide, and on github web ide, when clicking on a path it gives a windows path and doesnt refer to the correct root / path but the graph is atleast visible. So swapped to the code spaces version for this purpose, of which as mentioned above, the rollback is required to be able to open.

VerveLight avatar Feb 11 '25 16:02 VerveLight

Can you please verify this is still happening, and in that case include steps to reproduce it?

riccardoferretti avatar Oct 03 '25 11:10 riccardoferretti

Open a repo/folder in a running code-server instance and run Foam: Show Graph

Image

sbussard-inversemetric avatar Oct 27 '25 03:10 sbussard-inversemetric

Hello, I have the same issue. I first install foam, everything is ok. I close VSCodium an re-open a .md file and then none of the foam extension commands are working (i had the same problem on a linux or a windows version today)

Image

romainvidaud avatar Oct 28 '25 21:10 romainvidaud