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

Linux: Occassional write EPIPE console error with shell commands that use stdin #434

Open
4 tasks
Taitava opened this issue Nov 9, 2024 · 0 comments
Open
4 tasks
Labels
affects/Linux For issues that do not affect all operating systems. bug Something isn't working

Comments

@Taitava
Copy link
Owner

Taitava commented Nov 9, 2024

I'm currently testing SC 0.23.0 before releasing it, and came up with this error on Xubuntu 22.04 and Obsidian 1.7.5. I assume this error has probably occurred in all versions of SC that support stdin, so I won't postpone releasing 0.23.0 because of this.

image

Uncaught Error: write EPIPE
    at __node_internal_captureLargerStackTrace (node:internal/errors:490:5)
    at __node_internal_errnoException (node:internal/errors:620:12)
    at afterWriteDispatched (node:internal/stream_base_commons:160:15)
    at writeGeneric (node:internal/stream_base_commons:151:3)
    at Socket._writeGeneric (node:net:930:11)
    at Socket._write (node:net:942:8)
    at writeOrBuffer (node:internal/streams/writable:392:12)
    at _write (node:internal/streams/writable:333:10)
    at Writable.write (node:internal/streams/writable:337:10)
    at ShellCommandExecutor.executeShellCommand (plugin:obsidian-shellcommands:12064:41)
    at async eval (plugin:obsidian-shellcommands:11982:21)
    at async ShellCommandExecutor.doPreactionsAndExecuteShellCommand (plugin:obsidian-shellcommands:11952:9)
    at async Debouncer.execute (plugin:obsidian-shellcommands:11004:9)
    at async Debouncer.afterCooldown (plugin:obsidian-shellcommands:11057:21)
    at async Debouncer.executeWithDebouncing (plugin:obsidian-shellcommands:10963:25)
    at async TShellCommand.executeWithDebouncing (plugin:obsidian-shellcommands:11525:9)
    at async SC_Event_FileContentModified.trigger (plugin:obsidian-shellcommands:3492:13)
    at async eval (plugin:obsidian-shellcommands:3859:17)

Here's the problematic line in the SC plugin's source code:
image

TODO:

  • Fix the bug.
  • Add all affects version tags. Probably affects all versions that support stdin.
  • Add to CHANGELOG.md.
  • Write history entries to documentation.
@Taitava Taitava added bug Something isn't working affects/Linux For issues that do not affect all operating systems. labels Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/Linux For issues that do not affect all operating systems. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant