You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using vim 8.0 and open the file l1/src/main.c and giving this command: ":AsyncRun make"
|| gcc main.c -O0 -g -Wall -Werror -o test∙
|| main.c: In function ‘main’:∙ l1/src/main.c|7 col 5| error: expected ‘;’ before ‘return’∙
|| return 0;∙
|| ^∙ l1/src/main.c|8 col 1| error: control reaches end of non-void function [-Werror=return-type]∙
|| }∙
|| ^∙
|| cc1: all warnings being treated as errors∙
When using neovim 0.1.7 and open the file l1/src/main.c and giving this command: ":AsyncRun make"
|| gcc main.c -O0 -g -Wall -Werror -o test∙
||
|| main.c: In function ‘main’:∙
|| main.c|7 col 5| error: expected ‘;’ before ‘return’∙
|| return 0;∙
|| ^∙
||∙ main.c|8 col 1| error: control reaches end of non-void function [-Werror=return-type]∙
|| }∙
The text was updated successfully, but these errors were encountered:
The reason I reported here is since it works with ordinary :make in both VIM and neoVim.
Only when using :AsyncRun Make I am getting this problem.
Below is the output from :make of neovim
|| make -C l1
|| make[1]: Entering directory '/home/rmariappan/github/test/l1'
|| make -C src
|| make[2]: Entering directory '/home/rmariappan/github/test/l1/src'
|| gcc main.c -O0 -g -Wall -Werror -o test
|| main.c: In function ‘main’:
l1/src/main.c|7 col 5| error: expected ‘;’ before ‘return’
|| return 0;
|| ^
l1/src/main.c|8 col 1| error: control reaches end of non-void function [-Werror=return-type]
So i thought during receiving and parsing for the errorformat, something was missing
In neovim, when we use AsyncRun to GNU make, errors in the clist are not using the full path from the project root. The same works in vim 8.0
Steps to repro:
When using vim 8.0 and open the file l1/src/main.c and giving this command: ":AsyncRun make"
|| gcc main.c -O0 -g -Wall -Werror -o test∙
|| main.c: In function ‘main’:∙
l1/src/main.c|7 col 5| error: expected ‘;’ before ‘return’∙
|| return 0;∙
|| ^∙
l1/src/main.c|8 col 1| error: control reaches end of non-void function [-Werror=return-type]∙
|| }∙
|| ^∙
|| cc1: all warnings being treated as errors∙
When using neovim 0.1.7 and open the file l1/src/main.c and giving this command: ":AsyncRun make"
|| gcc main.c -O0 -g -Wall -Werror -o test∙
||
|| main.c: In function ‘main’:∙
||
main.c|7 col 5| error: expected ‘;’ before ‘return’∙
|| return 0;∙
|| ^∙
||∙
main.c|8 col 1| error: control reaches end of non-void function [-Werror=return-type]∙
|| }∙
The text was updated successfully, but these errors were encountered: