adamiBs / vscode-terraform-live-graph

The Terraform Live Graph Extension for Visual Studio Code is a plugin that allows you to generate a live Terraform graph as you code.
https://marketplace.visualstudio.com/items?itemName=adamiBs.terraform-live-graph
MIT License
234 stars 3 forks source link

TypeError: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array #2

Open dribblor opened 1 year ago

dribblor commented 1 year ago

Graph view pane opens but is blank. Error in Extension Host log is below.

VS Code 1.76 Live Graph 0.01

Probably unrelated, but your keybinding of ctrl+shift+p didn't work because this is, by default, already bound to something else by VS code.

2023-03-12 12:09:52.246 [info] ExtensionService#_doActivateExtension adamiBs.terraform-live-graph, startup: false, activationEvent: 'onCommand:terraform-live-graph.generateGraphView' 2023-03-12 12:09:53.416 [error] TypeError: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Error at new NodeError (node:internal/errors:371:5) at _write (node:internal/streams/writable:312:13) at Writable.write (node:internal/streams/writable:334:10) at Readable.ondata (node:internal/streams/readable:754:22) at Readable.emit (node:events:526:28) at Readable.read (node:internal/streams/readable:527:10) at flow (node:internal/streams/readable:1011:34) at resume_ (node:internal/streams/readable:992:3) at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

adamiBs commented 1 year ago

Probably unrelated, but your keybinding of ctrl+shift+p didn't work because this is, by default, already bound to something else by VS code.

Regarding this, activation of the extension is through the "Command Palette", the key default key binding for opening it is `Ctrl+Shift+P 🙂. I'll clarify this with an update to the documentation.

2023-03-12 12:09:52.246 [info] ExtensionService#_doActivateExtension adamiBs.terraform-live-graph, startup: false, activationEvent: 'onCommand:terraform-live-graph.generateGraphView' 2023-03-12 12:09:53.416 [error] TypeError: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Error at new NodeError (node:internal/errors:371:5) at _write (node:internal/streams/writable:312:13) at Writable.write (node:internal/streams/writable:334:10) at Readable.ondata (node:internal/streams/readable:754:22) at Readable.emit (node:events:526:28) at Readable.read (node:internal/streams/readable:527:10) at flow (node:internal/streams/readable:1011:34) at resume_ (node:internal/streams/readable:992:3) at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

This seems like an unrelated bug that needs looking into.

adamiBs commented 1 year ago

Hi @dribblor I've published v0.0.3 that hopefully resolves the issues that you are facing. Could you please check?

dribblor commented 1 year ago

Hey,

Unfortunately I can't install v0.0.3, it says PackageIntegrityCheckFailed.

2023-03-15 08:49:45.008 [error] Signature: PackageIntegrityCheckFailed
    at yt.download (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:468)
    at async X.x (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760)
    at async X.h (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897)
adamiBs commented 1 year ago

My bad, probably an issue during the package upload. I've re-uploaded (under v0.0.4). Try now.

dribblor commented 1 year ago

I think you've resolved this error, but now running v0.0.5 I'm stuck with "Unexpected error: spawn terraform ENOENT" just like https://github.com/adamiBs/vscode-terraform-live-graph/issues/1.