Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening error file in Clist not works in neovim #42

Closed
Mariappan opened this issue Mar 8, 2017 · 3 comments
Closed

Opening error file in Clist not works in neovim #42

Mariappan opened this issue Mar 8, 2017 · 3 comments

Comments

@Mariappan
Copy link

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:

  • Clone the repo

https://github.com/Mariappan/testrepo

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]∙
|| }∙

@skywind3000
Copy link
Owner

AsyncRun has nothing to do with the error text. It had been changed by vim from full path to a short path name.

@Mariappan
Copy link
Author

Mariappan commented Mar 9, 2017

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

@Mariappan
Copy link
Author

Works with the latest HEAD. Closing the issue.

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

No branches or pull requests

2 participants