linter-flake8 icon indicating copy to clipboard operation
linter-flake8 copied to clipboard

Flake8 fails when directory opened with the atom command

Open albireox opened this issue 8 years ago • 2 comments

When I open a directory in Atom with the command

atom <path>

linter-flake8 throws this error and does not lint

Flake8 crashed! linter-flake8:: Flake8 threw an error related to: /bin/sh: error importing function definition for `module' Please check Atom's Console for more details

If I just drag the directory to the Atom icon everything works ok.

This is happening with Atom 1.17.0-beta4 on macOS.

albireox avatar May 03 '17 13:05 albireox

This is a configuration issue with your environment, something in your shell environment (eg. .bashrc) isn't running properly when we attempt to execute flake8.

Arcanemagus avatar May 03 '17 17:05 Arcanemagus

I'm using fish shell and actually don't have a .bashrc file. As far as I can remember I haven't had this problem in the past.

albireox avatar May 03 '17 18:05 albireox