zklinger / RelativeLineNumbers

Visual Studio 2010/2012/2013 extension to display relative line numbers like in Vim. Useful for ViEmu and VsVim extension users.
GNU General Public License v3.0
16 stars 15 forks source link

Relative line number location #6

Closed jnothstine closed 11 years ago

jnothstine commented 11 years ago

I am using relative line numbers with Visual Studio 2013. The line number indicator shows up on the far left side of Visual Studio instead of next to the code. Sometimes, after several restarts of Visual Studio the line numbers will show up in the correct location next to the code. Is there any way to make this work so it will always show up next to the code?

By the way, this is a really great addition and makes working with vsvim even better.

Thank you,

Jerry.

zklinger commented 11 years ago

Thanks for the bug report.

I have not seen this happen yet. Could you please perhaps attach a screen shot next time it happens again. How often would you say it happens? Do you have the normal line number display turned on? Do you use any other extensions that may interfere? I will look into it.

Cheers.

jnothstine commented 11 years ago

Thanks for the fast response. I have a screen shot below. Here are a couple of things I have tried:

  1.  I have tried disabling the VS10X Code Map plug in and that made no difference
  2.  Sometimes, the line shows up on the left side of the VS10X Code Map and sometimes it shows up where it is and sometimes it shows up to the right of the regular line numbers
  3.  I have tried turning off the regular line numbers and that seemed to have no impact either
  4.  I do have ReSharper installed and I have not tried disabling that to see if it has an impact
  5.  Today, it kept coming up on the left side of the VS10X Code Map.  After shutting down and restarting Visual Studio about five or six times, it finally came up where it is below.  There were no changes to any plugins or settings during that period
  6.  Yesterday, when I started Visual Studio, it came up to the right of the vertical line that is to the right of the regular line numbers
  7.  I wish I could determine some kind of consistent behavior but I have not been successful yet.

[cid:image001.png@01CECE88.95BB5780]

From: Zoltan Klinger [mailto:notifications@github.com] Sent: Monday, October 21, 2013 4:49 PM To: zklinger/RelativeLineNumbers Cc: Jerry Nothstine Subject: Re: [RelativeLineNumbers] Relative line number location (#6)

Thanks for the bug report.

I have not seen this happen yet. Could you please perhaps attach a screen shot next time it happens again. How often would you say it happens? Do you have the normal line number display turned on? Do you use any other extensions that may interfere? I will look into it.

Cheers.

— Reply to this email directly or view it on GitHubhttps://github.com/zklinger/RelativeLineNumbers/issues/6#issuecomment-26763806.

jnothstine commented 11 years ago

Here is another screen print from opening Visual Studio today. If I disable VS10X Code Map, the relative line numbers are still way to the left like this.

[cid:image002.png@01CECF35.C0E51CE0]

From: Jerry Nothstine Sent: Monday, October 21, 2013 6:09 PM To: 'zklinger/RelativeLineNumbers' Subject: RE: [RelativeLineNumbers] Relative line number location (#6)

Thanks for the fast response. I have a screen shot below. Here are a couple of things I have tried:

  1.  I have tried disabling the VS10X Code Map plug in and that made no difference
  2.  Sometimes, the line shows up on the left side of the VS10X Code Map and sometimes it shows up where it is and sometimes it shows up to the right of the regular line numbers
  3.  I have tried turning off the regular line numbers and that seemed to have no impact either
  4.  I do have ReSharper installed and I have not tried disabling that to see if it has an impact
  5.  Today, it kept coming up on the left side of the VS10X Code Map.  After shutting down and restarting Visual Studio about five or six times, it finally came up where it is below.  There were no changes to any plugins or settings during that period
  6.  Yesterday, when I started Visual Studio, it came up to the right of the vertical line that is to the right of the regular line numbers
  7.  I wish I could determine some kind of consistent behavior but I have not been successful yet.

[cid:image003.png@01CECF35.C0E51CE0]

From: Zoltan Klinger [mailto:notifications@github.com] Sent: Monday, October 21, 2013 4:49 PM To: zklinger/RelativeLineNumbers Cc: Jerry Nothstine Subject: Re: [RelativeLineNumbers] Relative line number location (#6)

Thanks for the bug report.

I have not seen this happen yet. Could you please perhaps attach a screen shot next time it happens again. How often would you say it happens? Do you have the normal line number display turned on? Do you use any other extensions that may interfere? I will look into it.

Cheers.

— Reply to this email directly or view it on GitHubhttps://github.com/zklinger/RelativeLineNumbers/issues/6#issuecomment-26763806.

jnothstine commented 11 years ago

I went to check the status of this and realized that my responses with pictures didn't work. Here is one with the relative line numbers way to the left. This is the one that occurs most frequently and is the most difficult to use because it is so far from the code.

linenumbersleft

zklinger commented 11 years ago

Hi Jerry,

Thank for the screen shot. Makes it easier to understand the issue you're having.

Cheers, Zoltan

On 30 October 2013 02:03, jnothstine notifications@github.com wrote:

I went to check the status of this and realized that my responses with pictures didn't work. Here is one with the relative line numbers way to the left. This is the one that occurs most frequently and is the most difficult to use because it is so far from the code.

[image: linenumbersleft]https://f.cloud.github.com/assets/779555/1428974/3f353238-40ab-11e3-8840-85379f73bef2.png

— Reply to this email directly or view it on GitHubhttps://github.com/zklinger/RelativeLineNumbers/issues/6#issuecomment-27310507 .

jnothstine commented 11 years ago

Without making any changes to Visual Studio, I have cycled it four or five times for various reasons, it decided to come up like the screen shot below. This happens once in a while and I do what I can to avoid shutting down Visual Studio when it works like this because it is much easier to work with. One time, it has been even closer to the code than this.

better

zklinger commented 11 years ago

Hi Jerry,

Just a quick update. Have managed to reproduce the issue. Will come up with a fix soon. In the meantime you can try this workaround (it worked forme): (1) Uninstall RelativeLineNumbers (2) Uninstall VS10xCodeMap (3) Close Visual Studio (4) Install RelativeLineNumbers (5) Install VS10xCodeMap (6) Open Visual Studio

Let me know if this workaround worked for you.

Also would you be interested in testing the new fix before it gets released?

Cheers, Zoltan

jnothstine commented 11 years ago

I am happy that you could reproduce this. It is such a strange issue, I wasn’t sure if it could be reproduced easily. I would definitely be happy to test a fix for you. If you think you might have a fix soon, maybe it is best I don’t mess with the workaround? If I get it working, wouldn’t it be harder to verify that a fix does the trick. If you agree, I won’t mess with the workaround. If you still want me to try the workaround, I will be happy to.

From: Zoltan Klinger [mailto:notifications@github.com] Sent: Wednesday, October 30, 2013 7:50 PM To: zklinger/RelativeLineNumbers Cc: Jerry Nothstine Subject: Re: [RelativeLineNumbers] Relative line number location (#6)

Hi Jerry,

Just a quick update. Have managed to reproduce the issue. Will come up with a fix soon. In the meantime you can try this workaround (it worked forme): (1) Uninstall RelativeLineNumbers (2) Uninstall VS10xCodeMap (3) Close Visual Studio (4) Install RelativeLineNumbers (5) Install VS10xCodeMap (6) Open Visual Studio

Let me know if this workaround worked for you.

Also would you be interested in testing the new fix before it gets released?

Cheers, Zoltan

— Reply to this email directly or view it on GitHubhttps://github.com/zklinger/RelativeLineNumbers/issues/6#issuecomment-27455451.

zklinger commented 11 years ago

Can you please download the pre-release version from https://github.com/zklinger/RelativeLineNumbers/releases/tag/pre_103 and see if it fixes the issue.

jnothstine commented 11 years ago

As far as I am concerned, this is perfect. I don't use the code folding or outlining stuff but people that do might have a problem with it. I have attached a picture so you can see how it looks. Again, for me it is just fine and I am quite pleased with the fix. linenumberfix

Regardless, thanks a bunch for the quick fix.

jnothstine commented 11 years ago

I just opened Visual Studio with a different project. The bar is still closer to the code but came up in a different place than the previous. I find it strange that it opens in different locations and not the same place all the time.

differentplace

zklinger commented 11 years ago

This version https://github.com/zklinger/RelativeLineNumbers/releases/tag/v.1.0.3-rc1 should place the relative line numbers consistently to the right of the normal line numbers. Could I please ask you to verify it for me. Cheers.

jnothstine commented 11 years ago

I installed it and opened Visual Studio twice with two separate solutions and it worked correctly both times. This is the first time that it has worked for me twice in a row so I believe it looks to be fixed.

Thanks for taking care of this. I never thought about using something like this until I saw your tool. Now I use the thing all the time. I love this plugin.

Jerry.

From: Zoltan Klinger [mailto:notifications@github.com] Sent: Wednesday, November 06, 2013 4:03 AM To: zklinger/RelativeLineNumbers Cc: Jerry Nothstine Subject: Re: [RelativeLineNumbers] Relative line number location (#6)

This version https://github.com/zklinger/RelativeLineNumbers/releases/tag/v.1.0.3-rc1 should place the relative line numbers consistently to the right of the normal line numbers. Could I please ask you to verify it for me. Cheers.

— Reply to this email directly or view it on GitHubhttps://github.com/zklinger/RelativeLineNumbers/issues/6#issuecomment-27863641.