Open david-dever-23-box opened 10 years ago
Here is the work around:
Sorry, that does not resolve the problem: • OS X 10.10 Yosemite • Brackets Release 0.44 experimental build 0.44.0-14876 (release 6d2d33d80)
A rewrite of the plugin is underway to use the new linter interface which should improve it's current configuration
Is there presently a prescribed workaround, or is this a compatibility issue with newer versions of flake8, on OS X, or in general?
Can you run which pep8
on your system?
$ sudo pip install flake8
Downloading/unpacking flake8
Downloading flake8-2.2.5.tar.gz
Running setup.py (path:/private/tmp/pip_build_root/flake8/setup.py) egg_info for package flake8
Downloading/unpacking pyflakes>=0.8.1 (from flake8)
Downloading pyflakes-0.8.1-py2.py3-none-any.whl
Downloading/unpacking pep8>=1.5.7 (from flake8)
Downloading pep8-1.5.7-py2.py3-none-any.whl
Downloading/unpacking mccabe>=0.2.1 (from flake8)
Downloading mccabe-0.2.1.tar.gz
Running setup.py (path:/private/tmp/pip_build_root/mccabe/setup.py) egg_info for package mccabe
Installing collected packages: flake8, pyflakes, pep8, mccabe
Running setup.py install for flake8
Installing flake8 script to /usr/local/bin
Running setup.py install for mccabe
Successfully installed flake8 pyflakes pep8 mccabe
Cleaning up...
$ which pep8
/usr/local/bin/pep8
Yeah, system should work. Have you tried adjusting the path to /usr/local/bin/pep8
in the defaultPreferences file?
pep8
, in the flake8
preferences file??
BLEH, sorry, I mean flake8, run which flake8
(Though, pep8 will work with this plugin)
Yes, no change
/*global brackets, define */
define(function (require, exports, module) {
"use strict";
// Default preferences are different for platforms
var defaultPreferences = {
"panelEnabled": true,
// these are set by platform
"flake8IsInSystemPath": null,
"flake8Path": null,
"msysflake8Path": null
};
defaultPreferences.flake8IsInSystemPath = false;
defaultPreferences.flake8Path = "/usr/local/bin/flake8";
module.exports = defaultPreferences;
});
I'll take a look and push a patch the rewrite to linter is going to take a bit longer
OK
same problem for me – the window just stays empty…
Any progress on this? I would love to be able to use your extension.
I appear to be having the same issue on Windows 7, the flake8 window just stays empty.
B:\ > > which flake8
C:\Python27\Scripts\flake8.EXE
defaultPreferences.flake8Path = "C:\Python27\Scripts\flake8.EXE";
I can report that I have the same issue on osx 10.10.3
Even hard coding the path does not help:
function getFLAKE8Binary() {
return "/usr/local/bin/flake8"
// if (preferences.getValue("flake8IsInSystemPath")) {
// return "flake8";
// } else {
// preferences.getValue("flake8Path");
// }
}
sorry for asking but i cant get flake to install, when i try;
$ sudo pip install flake8
or without $ sign i get "command not found in terminal
using osx 10.11.6
I got the flake installed but still shows error in the installed window. Using OSX 10.11.6 I see this error though when i tried to run the install code, the upgrade code seemed to work. That didnt return errors.
Extension cannot find valid flake8 installation on OS X, installed as
sudo pip install flake8 -- upgrade