-
Notifications
You must be signed in to change notification settings - Fork 789
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
FSharpRangeToTextSpan crash on GoTo All #3180
Comments
I think the simple solution is to catch this exception in |
Or perhaps short-circuit out when |
Some additional checks in the method simply have to be made. |
Yes
Yes :) |
@ImaginaryDevelopment If possible try #3181 and see if it cures your problem? thanks |
I'm not self-compiling fsharp tools, is that needed to try that fix?
…On Tue, Jun 6, 2017 at 12:54 PM, Don Syme ***@***.***> wrote:
@ImaginaryDevelopment <https://github.com/imaginarydevelopment> If
possible try #3181 <#3181>
and see if it cures your problem? thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3180 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHZvMR17-LDYDRQntziGPq83eC6p6Y-ks5sBYRTgaJpZM4NwQ8q>
.
|
@ImaginaryDevelopment Yes, it's needed to test it out. |
@cartermp I'm confident that the fix is stabilizing, but it would be absolutely fantastic to try it out. Perhaps it's also needed to get the fix applied? @ImaginaryDevelopment Alternatively you can provide us with a repro? which we can verify thanks! |
I tried to copy more and more files into another empty solution, but as far
as I went trying to avoid any actual work logic code, I could not get a
repro on a made-up solution.
…On Tue, Jun 6, 2017 at 1:32 PM, Don Syme ***@***.***> wrote:
@cartermp <https://github.com/cartermp> I'm confident that the fix is
stabilizing, but it would be absolutely fantastic to try it out. Perhaps
it's also needed to get the fix applied?
@ImaginaryDevelopment <https://github.com/imaginarydevelopment>
Alternatively you can provide us with a repro? which we can verify
thanks!
don
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3180 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHZvHtWp7bj50ho-7OqjGAWQMhqRfrZks5sBY0QgaJpZM4NwQ8q>
.
|
@ImaginaryDevelopment If you're up for verifying, you can get started fairly easily. This is the workflow I use:
|
Closing as I am convinced this is fixed. @cartermp Do we need @ImaginaryDevelopment to verify? |
It'd be great if you could verify the fix @ImaginaryDevelopment, but the code is now safe and won't crash in the manner described above so I think this is good to close. |
The constant throw new ArgumentOutOfRangeException("length") -catches are interfering debugging. return new TextSpan(num2, num - num2); Should be rather like var length = num - num2;
return length >= 0 ? new TextSpan(num2, length) : null; |
Vs 2017 is crashing on go to all after typing a few letters
Repro steps
Have not been able to reproduce outside of my enterprise solution (12 projects) 6 C#, 5 F#, 1 .SqlProj
Only started since last VS update.
Expected behavior
A list of possible matches for what I typed comes up
Actual behavior
Visual studio crashes. without showing anything in the goto all box

Known workarounds
use find in all files instead of the Go To All item.
Related information
Obtained by attaching VS to another instance of VS:
Just updated Visual F# tools to the latest nightly and it persists.
The text was updated successfully, but these errors were encountered: