Help: make file in vim shows error but in vim it is very hard to scroll to file of error

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Help: make file in vim shows error but in vim it is very hard to scroll to file of error

Kunal Chauhan
Hi Team,

I have large code , and run make all command in vim but at the end it shows some error for navigating to that error I have to scroll down all the stuff which is very painful.

Is there is a fast way to see or navigate to file which is causing error ?

--
Thanks with Regards!

Kunal Chauhan
Mob:09813614826
Mob:08860397903

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CACEFAc3TxkEPxKg8EvEWF0T7wYTuwy0BcFaeBxXu8U-SW3uWsw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Help: make file in vim shows error but in vim it is very hard to scroll to file of error

Gary Johnson-4
On 2020-05-02, Kunal Chauhan wrote:
> Hi Team,
>
> I have large code , and run make all command in vim but at the end it shows
> some error for navigating to that error I have to scroll down all the stuff
> which is very painful.
>
> Is there is a fast way to see or navigate to file which is causing error ?

If you run make all by executing the vim :make command like this:

    :make all

then all the errors will be captured in a quickfix list and you can
easily navigate to each one by using the :cn and :cp commands, or by
opening the quickfix list with the :copen command, searching or
scolling through the list and hitting Enter on the desired error.
In either case, Vim with then open a buffer containing that file and
with the cursor on the line with the error.

See

    :help 30.1
    :help :make
    :help quickfix.txt

Regards,
Gary

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200502165521.GB390%40phoenix.
Reply | Threaded
Open this post in threaded view
|

Re: Help: make file in vim shows error but in vim it is very hard to scroll to file of error

Kunal Chauhan
I am running the make from my source directory outside.

like:   /home/kunal/code/> make all  

On Sat, May 2, 2020 at 10:26 PM Gary Johnson <[hidden email]> wrote:
On 2020-05-02, Kunal Chauhan wrote:
> Hi Team,
>
> I have large code , and run make all command in vim but at the end it shows
> some error for navigating to that error I have to scroll down all the stuff
> which is very painful.
>
> Is there is a fast way to see or navigate to file which is causing error ?

If you run make all by executing the vim :make command like this:

    :make all

then all the errors will be captured in a quickfix list and you can
easily navigate to each one by using the :cn and :cp commands, or by
opening the quickfix list with the :copen command, searching or
scolling through the list and hitting Enter on the desired error.
In either case, Vim with then open a buffer containing that file and
with the cursor on the line with the error.

See

    :help 30.1
    :help :make
    :help quickfix.txt

Regards,
Gary

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200502165521.GB390%40phoenix.


--
Thanks with Regards!

Kunal Chauhan
Mob:09813614826
Mob:08860397903

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CACEFAc0z-s8tjYtGwodFcApfJgkzSdY3APYC7OB-ajQ8fZZRiw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Help: make file in vim shows error but in vim it is very hard to scroll to file of error

Rajarajan Rajamani-2
I think :make all is from inside vim

On Sat, May 2, 2020, 1:01 PM Kunal Chauhan <[hidden email]> wrote:
I am running the make from my source directory outside.

like:   /home/kunal/code/> make all  

On Sat, May 2, 2020 at 10:26 PM Gary Johnson <[hidden email]> wrote:
On 2020-05-02, Kunal Chauhan wrote:
> Hi Team,
>
> I have large code , and run make all command in vim but at the end it shows
> some error for navigating to that error I have to scroll down all the stuff
> which is very painful.
>
> Is there is a fast way to see or navigate to file which is causing error ?

If you run make all by executing the vim :make command like this:

    :make all

then all the errors will be captured in a quickfix list and you can
easily navigate to each one by using the :cn and :cp commands, or by
opening the quickfix list with the :copen command, searching or
scolling through the list and hitting Enter on the desired error.
In either case, Vim with then open a buffer containing that file and
with the cursor on the line with the error.

See

    :help 30.1
    :help :make
    :help quickfix.txt

Regards,
Gary

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200502165521.GB390%40phoenix.


--
Thanks with Regards!

Kunal Chauhan
Mob:09813614826
Mob:08860397903

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CACEFAc0z-s8tjYtGwodFcApfJgkzSdY3APYC7OB-ajQ8fZZRiw%40mail.gmail.com.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADbyKk4%3DJY0Pzf6adFsCXGxu5rppN2LEHE3%3DNWR7LQPCtgAuHA%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Help: make file in vim shows error but in vim it is very hard to scroll to file of error

Kunal Chauhan
yes you are right . It worked from inside and I was able to compile the code. 

On Sat, May 2, 2020 at 11:34 PM Rajarajan Rajamani <[hidden email]> wrote:
I think :make all is from inside vim

On Sat, May 2, 2020, 1:01 PM Kunal Chauhan <[hidden email]> wrote:
I am running the make from my source directory outside.

like:   /home/kunal/code/> make all  

On Sat, May 2, 2020 at 10:26 PM Gary Johnson <[hidden email]> wrote:
On 2020-05-02, Kunal Chauhan wrote:
> Hi Team,
>
> I have large code , and run make all command in vim but at the end it shows
> some error for navigating to that error I have to scroll down all the stuff
> which is very painful.
>
> Is there is a fast way to see or navigate to file which is causing error ?

If you run make all by executing the vim :make command like this:

    :make all

then all the errors will be captured in a quickfix list and you can
easily navigate to each one by using the :cn and :cp commands, or by
opening the quickfix list with the :copen command, searching or
scolling through the list and hitting Enter on the desired error.
In either case, Vim with then open a buffer containing that file and
with the cursor on the line with the error.

See

    :help 30.1
    :help :make
    :help quickfix.txt

Regards,
Gary

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200502165521.GB390%40phoenix.


--
Thanks with Regards!

Kunal Chauhan
Mob:09813614826
Mob:08860397903

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CACEFAc0z-s8tjYtGwodFcApfJgkzSdY3APYC7OB-ajQ8fZZRiw%40mail.gmail.com.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADbyKk4%3DJY0Pzf6adFsCXGxu5rppN2LEHE3%3DNWR7LQPCtgAuHA%40mail.gmail.com.


--
Thanks with Regards!

Kunal Chauhan
Mob:09813614826
Mob:08860397903

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CACEFAc1V6kKkiX-W%3D60A-R6zcFGhA%3D1dQjgVEXk5C3sDn159Kg%40mail.gmail.com.