Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dribblor opened this issue Mar 12, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@dribblor
Copy link

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
Copy link
Owner

adamiBs commented Mar 13, 2023

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 added a commit that referenced this issue Mar 13, 2023
@adamiBs adamiBs added the bug Something isn't working label Mar 14, 2023
adamiBs added a commit that referenced this issue Mar 15, 2023
FIX: Resolve TypeError: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array #2
@adamiBs adamiBs self-assigned this Mar 15, 2023
@adamiBs
Copy link
Owner

adamiBs commented Mar 15, 2023

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

@dribblor
Copy link
Author

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
Copy link
Owner

adamiBs commented Mar 15, 2023

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

@dribblor
Copy link
Author

I think you've resolved this error, but now running v0.0.5 I'm stuck with "Unexpected error: spawn terraform ENOENT" just like #1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants