Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

ShellCheck Error: need to run as root or suid #158

Open
KlfJoat opened this issue Jun 10, 2020 · 1 comment
Open

ShellCheck Error: need to run as root or suid #158

KlfJoat opened this issue Jun 10, 2020 · 1 comment

Comments

@KlfJoat
Copy link

KlfJoat commented Jun 10, 2020

Hi,

Some time in the last month or so, since I last opened Atom and used it, a problem has arisen with the automatic Shellcheck execution.

When I make any change to a bash script in Atom, I receive the following pop-up:

[Linter] Error running ShellCheck
See Console for more info.

With Open Console and Cancel as the button options.

When I open the console, the seemingly relevant section says...

/home/klfjoat/.atom/packages/linter/lib/linter-registry.js:154 
[Linter] Error running ShellCheck Error: need to run as root or suid
    at ChildProcess.<anonymous> (/home/klfjoat/.atom/packages/linter-autocomplete-jing/node_modules/sb-exec/lib/index.js:56)
    at ChildProcess.emit (events.js:194)
    at maybeClose (internal/child_process.js:998)
    at Socket.<anonymous> (internal/child_process.js:403)
    at Socket.emit (events.js:194)
    at Pipe.<anonymous> (net.js:593)
(anonymous) @ /home/klfjoat/.atom/packages/linter/lib/linter-registry.js:154

In what world must I be root to run Shellcheck!?!?! Obviously there is a problem, here. I'm just not sure at what level. So I started with the most specific piece that didn't work.

Basic background info...

  • Atom is up-to-date
  • All Atom packages are up-to-date
  • Shellcheck is up-to-date from the official Shellcheck snap package (created by the author, not someone else), and this is how it has always run successfully.
  • I have manually run Shellcheck on the same file that was open in Atom, and it ran (without root) and provided me with useful output.
  • I have tried hard-coding the Shellcheck executable path in the package config /snap/bin/shellcheck, but no change in experience.
  • All other options in linter-shellcheck are default.
  • No other errors that I can see in Atom.
@ipkpjersi
Copy link

I have been able to replicate this issue on Atom 1.51.0 x64 snap on Ubuntu 18.04.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants