Feature Request: Navigation Bar

I don't yet know where to post a request like this, and I'd like some
feedback as to whether it's a good idea or not.

I really like the side bar that sits next to the vertical scrollbar in a
code pane.  This bar identifies the warnings and errors and their relative
position in the document.  However, it would be MUCH more useful if the bar
identified the 'region' of code that I am currently looking at by
highlighting/darkening the respective rectangular region.

This would provide two benefits:

1.  I could determine the position of the error/warning relative to where I
am in the document.  Do I need to scroll up or down to get to it (besides
just clicking on it)
2.  If the side bar were 'clickable' I could more easily 'jump' to a region
of code simply by clicking it rather than having to be more precise and
click on each error/warning link.

I've attached a sample picture identifying kind of what I'm envisioning.


begin 666 ResharperSideBar.png
MB5!.1PT&@H````-24A$4@```$T```%L" ,```"^4,2E````!&=!34$``_(
M-P6*Z0```!ET15AT4V]F='=A<F4`061O8F4@26UA9V5296%D>7')93P````_
M4$Q41?___SIV*RHF=C8W/'OXJOLW%O9/\``._MWMS<V\<S#-W=VTQ,3/^E
M`````-+2TO^!8*:FIDQ,_TQ,IDRF3/O1.4L```'\241!5'C:[-L-3X,P%(7A
M4L=T@H.A__W.AF?%\9'[]T@[CTFBR[Q*R%UB:;<U,YB!P/+JKBR\>/OWPW
M<=-M_1_]>-LER]R2M]\:WA66U$4V>6R3YLK=4WG69:_NY9HFMC,:MZIL
M9DZ+I;-P?N*(-;)U9N#ZTVUP:8I-MGW52"UM=EIO:\HUM
M\M)7V0:7OLXF%T?EN(G%\0%SFE=)=W<OV-ZGRC6DUQ;WH[3%;]W$6MM,&S9L
MV!APX8-&S9LV!APX8-&S9LV!APX8-&S9LV!AVX'MU(W:=GIO<]+;IMN<
MZ2O==$Z3;M2VY*M-HK=-MWG35[KIO6!K,QXWVSDUO=Y8>]D7V!<>,:>V-N-Q
MLYU3T^N--00;MD7O/T_[Z'%A@T;-FS8L&'#ANTU;)V3N(%MNHTY=M&/C$:
M;AO[Q&BX9)?*MM\'39LV/9H"]\7QFSA^PC]AKC9FNS'3?;.65]PX8-&S9L
MV!APX:-<Q;G,Y9V!APX8-&S9LV#Q/SGG4\ZGV!AP\9^NO&X_0HP`];
2=&H5R^?U`````$E%3D2N0F""
`
end

16 comments
Comment actions Permalink

"R. Aaron Zupancic" <aaron@devstone.com> wrote in message
news:e8molo$40o$1@is.intellij.net...

I really like the side bar that sits next to the vertical scrollbar in a
code pane.  This bar identifies the warnings and errors and their relative
position in the document.  However, it would be MUCH more useful if the
bar identified the 'region' of code that I am currently looking at by
highlighting/darkening the respective rectangular region.


Personally, I just use F12 to navigate to the errors R# has identified.

///ark


0
Comment actions Permalink

I do the same, but I think it would be nice to have a means to identify
'where' I am in a document relative to the errors/warnings and quickly be
able to 'jump' to a region without having to be more precise in clicking
each error/warning link.

Aaron

"Mark Wilden" <mark@mwilden.com> wrote in message
news:e8mv92$ekg$1@is.intellij.net...

"R. Aaron Zupancic" <aaron@devstone.com> wrote in message
news:e8molo$40o$1@is.intellij.net...

>
>> I really like the side bar that sits next to the vertical scrollbar in a
>> code pane.  This bar identifies the warnings and errors and their
>> relative position in the document.  However, it would be MUCH more useful
>> if the bar identified the 'region' of code that I am currently looking at
>> by highlighting/darkening the respective rectangular region.
>

Personally, I just use F12 to navigate to the errors R# has identified.

>

///ark



0
Comment actions Permalink

Hello Aaron,

could you please describe in more detail what are those 'regions' you mean?
Are they
defined by C# preprocessor directive #region? Or do they correspond to types/members
or smth else? Thanks.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I do the same, but I think it would be nice to have a means to
identify 'where' I am in a document relative to the errors/warnings
and quickly be able to 'jump' to a region without having to be more
precise in clicking each error/warning link.

Aaron

"Mark Wilden" <mark@mwilden.com> wrote in message
news:e8mv92$ekg$1@is.intellij.net...

>> "R. Aaron Zupancic" <aaron@devstone.com> wrote in message
>> news:e8molo$40o$1@is.intellij.net...
>>
>>> I really like the side bar that sits next to the vertical scrollbar
>>> in a code pane.  This bar identifies the warnings and errors and
>>> their relative position in the document.  However, it would be MUCH
>>> more useful if the bar identified the 'region' of code that I am
>>> currently looking at by highlighting/darkening the respective
>>> rectangular region.
>>>
>> Personally, I just use F12 to navigate to the errors R# has
>> identified.
>>
>> ///ark
>>


0
Comment actions Permalink

The 'region' I have in mind isn't the #region directive, but more a section
of code.
The R# sidebar (what is its name?) in VS effectively maps out the entire
document and positions an error/warning token/line to identify the relative
position of the item within the document.  I see that it would be helpful it
it also identified (as per my attachment at the start of this thread) the
block of code that I'm currently looking at.  It would be even more helpful
if the sidebar were clickable, effectively allowing me to 'jump' to another
screen of code elsewhere in the document without resorting to the scrollbar,
keyboard, or having to click directly on the error/warning link.

For instance, suppose I had a .cs file that was 100 lines long.  Suppose as
well that my code window displayed 30 lines of code.  I would like to see a
shaded region on the sidebar that indicated roughly which 30% of the code I
was looking at.  The shaded region would move as I scrolled and would resize
as my code window resizes, relative to the amount of visible space.

This way, I could see that the red error link is either above my position in
the code, on the screen, or below.
It would basically give me more of a bearing as to where I am in the code
and where the errors are relative to my 'viewport' while also giving me a
'quick jump' to another screen full of code.

Am I up in the night?


"Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
news:c8a894d91a8b778c870e3ffed486e@news.intellij.net...

Hello Aaron,

>

could you please describe in more detail what are those 'regions' you
mean? Are they
defined by C# preprocessor directive #region? Or do they correspond to
types/members
or smth else? Thanks.

>

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>
>> I do the same, but I think it would be nice to have a means to
>> identify 'where' I am in a document relative to the errors/warnings
>> and quickly be able to 'jump' to a region without having to be more
>> precise in clicking each error/warning link.
>>
>> Aaron
>>
>> "Mark Wilden" <mark@mwilden.com> wrote in message
>> news:e8mv92$ekg$1@is.intellij.net...
>>
>>> "R. Aaron Zupancic" <aaron@devstone.com> wrote in message
>>> news:e8molo$40o$1@is.intellij.net...
>>>
>>>> I really like the side bar that sits next to the vertical scrollbar
>>>> in a code pane.  This bar identifies the warnings and errors and
>>>> their relative position in the document.  However, it would be MUCH
>>>> more useful if the bar identified the 'region' of code that I am
>>>> currently looking at by highlighting/darkening the respective
>>>> rectangular region.
>>>>
>>> Personally, I just use F12 to navigate to the errors R# has
>>> identified.
>>>
>>> ///ark
>>>
>



0
Comment actions Permalink

"R. Aaron Zupancic" <aaron@devstone.com> wrote in message
news:e8ojer$iad$1@is.intellij.net...

>I do the same, but I think it would be nice to have a means to identify
>'where' I am in a document relative to the errors/warnings and quickly be
>able to 'jump' to a region without having to be more precise in clicking
>each error/warning link.

It seems to me that this would only be useful if either a) you were working
with a large source file, or b) you only wanted to fix one of a number of
errors. Both of those situations should be avoided, in my opinion.

You're saying it "would be nice" - can you give a real-world scenario in
which this feature would help you? (I'm not being argumentative - just
curious.)

///ark


>

Aaron

>

"Mark Wilden" <mark@mwilden.com> wrote in message
news:e8mv92$ekg$1@is.intellij.net...

>> "R. Aaron Zupancic" <aaron@devstone.com> wrote in message
>> news:e8molo$40o$1@is.intellij.net...
>>
>>> I really like the side bar that sits next to the vertical scrollbar in a
>>> code pane.  This bar identifies the warnings and errors and their
>>> relative position in the document.  However, it would be MUCH more
>>> useful if the bar identified the 'region' of code that I am currently
>>> looking at by highlighting/darkening the respective rectangular region.
>>
>> Personally, I just use F12 to navigate to the errors R# has identified.
>>
>> ///ark
>>
>



0
Comment actions Permalink

Hello Aaron,

so do I understand correctly that region in your sense is simply a range
of lines currently
visible in the editor? If yes, then I don't quite understand why do you need
a special representations
for such regions on the error stripe (the R# sidebar), as the error stripe
is synchronized with
the vertical scrollbar in the following way: if an error / warning mark on
the error stripe is in
the area covered by the scrollbar's slider, then the corresponding error
/ warning is in the
visible area in the editor. Given that you can't eliminate the vertical scrollbar
anyway (since it enables
for scrolling), it seems to me that your proposal leads to some duplication
of functions
between the scrollbar and the error stripe. Sorry if I'm missing something
though.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

The 'region' I have in mind isn't the #region directive, but more a
section
of code.
The R# sidebar (what is its name?) in VS effectively maps out the
entire
document and positions an error/warning token/line to identify the
relative
position of the item within the document.  I see that it would be
helpful it
it also identified (as per my attachment at the start of this thread)
the
block of code that I'm currently looking at.  It would be even more
helpful
if the sidebar were clickable, effectively allowing me to 'jump' to
another
screen of code elsewhere in the document without resorting to the
scrollbar,
keyboard, or having to click directly on the error/warning link.
For instance, suppose I had a .cs file that was 100 lines long.
Suppose as well that my code window displayed 30 lines of code.  I
would like to see a shaded region on the sidebar that indicated
roughly which 30% of the code I was looking at.  The shaded region
would move as I scrolled and would resize as my code window resizes,
relative to the amount of visible space.

This way, I could see that the red error link is either above my
position in
the code, on the screen, or below.
It would basically give me more of a bearing as to where I am in the
code
and where the errors are relative to my 'viewport' while also giving
me a
'quick jump' to another screen full of code.
Am I up in the night?

"Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
news:c8a894d91a8b778c870e3ffed486e@news.intellij.net...

>> Hello Aaron,
>>
>> could you please describe in more detail what are those 'regions' you
>> mean? Are they
>> defined by C# preprocessor directive #region? Or do they correspond
>> to
>> types/members
>> or smth else? Thanks.
>> Regards,
>> Dmitry Shaporenkov
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>> I do the same, but I think it would be nice to have a means to
>>> identify 'where' I am in a document relative to the errors/warnings
>>> and quickly be able to 'jump' to a region without having to be more
>>> precise in clicking each error/warning link.
>>>
>>> Aaron
>>>
>>> "Mark Wilden" <mark@mwilden.com> wrote in message
>>> news:e8mv92$ekg$1@is.intellij.net...
>>>> "R. Aaron Zupancic" <aaron@devstone.com> wrote in message
>>>> news:e8molo$40o$1@is.intellij.net...
>>>>
>>>>> I really like the side bar that sits next to the vertical
>>>>> scrollbar in a code pane.  This bar identifies the warnings and
>>>>> errors and their relative position in the document.  However, it
>>>>> would be MUCH more useful if the bar identified the 'region' of
>>>>> code that I am currently looking at by highlighting/darkening the
>>>>> respective rectangular region.
>>>>>
>>>> Personally, I just use F12 to navigate to the errors R# has
>>>> identified.
>>>>
>>>> ///ark
>>>>


0
Comment actions Permalink


It seems to me that this is not correct, only approximately,
and it fails when you use collapsible regions in the file.

We had this discussion some time ago I believe and it was said
that this synchronization cannot be done exactly nor was it
intended. If my memory serves me right, it was argued that
the error bar shows the relative location of the error with
respect to all lines of the file (all regions expanded), whereas
the scrollbar shows the position of the lines in the editor
with respect to the current collapsed/expanded state of the regions.

Regards,
Andreas


Dmitry Shaporenkov (JetBrains) schrieb:

Hello Aaron,

so do I understand correctly that region in your sense is simply a range
of lines currently
visible in the editor? If yes, then I don't quite understand why do you
need a special representations
for such regions on the error stripe (the R# sidebar), as the error
stripe is synchronized with
the vertical scrollbar in the following way: if an error / warning mark
on the error stripe is in
the area covered by the scrollbar's slider, then the corresponding error
/ warning is in the
visible area in the editor. Given that you can't eliminate the vertical
scrollbar anyway (since it enables
for scrolling), it seems to me that your proposal leads to some
duplication of functions
between the scrollbar and the error stripe. Sorry if I'm missing
something though.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>> The 'region' I have in mind isn't the #region directive, but more a
>> section
>> of code.
>> The R# sidebar (what is its name?) in VS effectively maps out the
>> entire
>> document and positions an error/warning token/line to identify the
>> relative
>> position of the item within the document.  I see that it would be
>> helpful it
>> it also identified (as per my attachment at the start of this thread)
>> the
>> block of code that I'm currently looking at.  It would be even more
>> helpful
>> if the sidebar were clickable, effectively allowing me to 'jump' to
>> another
>> screen of code elsewhere in the document without resorting to the
>> scrollbar,
>> keyboard, or having to click directly on the error/warning link.
>> For instance, suppose I had a .cs file that was 100 lines long.
>> Suppose as well that my code window displayed 30 lines of code.  I
>> would like to see a shaded region on the sidebar that indicated
>> roughly which 30% of the code I was looking at.  The shaded region
>> would move as I scrolled and would resize as my code window resizes,
>> relative to the amount of visible space.
>>
>> This way, I could see that the red error link is either above my
>> position in
>> the code, on the screen, or below.
>> It would basically give me more of a bearing as to where I am in the
>> code
>> and where the errors are relative to my 'viewport' while also giving
>> me a
>> 'quick jump' to another screen full of code.
>> Am I up in the night?
>>
>> "Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
>> news:c8a894d91a8b778c870e3ffed486e@news.intellij.net...
>>
>>> Hello Aaron,
>>>
>>> could you please describe in more detail what are those 'regions' you
>>> mean? Are they
>>> defined by C# preprocessor directive #region? Or do they correspond
>>> to
>>> types/members
>>> or smth else? Thanks.
>>> Regards,
>>> Dmitry Shaporenkov
>>> JetBrains, Inc
>>> http://www.jetbrains.com
>>> "Develop with pleasure!"
>>>> I do the same, but I think it would be nice to have a means to
>>>> identify 'where' I am in a document relative to the errors/warnings
>>>> and quickly be able to 'jump' to a region without having to be more
>>>> precise in clicking each error/warning link.
>>>>
>>>> Aaron
>>>>
>>>> "Mark Wilden" <mark@mwilden.com> wrote in message
>>>> news:e8mv92$ekg$1@is.intellij.net...
>>>>> "R. Aaron Zupancic" <aaron@devstone.com> wrote in message
>>>>> news:e8molo$40o$1@is.intellij.net...
>>>>>
>>>>>> I really like the side bar that sits next to the vertical
>>>>>> scrollbar in a code pane.  This bar identifies the warnings and
>>>>>> errors and their relative position in the document.  However, it
>>>>>> would be MUCH more useful if the bar identified the 'region' of
>>>>>> code that I am currently looking at by highlighting/darkening the
>>>>>> respective rectangular region.
>>>>>>
>>>>> Personally, I just use F12 to navigate to the errors R# has
>>>>> identified.
>>>>>
>>>>> ///ark
>>>>>


if an error / warning mark
on the error stripe is in
the area covered by the scrollbar's slider, then the corresponding
error / warning is in the
visible area in the editor.

0
Comment actions Permalink

Hello Andreas,

sorry, I can't remember the discussion. Perhaps it was not me,
or my memory is so poor. Will be grateful for a link.

As far as I can understand the error stripe (at least it was originially
intended so) should respect the state of collapsible regions in the editor.
The problem
is that it is not trivial to do that in VS due to some problems with coordinate
transformation,
and as a result we have bugs with the error stripe you mentioned. Note that
implementing
the suggestion of the original poster will lead to that very problem - we
will need to take into
account the current state of collapsible regions. So it doesn't seem to me
to be any
better than the current error stripe in this aspect.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>> if an error / warning mark
>> on the error stripe is in
>> the area covered by the scrollbar's slider, then the corresponding
>> error / warning is in the
>> visible area in the editor.

It seems to me that this is not correct, only approximately, and it
fails when you use collapsible regions in the file.

We had this discussion some time ago I believe and it was said
that this synchronization cannot be done exactly nor was it
intended. If my memory serves me right, it was argued that
the error bar shows the relative location of the error with
respect to all lines of the file (all regions expanded), whereas
the scrollbar shows the position of the lines in the editor
with respect to the current collapsed/expanded state of the regions.
Regards,
Andreas
Dmitry Shaporenkov (JetBrains) schrieb:

>> Hello Aaron,
>>
>> so do I understand correctly that region in your sense is simply a
>> range
>> of lines currently
>> visible in the editor? If yes, then I don't quite understand why do
>> you
>> need a special representations
>> for such regions on the error stripe (the R# sidebar), as the error
>> stripe is synchronized with
>> the vertical scrollbar in the following way: if an error / warning
>> mark
>> on the error stripe is in
>> the area covered by the scrollbar's slider, then the corresponding
>> error
>> / warning is in the
>> visible area in the editor. Given that you can't eliminate the
>> vertical
>> scrollbar anyway (since it enables
>> for scrolling), it seems to me that your proposal leads to some
>> duplication of functions
>> between the scrollbar and the error stripe. Sorry if I'm missing
>> something though.
>> Regards,
>> Dmitry Shaporenkov
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>> The 'region' I have in mind isn't the #region directive, but more a
>>> section
>>> of code.
>>> The R# sidebar (what is its name?) in VS effectively maps out the
>>> entire
>>> document and positions an error/warning token/line to identify the
>>> relative
>>> position of the item within the document.  I see that it would be
>>> helpful it
>>> it also identified (as per my attachment at the start of this
>>> thread)
>>> the
>>> block of code that I'm currently looking at.  It would be even more
>>> helpful
>>> if the sidebar were clickable, effectively allowing me to 'jump' to
>>> another
>>> screen of code elsewhere in the document without resorting to the
>>> scrollbar,
>>> keyboard, or having to click directly on the error/warning link.
>>> For instance, suppose I had a .cs file that was 100 lines long.
>>> Suppose as well that my code window displayed 30 lines of code.  I
>>> would like to see a shaded region on the sidebar that indicated
>>> roughly which 30% of the code I was looking at.  The shaded region
>>> would move as I scrolled and would resize as my code window resizes,
>>> relative to the amount of visible space.
>>> This way, I could see that the red error link is either above my
>>> position in
>>> the code, on the screen, or below.
>>> It would basically give me more of a bearing as to where I am in the
>>> code
>>> and where the errors are relative to my 'viewport' while also giving
>>> me a
>>> 'quick jump' to another screen full of code.
>>> Am I up in the night?
>>> "Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in
>>> message news:c8a894d91a8b778c870e3ffed486e@news.intellij.net...
>>>
>>>> Hello Aaron,
>>>>
>>>> could you please describe in more detail what are those 'regions'
>>>> you
>>>> mean? Are they
>>>> defined by C# preprocessor directive #region? Or do they correspond
>>>> to
>>>> types/members
>>>> or smth else? Thanks.
>>>> Regards,
>>>> Dmitry Shaporenkov
>>>> JetBrains, Inc
>>>> http://www.jetbrains.com
>>>> "Develop with pleasure!"
>>>>> I do the same, but I think it would be nice to have a means to
>>>>> identify 'where' I am in a document relative to the
>>>>> errors/warnings and quickly be able to 'jump' to a region without
>>>>> having to be more precise in clicking each error/warning link.
>>>>>
>>>>> Aaron
>>>>>
>>>>> "Mark Wilden" <mark@mwilden.com> wrote in message
>>>>> news:e8mv92$ekg$1@is.intellij.net...
>>>>>> "R. Aaron Zupancic" <aaron@devstone.com> wrote in message
>>>>>> news:e8molo$40o$1@is.intellij.net...
>>>>>>
>>>>>>> I really like the side bar that sits next to the vertical
>>>>>>> scrollbar in a code pane.  This bar identifies the warnings and
>>>>>>> errors and their relative position in the document.  However, it
>>>>>>> would be MUCH more useful if the bar identified the 'region' of
>>>>>>> code that I am currently looking at by highlighting/darkening
>>>>>>> the respective rectangular region.
>>>>>>>
>>>>>> Personally, I just use F12 to navigate to the errors R# has
>>>>>> identified.
>>>>>>
>>>>>> ///ark
>>>>>>


0
Comment actions Permalink

Mark as I recall it there are a lot of people out there that use ReSharper
and that have class files with thousands lines of codes. I agree that a well
design would have the perfect maximum of 7 public methods and an average of
15 lines of codes per method but from my experience in real life this is not
reality.

--
Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net

"Mark Wilden" <mark@mwilden.com> wrote in message
news:e8ovsg$89b$1@is.intellij.net...

"R. Aaron Zupancic" <aaron@devstone.com> wrote in message
news:e8ojer$iad$1@is.intellij.net...

>
>>I do the same, but I think it would be nice to have a means to identify
>>'where' I am in a document relative to the errors/warnings and quickly be
>>able to 'jump' to a region without having to be more precise in clicking
>>each error/warning link.
>

It seems to me that this would only be useful if either a) you were
working with a large source file, or b) you only wanted to fix one of a
number of errors. Both of those situations should be avoided, in my
opinion.

>

You're saying it "would be nice" - can you give a real-world scenario in
which this feature would help you? (I'm not being argumentative - just
curious.)

>

///ark

>
>
>>
>> Aaron
>>
>> "Mark Wilden" <mark@mwilden.com> wrote in message
>> news:e8mv92$ekg$1@is.intellij.net...
>>> "R. Aaron Zupancic" <aaron@devstone.com> wrote in message
>>> news:e8molo$40o$1@is.intellij.net...
>>>
>>>> I really like the side bar that sits next to the vertical scrollbar in
>>>> a code pane.  This bar identifies the warnings and errors and their
>>>> relative position in the document.  However, it would be MUCH more
>>>> useful if the bar identified the 'region' of code that I am currently
>>>> looking at by highlighting/darkening the respective rectangular region.
>>>
>>> Personally, I just use F12 to navigate to the errors R# has identified.
>>>
>>> ///ark
>>>
>>
>>
>



0
Comment actions Permalink

"Gabriel Lozano-Morán" <gabriel@pointerx.net> wrote in message
news:e8rssm$kts$1@is.intellij.net...

Mark as I recall it there are a lot of people out there that use ReSharper
and that have class files with thousands lines of codes. I agree that a
well design would have the perfect maximum of 7 public methods and an
average of 15 lines of codes per method but from my experience in real
life this is not reality.


You're right, Gabriel - I forget that there are people who have to work with
crap code. They need R# even more than I do. :)

///ark


0
Comment actions Permalink

Hello Dmitry,

If the error bar took into account the collapsible regions
and if the position of the error marks matched with the
scroll bar knob to reflect the visible region, then the
original suggestion would indeed be redundant.

I am sorry, but I cannot find the discussion entries
I mentioned any more. It might have been in one of the
tracker issues. I was not involved in that discussion
either, but I got the impression that this synchronization
was not possible. I hope you can find workarounds for
the problems posed by VS.

Regards,
Andreas

Dmitry Shaporenkov (JetBrains) schrieb:

Hello Andreas,

sorry, I can't remember the discussion. Perhaps it was not me,
or my memory is so poor. Will be grateful for a link.
As far as I can understand the error stripe (at least it was originially
intended so) should respect the state of collapsible regions in the
editor. The problem
is that it is not trivial to do that in VS due to some problems with
coordinate transformation,
and as a result we have bugs with the error stripe you mentioned. Note
that implementing
the suggestion of the original poster will lead to that very problem -
we will need to take into account the current state of collapsible
regions. So it doesn't seem to me to be any
better than the current error stripe in this aspect.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>>> if an error / warning mark
>>> on the error stripe is in
>>> the area covered by the scrollbar's slider, then the corresponding
>>> error / warning is in the
>>> visible area in the editor.
>> It seems to me that this is not correct, only approximately, and it
>> fails when you use collapsible regions in the file.
>>
>> We had this discussion some time ago I believe and it was said
>> that this synchronization cannot be done exactly nor was it
>> intended. If my memory serves me right, it was argued that
>> the error bar shows the relative location of the error with
>> respect to all lines of the file (all regions expanded), whereas
>> the scrollbar shows the position of the lines in the editor
>> with respect to the current collapsed/expanded state of the regions.
>> Regards,
>> Andreas
>> Dmitry Shaporenkov (JetBrains) schrieb:
>>
>>> Hello Aaron,
>>>
>>> so do I understand correctly that region in your sense is simply a
>>> range
>>> of lines currently
>>> visible in the editor? If yes, then I don't quite understand why do
>>> you
>>> need a special representations
>>> for such regions on the error stripe (the R# sidebar), as the error
>>> stripe is synchronized with
>>> the vertical scrollbar in the following way: if an error / warning
>>> mark
>>> on the error stripe is in
>>> the area covered by the scrollbar's slider, then the corresponding
>>> error
>>> / warning is in the
>>> visible area in the editor. Given that you can't eliminate the
>>> vertical
>>> scrollbar anyway (since it enables
>>> for scrolling), it seems to me that your proposal leads to some
>>> duplication of functions
>>> between the scrollbar and the error stripe. Sorry if I'm missing
>>> something though.
>>> Regards,
>>> Dmitry Shaporenkov
>>> JetBrains, Inc
>>> http://www.jetbrains.com
>>> "Develop with pleasure!"
>>>> The 'region' I have in mind isn't the #region directive, but more a
>>>> section
>>>> of code.
>>>> The R# sidebar (what is its name?) in VS effectively maps out the
>>>> entire
>>>> document and positions an error/warning token/line to identify the
>>>> relative
>>>> position of the item within the document.  I see that it would be
>>>> helpful it
>>>> it also identified (as per my attachment at the start of this
>>>> thread)
>>>> the
>>>> block of code that I'm currently looking at.  It would be even more
>>>> helpful
>>>> if the sidebar were clickable, effectively allowing me to 'jump' to
>>>> another
>>>> screen of code elsewhere in the document without resorting to the
>>>> scrollbar,
>>>> keyboard, or having to click directly on the error/warning link.
>>>> For instance, suppose I had a .cs file that was 100 lines long.
>>>> Suppose as well that my code window displayed 30 lines of code.  I
>>>> would like to see a shaded region on the sidebar that indicated
>>>> roughly which 30% of the code I was looking at.  The shaded region
>>>> would move as I scrolled and would resize as my code window resizes,
>>>> relative to the amount of visible space.
>>>> This way, I could see that the red error link is either above my
>>>> position in
>>>> the code, on the screen, or below.
>>>> It would basically give me more of a bearing as to where I am in the
>>>> code
>>>> and where the errors are relative to my 'viewport' while also giving
>>>> me a
>>>> 'quick jump' to another screen full of code.
>>>> Am I up in the night?
>>>> "Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in
>>>> message news:c8a894d91a8b778c870e3ffed486e@news.intellij.net...
>>>>
>>>>> Hello Aaron,
>>>>>
>>>>> could you please describe in more detail what are those 'regions'
>>>>> you
>>>>> mean? Are they
>>>>> defined by C# preprocessor directive #region? Or do they correspond
>>>>> to
>>>>> types/members
>>>>> or smth else? Thanks.
>>>>> Regards,
>>>>> Dmitry Shaporenkov
>>>>> JetBrains, Inc
>>>>> http://www.jetbrains.com
>>>>> "Develop with pleasure!"
>>>>>> I do the same, but I think it would be nice to have a means to
>>>>>> identify 'where' I am in a document relative to the
>>>>>> errors/warnings and quickly be able to 'jump' to a region without
>>>>>> having to be more precise in clicking each error/warning link.
>>>>>>
>>>>>> Aaron
>>>>>>
>>>>>> "Mark Wilden" <mark@mwilden.com> wrote in message
>>>>>> news:e8mv92$ekg$1@is.intellij.net...
>>>>>>> "R. Aaron Zupancic" <aaron@devstone.com> wrote in message
>>>>>>> news:e8molo$40o$1@is.intellij.net...
>>>>>>>
>>>>>>>> I really like the side bar that sits next to the vertical
>>>>>>>> scrollbar in a code pane.  This bar identifies the warnings and
>>>>>>>> errors and their relative position in the document.  However, it
>>>>>>>> would be MUCH more useful if the bar identified the 'region' of
>>>>>>>> code that I am currently looking at by highlighting/darkening
>>>>>>>> the respective rectangular region.
>>>>>>>>
>>>>>>> Personally, I just use F12 to navigate to the errors R# has
>>>>>>> identified.
>>>>>>>
>>>>>>> ///ark
>>>>>>>



0
Comment actions Permalink

I did not find the discussion I remember, but this case
http://www.intellij.net/tracker/resharper/viewSCR?publicId=15221

Regards,
Andreas

Dmitry Shaporenkov (JetBrains) schrieb:

Hello Andreas,

sorry, I can't remember the discussion. Perhaps it was not me,
or my memory is so poor. Will be grateful for a link.
As far as I can understand the error stripe (at least it was originially
intended so) should respect the state of collapsible regions in the
editor. The problem
is that it is not trivial to do that in VS due to some problems with
coordinate transformation,
and as a result we have bugs with the error stripe you mentioned. Note
that implementing
the suggestion of the original poster will lead to that very problem -
we will need to take into account the current state of collapsible
regions. So it doesn't seem to me to be any
better than the current error stripe in this aspect.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>>> if an error / warning mark
>>> on the error stripe is in
>>> the area covered by the scrollbar's slider, then the corresponding
>>> error / warning is in the
>>> visible area in the editor.
>> It seems to me that this is not correct, only approximately, and it
>> fails when you use collapsible regions in the file.
>>
>> We had this discussion some time ago I believe and it was said
>> that this synchronization cannot be done exactly nor was it
>> intended. If my memory serves me right, it was argued that
>> the error bar shows the relative location of the error with
>> respect to all lines of the file (all regions expanded), whereas
>> the scrollbar shows the position of the lines in the editor
>> with respect to the current collapsed/expanded state of the regions.
>> Regards,
>> Andreas
>> Dmitry Shaporenkov (JetBrains) schrieb:
>>
>>> Hello Aaron,
>>>
>>> so do I understand correctly that region in your sense is simply a
>>> range
>>> of lines currently
>>> visible in the editor? If yes, then I don't quite understand why do
>>> you
>>> need a special representations
>>> for such regions on the error stripe (the R# sidebar), as the error
>>> stripe is synchronized with
>>> the vertical scrollbar in the following way: if an error / warning
>>> mark
>>> on the error stripe is in
>>> the area covered by the scrollbar's slider, then the corresponding
>>> error
>>> / warning is in the
>>> visible area in the editor. Given that you can't eliminate the
>>> vertical
>>> scrollbar anyway (since it enables
>>> for scrolling), it seems to me that your proposal leads to some
>>> duplication of functions
>>> between the scrollbar and the error stripe. Sorry if I'm missing
>>> something though.
>>> Regards,
>>> Dmitry Shaporenkov
>>> JetBrains, Inc
>>> http://www.jetbrains.com
>>> "Develop with pleasure!"
>>>> The 'region' I have in mind isn't the #region directive, but more a
>>>> section
>>>> of code.
>>>> The R# sidebar (what is its name?) in VS effectively maps out the
>>>> entire
>>>> document and positions an error/warning token/line to identify the
>>>> relative
>>>> position of the item within the document.  I see that it would be
>>>> helpful it
>>>> it also identified (as per my attachment at the start of this
>>>> thread)
>>>> the
>>>> block of code that I'm currently looking at.  It would be even more
>>>> helpful
>>>> if the sidebar were clickable, effectively allowing me to 'jump' to
>>>> another
>>>> screen of code elsewhere in the document without resorting to the
>>>> scrollbar,
>>>> keyboard, or having to click directly on the error/warning link.
>>>> For instance, suppose I had a .cs file that was 100 lines long.
>>>> Suppose as well that my code window displayed 30 lines of code.  I
>>>> would like to see a shaded region on the sidebar that indicated
>>>> roughly which 30% of the code I was looking at.  The shaded region
>>>> would move as I scrolled and would resize as my code window resizes,
>>>> relative to the amount of visible space.
>>>> This way, I could see that the red error link is either above my
>>>> position in
>>>> the code, on the screen, or below.
>>>> It would basically give me more of a bearing as to where I am in the
>>>> code
>>>> and where the errors are relative to my 'viewport' while also giving
>>>> me a
>>>> 'quick jump' to another screen full of code.
>>>> Am I up in the night?
>>>> "Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in
>>>> message news:c8a894d91a8b778c870e3ffed486e@news.intellij.net...
>>>>
>>>>> Hello Aaron,
>>>>>
>>>>> could you please describe in more detail what are those 'regions'
>>>>> you
>>>>> mean? Are they
>>>>> defined by C# preprocessor directive #region? Or do they correspond
>>>>> to
>>>>> types/members
>>>>> or smth else? Thanks.
>>>>> Regards,
>>>>> Dmitry Shaporenkov
>>>>> JetBrains, Inc
>>>>> http://www.jetbrains.com
>>>>> "Develop with pleasure!"
>>>>>> I do the same, but I think it would be nice to have a means to
>>>>>> identify 'where' I am in a document relative to the
>>>>>> errors/warnings and quickly be able to 'jump' to a region without
>>>>>> having to be more precise in clicking each error/warning link.
>>>>>>
>>>>>> Aaron
>>>>>>
>>>>>> "Mark Wilden" <mark@mwilden.com> wrote in message
>>>>>> news:e8mv92$ekg$1@is.intellij.net...
>>>>>>> "R. Aaron Zupancic" <aaron@devstone.com> wrote in message
>>>>>>> news:e8molo$40o$1@is.intellij.net...
>>>>>>>
>>>>>>>> I really like the side bar that sits next to the vertical
>>>>>>>> scrollbar in a code pane.  This bar identifies the warnings and
>>>>>>>> errors and their relative position in the document.  However, it
>>>>>>>> would be MUCH more useful if the bar identified the 'region' of
>>>>>>>> code that I am currently looking at by highlighting/darkening
>>>>>>>> the respective rectangular region.
>>>>>>>>
>>>>>>> Personally, I just use F12 to navigate to the errors R# has
>>>>>>> identified.
>>>>>>>
>>>>>>> ///ark
>>>>>>>


0
Comment actions Permalink

Hello Andreas,

thanks a lot for the reference. The request is still open indicating the
presence of this issue. It's definitely not easy to fix,
but I strongly believe that it's better to spend our efforts on fixing it
than on adding the feature being discussed in this thread.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I did not find the discussion I remember, but this case
http://www.intellij.net/tracker/resharper/viewSCR?publicId=15221

Regards,
Andreas
Dmitry Shaporenkov (JetBrains) schrieb:

>> Hello Andreas,
>>
>> sorry, I can't remember the discussion. Perhaps it was not me,
>> or my memory is so poor. Will be grateful for a link.
>> As far as I can understand the error stripe (at least it was
>> originially
>> intended so) should respect the state of collapsible regions in the
>> editor. The problem
>> is that it is not trivial to do that in VS due to some problems with
>> coordinate transformation,
>> and as a result we have bugs with the error stripe you mentioned.
>> Note
>> that implementing
>> the suggestion of the original poster will lead to that very problem
>> -
>> we will need to take into account the current state of collapsible
>> regions. So it doesn't seem to me to be any
>> better than the current error stripe in this aspect.
>> Regards,
>> Dmitry Shaporenkov
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>>> if an error / warning mark
>>>> on the error stripe is in
>>>> the area covered by the scrollbar's slider, then the corresponding
>>>> error / warning is in the
>>>> visible area in the editor.
>>> It seems to me that this is not correct, only approximately, and it
>>> fails when you use collapsible regions in the file.
>>>
>>> We had this discussion some time ago I believe and it was said
>>> that this synchronization cannot be done exactly nor was it
>>> intended. If my memory serves me right, it was argued that
>>> the error bar shows the relative location of the error with
>>> respect to all lines of the file (all regions expanded), whereas
>>> the scrollbar shows the position of the lines in the editor
>>> with respect to the current collapsed/expanded state of the regions.
>>> Regards,
>>> Andreas
>>> Dmitry Shaporenkov (JetBrains) schrieb:
>>>> Hello Aaron,
>>>>
>>>> so do I understand correctly that region in your sense is simply a
>>>> range
>>>> of lines currently
>>>> visible in the editor? If yes, then I don't quite understand why do
>>>> you
>>>> need a special representations
>>>> for such regions on the error stripe (the R# sidebar), as the error
>>>> stripe is synchronized with
>>>> the vertical scrollbar in the following way: if an error / warning
>>>> mark
>>>> on the error stripe is in
>>>> the area covered by the scrollbar's slider, then the corresponding
>>>> error
>>>> / warning is in the
>>>> visible area in the editor. Given that you can't eliminate the
>>>> vertical
>>>> scrollbar anyway (since it enables
>>>> for scrolling), it seems to me that your proposal leads to some
>>>> duplication of functions
>>>> between the scrollbar and the error stripe. Sorry if I'm missing
>>>> something though.
>>>> Regards,
>>>> Dmitry Shaporenkov
>>>> JetBrains, Inc
>>>> http://www.jetbrains.com
>>>> "Develop with pleasure!"
>>>>> The 'region' I have in mind isn't the #region directive, but more
>>>>> a
>>>>> section
>>>>> of code.
>>>>> The R# sidebar (what is its name?) in VS effectively maps out the
>>>>> entire
>>>>> document and positions an error/warning token/line to identify the
>>>>> relative
>>>>> position of the item within the document.  I see that it would be
>>>>> helpful it
>>>>> it also identified (as per my attachment at the start of this
>>>>> thread)
>>>>> the
>>>>> block of code that I'm currently looking at.  It would be even
>>>>> more
>>>>> helpful
>>>>> if the sidebar were clickable, effectively allowing me to 'jump'
>>>>> to
>>>>> another
>>>>> screen of code elsewhere in the document without resorting to the
>>>>> scrollbar,
>>>>> keyboard, or having to click directly on the error/warning link.
>>>>> For instance, suppose I had a .cs file that was 100 lines long.
>>>>> Suppose as well that my code window displayed 30 lines of code.  I
>>>>> would like to see a shaded region on the sidebar that indicated
>>>>> roughly which 30% of the code I was looking at.  The shaded region
>>>>> would move as I scrolled and would resize as my code window
>>>>> resizes,
>>>>> relative to the amount of visible space.
>>>>> This way, I could see that the red error link is either above my
>>>>> position in
>>>>> the code, on the screen, or below.
>>>>> It would basically give me more of a bearing as to where I am in
>>>>> the
>>>>> code
>>>>> and where the errors are relative to my 'viewport' while also
>>>>> giving
>>>>> me a
>>>>> 'quick jump' to another screen full of code.
>>>>> Am I up in the night?
>>>>> "Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in
>>>>> message news:c8a894d91a8b778c870e3ffed486e@news.intellij.net...
>>>>>> Hello Aaron,
>>>>>>
>>>>>> could you please describe in more detail what are those 'regions'
>>>>>> you
>>>>>> mean? Are they
>>>>>> defined by C# preprocessor directive #region? Or do they
>>>>>> correspond
>>>>>> to
>>>>>> types/members
>>>>>> or smth else? Thanks.
>>>>>> Regards,
>>>>>> Dmitry Shaporenkov
>>>>>> JetBrains, Inc
>>>>>> http://www.jetbrains.com
>>>>>> "Develop with pleasure!"
>>>>>>> I do the same, but I think it would be nice to have a means to
>>>>>>> identify 'where' I am in a document relative to the
>>>>>>> errors/warnings and quickly be able to 'jump' to a region
>>>>>>> without having to be more precise in clicking each error/warning
>>>>>>> link.
>>>>>>>
>>>>>>> Aaron
>>>>>>>
>>>>>>> "Mark Wilden" <mark@mwilden.com> wrote in message
>>>>>>> news:e8mv92$ekg$1@is.intellij.net...
>>>>>>>> "R. Aaron Zupancic" <aaron@devstone.com> wrote in message
>>>>>>>> news:e8molo$40o$1@is.intellij.net...
>>>>>>>>
>>>>>>>>> I really like the side bar that sits next to the vertical
>>>>>>>>> scrollbar in a code pane.  This bar identifies the warnings
>>>>>>>>> and errors and their relative position in the document.
>>>>>>>>> However, it would be MUCH more useful if the bar identified
>>>>>>>>> the 'region' of code that I am currently looking at by
>>>>>>>>> highlighting/darkening the respective rectangular region.
>>>>>>>>>
>>>>>>>> Personally, I just use F12 to navigate to the errors R# has
>>>>>>>> identified.
>>>>>>>>
>>>>>>>> ///ark
>>>>>>>>


0
Comment actions Permalink

Hello Dmitry,

Here is another one, more than 2 years old: http://www.intellij.net/tracker/resharper/viewSCR?publicId=2168

Sincerely,
Ilya Ryzhenkov


DS> Hello Andreas,
DS>
DS> thanks a lot for the reference. The request is still open indicating
DS> the
DS> presence of this issue. It's definitely not easy to fix,
DS> but I strongly believe that it's better to spend our efforts on
DS> fixing it
DS> than on adding the feature being discussed in this thread.
DS> Regards,
DS> Dmitry Shaporenkov
DS> JetBrains, Inc
DS> http://www.jetbrains.com
DS> "Develop with pleasure!"
>> I did not find the discussion I remember, but this case
>> http://www.intellij.net/tracker/resharper/viewSCR?publicId=15221
>>
>> Regards,
>> Andreas
>> Dmitry Shaporenkov (JetBrains) schrieb:
>>> Hello Andreas,
>>>
>>> sorry, I can't remember the discussion. Perhaps it was not me,
>>> or my memory is so poor. Will be grateful for a link.
>>> As far as I can understand the error stripe (at least it was
>>> originially
>>> intended so) should respect the state of collapsible regions in the
>>> editor. The problem
>>> is that it is not trivial to do that in VS due to some problems with
>>> coordinate transformation,
>>> and as a result we have bugs with the error stripe you mentioned.
>>> Note
>>> that implementing
>>> the suggestion of the original poster will lead to that very problem
>>> -
>>> we will need to take into account the current state of collapsible
>>> regions. So it doesn't seem to me to be any
>>> better than the current error stripe in this aspect.
>>> Regards,
>>> Dmitry Shaporenkov
>>> JetBrains, Inc
>>> http://www.jetbrains.com
>>> "Develop with pleasure!"
>>>>> if an error / warning mark
>>>>> on the error stripe is in
>>>>> the area covered by the scrollbar's slider, then the corresponding
>>>>> error / warning is in the
>>>>> visible area in the editor.
>>>> It seems to me that this is not correct, only approximately, and it
>>>> fails when you use collapsible regions in the file.
>>>>
>>>> We had this discussion some time ago I believe and it was said
>>>> that this synchronization cannot be done exactly nor was it
>>>> intended. If my memory serves me right, it was argued that
>>>> the error bar shows the relative location of the error with
>>>> respect to all lines of the file (all regions expanded), whereas
>>>> the scrollbar shows the position of the lines in the editor
>>>> with respect to the current collapsed/expanded state of the
>>>> regions.
>>>> Regards,
>>>> Andreas
>>>> Dmitry Shaporenkov (JetBrains) schrieb:
>>>>> Hello Aaron,
>>>>>
>>>>> so do I understand correctly that region in your sense is simply a
>>>>> range
>>>>> of lines currently
>>>>> visible in the editor? If yes, then I don't quite understand why
>>>>> do
>>>>> you
>>>>> need a special representations
>>>>> for such regions on the error stripe (the R# sidebar), as the
>>>>> error
>>>>> stripe is synchronized with
>>>>> the vertical scrollbar in the following way: if an error / warning
>>>>> mark
>>>>> on the error stripe is in
>>>>> the area covered by the scrollbar's slider, then the corresponding
>>>>> error
>>>>> / warning is in the
>>>>> visible area in the editor. Given that you can't eliminate the
>>>>> vertical
>>>>> scrollbar anyway (since it enables
>>>>> for scrolling), it seems to me that your proposal leads to some
>>>>> duplication of functions
>>>>> between the scrollbar and the error stripe. Sorry if I'm missing
>>>>> something though.
>>>>> Regards,
>>>>> Dmitry Shaporenkov
>>>>> JetBrains, Inc
>>>>> http://www.jetbrains.com
>>>>> "Develop with pleasure!"
>>>>>> The 'region' I have in mind isn't the #region directive, but more
>>>>>> a
>>>>>> section
>>>>>> of code.
>>>>>> The R# sidebar (what is its name?) in VS effectively maps out the
>>>>>> entire
>>>>>> document and positions an error/warning token/line to identify
>>>>>> the
>>>>>> relative
>>>>>> position of the item within the document.  I see that it would be
>>>>>> helpful it
>>>>>> it also identified (as per my attachment at the start of this
>>>>>> thread)
>>>>>> the
>>>>>> block of code that I'm currently looking at.  It would be even
>>>>>> more
>>>>>> helpful
>>>>>> if the sidebar were clickable, effectively allowing me to 'jump'
>>>>>> to
>>>>>> another
>>>>>> screen of code elsewhere in the document without resorting to the
>>>>>> scrollbar,
>>>>>> keyboard, or having to click directly on the error/warning link.
>>>>>> For instance, suppose I had a .cs file that was 100 lines long.
>>>>>> Suppose as well that my code window displayed 30 lines of code.
>>>>>> I
>>>>>> would like to see a shaded region on the sidebar that indicated
>>>>>> roughly which 30% of the code I was looking at.  The shaded
>>>>>> region
>>>>>> would move as I scrolled and would resize as my code window
>>>>>> resizes,
>>>>>> relative to the amount of visible space.
>>>>>> This way, I could see that the red error link is either above my
>>>>>> position in
>>>>>> the code, on the screen, or below.
>>>>>> It would basically give me more of a bearing as to where I am in
>>>>>> the
>>>>>> code
>>>>>> and where the errors are relative to my 'viewport' while also
>>>>>> giving
>>>>>> me a
>>>>>> 'quick jump' to another screen full of code.
>>>>>> Am I up in the night?
>>>>>> "Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in
>>>>>> message news:c8a894d91a8b778c870e3ffed486e@news.intellij.net...
>>>>>>> Hello Aaron,
>>>>>>>
>>>>>>> could you please describe in more detail what are those
>>>>>>> 'regions'
>>>>>>> you
>>>>>>> mean? Are they
>>>>>>> defined by C# preprocessor directive #region? Or do they
>>>>>>> correspond
>>>>>>> to
>>>>>>> types/members
>>>>>>> or smth else? Thanks.
>>>>>>> Regards,
>>>>>>> Dmitry Shaporenkov
>>>>>>> JetBrains, Inc
>>>>>>> http://www.jetbrains.com
>>>>>>> "Develop with pleasure!"
>>>>>>>> I do the same, but I think it would be nice to have a means to
>>>>>>>> identify 'where' I am in a document relative to the
>>>>>>>> errors/warnings and quickly be able to 'jump' to a region
>>>>>>>> without having to be more precise in clicking each
>>>>>>>> error/warning link.
>>>>>>>>
>>>>>>>> Aaron
>>>>>>>>
>>>>>>>> "Mark Wilden" <mark@mwilden.com> wrote in message
>>>>>>>> news:e8mv92$ekg$1@is.intellij.net...
>>>>>>>>> "R. Aaron Zupancic" <aaron@devstone.com> wrote in message
>>>>>>>>> news:e8molo$40o$1@is.intellij.net...
>>>>>>>>>
>>>>>>>>>> I really like the side bar that sits next to the vertical
>>>>>>>>>> scrollbar in a code pane.  This bar identifies the warnings
>>>>>>>>>> and errors and their relative position in the document.
>>>>>>>>>> However, it would be MUCH more useful if the bar identified
>>>>>>>>>> the 'region' of code that I am currently looking at by
>>>>>>>>>> highlighting/darkening the respective rectangular region.
>>>>>>>>>>
>>>>>>>>> Personally, I just use F12 to navigate to the errors R# has
>>>>>>>>> identified.
>>>>>>>>>
>>>>>>>>> ///ark
>>>>>>>>>


0
Comment actions Permalink

Well - sad to say that the problem is so old and is still here...

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello Dmitry,

Here is another one, more than 2 years old:
http://www.intellij.net/tracker/resharper/viewSCR?publicId=2168

Sincerely,
Ilya Ryzhenkov

DS>> Hello Andreas,
DS>>
DS>> thanks a lot for the reference. The request is still open
DS>> indicating
DS>> the
DS>> presence of this issue. It's definitely not easy to fix,
DS>> but I strongly believe that it's better to spend our efforts on
DS>> fixing it
DS>> than on adding the feature being discussed in this thread.
DS>> Regards,
DS>> Dmitry Shaporenkov
DS>> JetBrains, Inc
DS>> http://www.jetbrains.com
DS>> "Develop with pleasure!"
>>> I did not find the discussion I remember, but this case
>>> http://www.intellij.net/tracker/resharper/viewSCR?publicId=15221
>>>
>>> Regards,
>>> Andreas
>>> Dmitry Shaporenkov (JetBrains) schrieb:
>>>> Hello Andreas,
>>>>
>>>> sorry, I can't remember the discussion. Perhaps it was not me,
>>>> or my memory is so poor. Will be grateful for a link.
>>>> As far as I can understand the error stripe (at least it was
>>>> originially
>>>> intended so) should respect the state of collapsible regions in the
>>>> editor. The problem
>>>> is that it is not trivial to do that in VS due to some problems
>>>> with
>>>> coordinate transformation,
>>>> and as a result we have bugs with the error stripe you mentioned.
>>>> Note
>>>> that implementing
>>>> the suggestion of the original poster will lead to that very
>>>> problem
>>>> -
>>>> we will need to take into account the current state of collapsible
>>>> regions. So it doesn't seem to me to be any
>>>> better than the current error stripe in this aspect.
>>>> Regards,
>>>> Dmitry Shaporenkov
>>>> JetBrains, Inc
>>>> http://www.jetbrains.com
>>>> "Develop with pleasure!"
>>>>>> if an error / warning mark
>>>>>> on the error stripe is in
>>>>>> the area covered by the scrollbar's slider, then the
>>>>>> corresponding
>>>>>> error / warning is in the
>>>>>> visible area in the editor.
>>>>> It seems to me that this is not correct, only approximately, and
>>>>> it fails when you use collapsible regions in the file.
>>>>>
>>>>> We had this discussion some time ago I believe and it was said
>>>>> that this synchronization cannot be done exactly nor was it
>>>>> intended. If my memory serves me right, it was argued that
>>>>> the error bar shows the relative location of the error with
>>>>> respect to all lines of the file (all regions expanded), whereas
>>>>> the scrollbar shows the position of the lines in the editor
>>>>> with respect to the current collapsed/expanded state of the
>>>>> regions.
>>>>> Regards,
>>>>> Andreas
>>>>> Dmitry Shaporenkov (JetBrains) schrieb:
>>>>>> Hello Aaron,
>>>>>>
>>>>>> so do I understand correctly that region in your sense is simply
>>>>>> a
>>>>>> range
>>>>>> of lines currently
>>>>>> visible in the editor? If yes, then I don't quite understand why
>>>>>> do
>>>>>> you
>>>>>> need a special representations
>>>>>> for such regions on the error stripe (the R# sidebar), as the
>>>>>> error
>>>>>> stripe is synchronized with
>>>>>> the vertical scrollbar in the following way: if an error /
>>>>>> warning
>>>>>> mark
>>>>>> on the error stripe is in
>>>>>> the area covered by the scrollbar's slider, then the
>>>>>> corresponding
>>>>>> error
>>>>>> / warning is in the
>>>>>> visible area in the editor. Given that you can't eliminate the
>>>>>> vertical
>>>>>> scrollbar anyway (since it enables
>>>>>> for scrolling), it seems to me that your proposal leads to some
>>>>>> duplication of functions
>>>>>> between the scrollbar and the error stripe. Sorry if I'm missing
>>>>>> something though.
>>>>>> Regards,
>>>>>> Dmitry Shaporenkov
>>>>>> JetBrains, Inc
>>>>>> http://www.jetbrains.com
>>>>>> "Develop with pleasure!"
>>>>>>> The 'region' I have in mind isn't the #region directive, but
>>>>>>> more
>>>>>>> a
>>>>>>> section
>>>>>>> of code.
>>>>>>> The R# sidebar (what is its name?) in VS effectively maps out
>>>>>>> the
>>>>>>> entire
>>>>>>> document and positions an error/warning token/line to identify
>>>>>>> the
>>>>>>> relative
>>>>>>> position of the item within the document.  I see that it would
>>>>>>> be
>>>>>>> helpful it
>>>>>>> it also identified (as per my attachment at the start of this
>>>>>>> thread)
>>>>>>> the
>>>>>>> block of code that I'm currently looking at.  It would be even
>>>>>>> more
>>>>>>> helpful
>>>>>>> if the sidebar were clickable, effectively allowing me to 'jump'
>>>>>>> to
>>>>>>> another
>>>>>>> screen of code elsewhere in the document without resorting to
>>>>>>> the
>>>>>>> scrollbar,
>>>>>>> keyboard, or having to click directly on the error/warning link.
>>>>>>> For instance, suppose I had a .cs file that was 100 lines long.
>>>>>>> Suppose as well that my code window displayed 30 lines of code.
>>>>>>> I
>>>>>>> would like to see a shaded region on the sidebar that indicated
>>>>>>> roughly which 30% of the code I was looking at.  The shaded
>>>>>>> region
>>>>>>> would move as I scrolled and would resize as my code window
>>>>>>> resizes,
>>>>>>> relative to the amount of visible space.
>>>>>>> This way, I could see that the red error link is either above my
>>>>>>> position in
>>>>>>> the code, on the screen, or below.
>>>>>>> It would basically give me more of a bearing as to where I am in
>>>>>>> the
>>>>>>> code
>>>>>>> and where the errors are relative to my 'viewport' while also
>>>>>>> giving
>>>>>>> me a
>>>>>>> 'quick jump' to another screen full of code.
>>>>>>> Am I up in the night?
>>>>>>> "Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in
>>>>>>> message news:c8a894d91a8b778c870e3ffed486e@news.intellij.net...
>>>>>>>> Hello Aaron,
>>>>>>>>
>>>>>>>> could you please describe in more detail what are those
>>>>>>>> 'regions'
>>>>>>>> you
>>>>>>>> mean? Are they
>>>>>>>> defined by C# preprocessor directive #region? Or do they
>>>>>>>> correspond
>>>>>>>> to
>>>>>>>> types/members
>>>>>>>> or smth else? Thanks.
>>>>>>>> Regards,
>>>>>>>> Dmitry Shaporenkov
>>>>>>>> JetBrains, Inc
>>>>>>>> http://www.jetbrains.com
>>>>>>>> "Develop with pleasure!"
>>>>>>>>> I do the same, but I think it would be nice to have a means to
>>>>>>>>> identify 'where' I am in a document relative to the
>>>>>>>>> errors/warnings and quickly be able to 'jump' to a region
>>>>>>>>> without having to be more precise in clicking each
>>>>>>>>> error/warning link.
>>>>>>>>>
>>>>>>>>> Aaron
>>>>>>>>>
>>>>>>>>> "Mark Wilden" <mark@mwilden.com> wrote in message
>>>>>>>>> news:e8mv92$ekg$1@is.intellij.net...
>>>>>>>>>> "R. Aaron Zupancic" <aaron@devstone.com> wrote in message
>>>>>>>>>> news:e8molo$40o$1@is.intellij.net...
>>>>>>>>>>
>>>>>>>>>>> I really like the side bar that sits next to the vertical
>>>>>>>>>>> scrollbar in a code pane.  This bar identifies the warnings
>>>>>>>>>>> and errors and their relative position in the document.
>>>>>>>>>>> However, it would be MUCH more useful if the bar identified
>>>>>>>>>>> the 'region' of code that I am currently looking at by
>>>>>>>>>>> highlighting/darkening the respective rectangular region.
>>>>>>>>>>>
>>>>>>>>>> Personally, I just use F12 to navigate to the errors R# has
>>>>>>>>>> identified.
>>>>>>>>>>
>>>>>>>>>> ///ark
>>>>>>>>>>


0
Comment actions Permalink

Hello Dmitry,

Not that it is much of a problem, but every time I use Beyond Compare and
after that use Resharper's error stripe... Well, I would like the solution
be there in Resharper too.

Sincerely,
Ilya Ryzhenkov


DS> Well - sad to say that the problem is so old and is still here...
DS>
DS> Regards,
DS> Dmitry Shaporenkov
DS> JetBrains, Inc
DS> http://www.jetbrains.com
DS> "Develop with pleasure!"
>> Hello Dmitry,
>>
>> Here is another one, more than 2 years old:
>> http://www.intellij.net/tracker/resharper/viewSCR?publicId=2168
>> Sincerely,
>> Ilya Ryzhenkov
DS>>> Hello Andreas,
DS>>>
DS>>> thanks a lot for the reference. The request is still open
DS>>> indicating
DS>>> the
DS>>> presence of this issue. It's definitely not easy to fix,
DS>>> but I strongly believe that it's better to spend our efforts on
DS>>> fixing it
DS>>> than on adding the feature being discussed in this thread.
DS>>> Regards,
DS>>> Dmitry Shaporenkov
DS>>> JetBrains, Inc
DS>>> http://www.jetbrains.com
DS>>> "Develop with pleasure!"
>>>> I did not find the discussion I remember, but this case
>>>> http://www.intellij.net/tracker/resharper/viewSCR?publicId=15221
>>>>
>>>> Regards,
>>>> Andreas
>>>> Dmitry Shaporenkov (JetBrains) schrieb:
>>>>> Hello Andreas,
>>>>>
>>>>> sorry, I can't remember the discussion. Perhaps it was not me,
>>>>> or my memory is so poor. Will be grateful for a link.
>>>>> As far as I can understand the error stripe (at least it was
>>>>> originially
>>>>> intended so) should respect the state of collapsible regions in
>>>>> the
>>>>> editor. The problem
>>>>> is that it is not trivial to do that in VS due to some problems
>>>>> with
>>>>> coordinate transformation,
>>>>> and as a result we have bugs with the error stripe you mentioned.
>>>>> Note
>>>>> that implementing
>>>>> the suggestion of the original poster will lead to that very
>>>>> problem
>>>>> -
>>>>> we will need to take into account the current state of collapsible
>>>>> regions. So it doesn't seem to me to be any
>>>>> better than the current error stripe in this aspect.
>>>>> Regards,
>>>>> Dmitry Shaporenkov
>>>>> JetBrains, Inc
>>>>> http://www.jetbrains.com
>>>>> "Develop with pleasure!"
>>>>>>> if an error / warning mark
>>>>>>> on the error stripe is in
>>>>>>> the area covered by the scrollbar's slider, then the
>>>>>>> corresponding
>>>>>>> error / warning is in the
>>>>>>> visible area in the editor.
>>>>>> It seems to me that this is not correct, only approximately, and
>>>>>> it fails when you use collapsible regions in the file.
>>>>>>
>>>>>> We had this discussion some time ago I believe and it was said
>>>>>> that this synchronization cannot be done exactly nor was it
>>>>>> intended. If my memory serves me right, it was argued that
>>>>>> the error bar shows the relative location of the error with
>>>>>> respect to all lines of the file (all regions expanded), whereas
>>>>>> the scrollbar shows the position of the lines in the editor
>>>>>> with respect to the current collapsed/expanded state of the
>>>>>> regions.
>>>>>> Regards,
>>>>>> Andreas
>>>>>> Dmitry Shaporenkov (JetBrains) schrieb:
>>>>>>> Hello Aaron,
>>>>>>>
>>>>>>> so do I understand correctly that region in your sense is simply
>>>>>>> a
>>>>>>> range
>>>>>>> of lines currently
>>>>>>> visible in the editor? If yes, then I don't quite understand why
>>>>>>> do
>>>>>>> you
>>>>>>> need a special representations
>>>>>>> for such regions on the error stripe (the R# sidebar), as the
>>>>>>> error
>>>>>>> stripe is synchronized with
>>>>>>> the vertical scrollbar in the following way: if an error /
>>>>>>> warning
>>>>>>> mark
>>>>>>> on the error stripe is in
>>>>>>> the area covered by the scrollbar's slider, then the
>>>>>>> corresponding
>>>>>>> error
>>>>>>> / warning is in the
>>>>>>> visible area in the editor. Given that you can't eliminate the
>>>>>>> vertical
>>>>>>> scrollbar anyway (since it enables
>>>>>>> for scrolling), it seems to me that your proposal leads to some
>>>>>>> duplication of functions
>>>>>>> between the scrollbar and the error stripe. Sorry if I'm missing
>>>>>>> something though.
>>>>>>> Regards,
>>>>>>> Dmitry Shaporenkov
>>>>>>> JetBrains, Inc
>>>>>>> http://www.jetbrains.com
>>>>>>> "Develop with pleasure!"
>>>>>>>> The 'region' I have in mind isn't the #region directive, but
>>>>>>>> more
>>>>>>>> a
>>>>>>>> section
>>>>>>>> of code.
>>>>>>>> The R# sidebar (what is its name?) in VS effectively maps out
>>>>>>>> the
>>>>>>>> entire
>>>>>>>> document and positions an error/warning token/line to identify
>>>>>>>> the
>>>>>>>> relative
>>>>>>>> position of the item within the document.  I see that it would
>>>>>>>> be
>>>>>>>> helpful it
>>>>>>>> it also identified (as per my attachment at the start of this
>>>>>>>> thread)
>>>>>>>> the
>>>>>>>> block of code that I'm currently looking at.  It would be even
>>>>>>>> more
>>>>>>>> helpful
>>>>>>>> if the sidebar were clickable, effectively allowing me to
>>>>>>>> 'jump'
>>>>>>>> to
>>>>>>>> another
>>>>>>>> screen of code elsewhere in the document without resorting to
>>>>>>>> the
>>>>>>>> scrollbar,
>>>>>>>> keyboard, or having to click directly on the error/warning
>>>>>>>> link.
>>>>>>>> For instance, suppose I had a .cs file that was 100 lines long.
>>>>>>>> Suppose as well that my code window displayed 30 lines of code.
>>>>>>>> I
>>>>>>>> would like to see a shaded region on the sidebar that indicated
>>>>>>>> roughly which 30% of the code I was looking at.  The shaded
>>>>>>>> region
>>>>>>>> would move as I scrolled and would resize as my code window
>>>>>>>> resizes,
>>>>>>>> relative to the amount of visible space.
>>>>>>>> This way, I could see that the red error link is either above
>>>>>>>> my
>>>>>>>> position in
>>>>>>>> the code, on the screen, or below.
>>>>>>>> It would basically give me more of a bearing as to where I am
>>>>>>>> in
>>>>>>>> the
>>>>>>>> code
>>>>>>>> and where the errors are relative to my 'viewport' while also
>>>>>>>> giving
>>>>>>>> me a
>>>>>>>> 'quick jump' to another screen full of code.
>>>>>>>> Am I up in the night?
>>>>>>>> "Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in
>>>>>>>> message news:c8a894d91a8b778c870e3ffed486e@news.intellij.net...
>>>>>>>>> Hello Aaron,
>>>>>>>>>
>>>>>>>>> could you please describe in more detail what are those
>>>>>>>>> 'regions'
>>>>>>>>> you
>>>>>>>>> mean? Are they
>>>>>>>>> defined by C# preprocessor directive #region? Or do they
>>>>>>>>> correspond
>>>>>>>>> to
>>>>>>>>> types/members
>>>>>>>>> or smth else? Thanks.
>>>>>>>>> Regards,
>>>>>>>>> Dmitry Shaporenkov
>>>>>>>>> JetBrains, Inc
>>>>>>>>> http://www.jetbrains.com
>>>>>>>>> "Develop with pleasure!"
>>>>>>>>>> I do the same, but I think it would be nice to have a means
>>>>>>>>>> to identify 'where' I am in a document relative to the
>>>>>>>>>> errors/warnings and quickly be able to 'jump' to a region
>>>>>>>>>> without having to be more precise in clicking each
>>>>>>>>>> error/warning link.
>>>>>>>>>>
>>>>>>>>>> Aaron
>>>>>>>>>>
>>>>>>>>>> "Mark Wilden" <mark@mwilden.com> wrote in message
>>>>>>>>>> news:e8mv92$ekg$1@is.intellij.net...
>>>>>>>>>>> "R. Aaron Zupancic" <aaron@devstone.com> wrote in message
>>>>>>>>>>> news:e8molo$40o$1@is.intellij.net...
>>>>>>>>>>>
>>>>>>>>>>>> I really like the side bar that sits next to the vertical
>>>>>>>>>>>> scrollbar in a code pane.  This bar identifies the warnings
>>>>>>>>>>>> and errors and their relative position in the document.
>>>>>>>>>>>> However, it would be MUCH more useful if the bar identified
>>>>>>>>>>>> the 'region' of code that I am currently looking at by
>>>>>>>>>>>> highlighting/darkening the respective rectangular region.
>>>>>>>>>>>>
>>>>>>>>>>> Personally, I just use F12 to navigate to the errors R# has
>>>>>>>>>>> identified.
>>>>>>>>>>>
>>>>>>>>>>> ///ark
>>>>>>>>>>>


0

Please sign in to leave a comment.