fisadev / fisa-vim-config

my vim configuration (lot of python, autocompletition, fuzzy finder, debugger, ...)
http://vim.fisadev.com
1.46k stars 497 forks source link

Neomake: Exe (python3 -m py_compile) of maker python is not executable. #126

Closed s0nik42 closed 2 years ago

s0nik42 commented 4 years ago

Hi,

First, thank you for sharing your configuration file, it's really amazing and a great work !

I'm using the last version of your config file, but I encounter a problem with Neomake.

The 2 following lines :

  let g:neomake_python_python_maker.exe = 'python3 -m py_compile'
  let g:neomake_python_python_maker.exe = 'python3 -m flake8'

generate the following errors : Neomake: Exe (python3 -m py_compile) of maker python is not executable. Neomake: Exe (python3 -m flake8) of maker python is not executable.

To get rid of it, I've got the change the flake line by the following one :

let g:neomake_python_flake8_maker.exe = 'flake8'

I think Neomake is considering 'python3 -m flake8' as an binary name instead of a binary + arguments.

NVIM v0.4.3

Neomake debug information

Async support: 1 Current filetype: Windows: 0 [shell, shellcmdflag, shellslash]: ['/bin/bash', '-c', 0] makeprg=make

Enabled makers

For the current filetype ("", used with :Neomake): None. NOTE: the current buffer does not have a filetype.

For the project (used with :Neomake!):

Default maker settings:

Settings
New-style (dict, overrides old-style)
g:neomake: unset
b:neomake: unset
Old-style
g:neomake_place_signs = 1
g:neomake_python_flake8_maker = {'output_stream': 'stdout', 'postprocess': function('neomake#makers#ft#python#Flake8EntryProcess'), 'filter_output': function('n
eomake#makers#ft#python#FilterPythonWarnings'), 'errorformat': '%E%f:%l: could not compile,%-Z%p^,%A%f:%l:%c: %t%n %m,%A%f:%l: %t%n %m,%-G%.%#', 'short_name': '
fl8', 'args': ['--format=default'], 'supports_stdin': function('4'), 'exe': 'python3 -m flake8'}
g:neomake_python_python_maker = {'output_stream': 'stdout', 'serialize_abort_on_error': 1, 'errorformat': '%E%f:%l:%c: E: %m,%W%f:%l: W: %m', 'short_name': 'py'
, 'args': ['/Users/s0nik42/.vim/plugged/neomake/autoload/neomake/makers/ft/python/compile.py'], 'serialize': 1, 'exe': 'python3 -m py_compile'}
g:neomake_virtualtext_current_error = 0

:version

NVIM v0.4.3
Build type: Release
Lua 5.3   
Compilation: /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG
_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -f
stack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DNVIM_UNIBI_HAS_VAR_FROM -I/opt/local/var/macports/build/_opt_bblocal_var_buil
dworker_ports_build_ports_editors_neovim/neovim/work/build/config -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_editors_neovim/
neovim/work/neovim-0.4.3/src -I/opt/local/include -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_editors_neovim/neovim/work/buil
d/src/nvim/auto -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_editors_neovim/neovim/work/build/include
Compiled by macports@catalina.internal.macports.net

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/local/share/nvim"

Run :checkhealth for more info

:messages

fisadev commented 4 years ago

Thank you!

Regarding the issue: I think it would be mroe appropriate to report this to Neomake itself (https://github.com/neomake/neomake), as I don't have control over how it handles the executables configured for each language.

But just in case: are you using virtualenvs? Could it be that you have the tools installed outside the venv, and then you are running the editor from inside it?