-
Notifications
You must be signed in to change notification settings - Fork 4k
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
ExtractMethodCodeRefactoringProvider threw exception #23352
Comments
|
I can reproduce this with the code from one of the Developer Community issues: IEnumerable<object> Crash0(IEnumerable<object> enumerable)
{
//
while (true) ;
return enumerable.Select(e => "");
} If you select the three lines in the method body, the exception is thrown. |
resolved in 15.7.P2 via link |
I'm getting similar exception:
Visual Studio: Professional (version 15.6.5) Any ideas? |
@bratukham thank you let me take a look? do you have a dump by the way I can a look? |
@heejaechang thanks for the answer. I would like to give you a dump, but I do not know how to do that. |
@bratukham how about giving us snippet of code that you were trying to extract out? that will help me to see what happened a bit. |
@heejaechang unfortunately it is not possible to publish my code here. Maybe it is better to create a dump that you asked for? It happens only in one file and only with several lines of code... The exception is not always thrown, but sometimes always... |
@bratukham if you reproduce the problem, how about sending dump through feedback tool? (https://docs.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio-2017) you can use this to send dump |
I experimented the same issue on
I reproduced the issue selecting several different lines in my code |
@Giois93 thank you very much. I will take a look soon. |
@heejaechang unfortunately, I cannot get the same exception anymore... Fortunately, I have a peace of code, where it was simple to get: The exception was thrown when one selects from the cursor position (see screenshot above) till the next Hope it helps! |
Same error, Win 10, VS 2017 Prof (v15.6.6)
|
@MichalGrzegorzak That appears to be a different issue (the key 'AB' is different from previous reports). Can you file a new issue for it? |
|
VS 2017 Community edition version 15.6.7. System.InvalidOperationException : Matrix does not contain Key 'C7'. |
I've got similar issue, but with key 'C6': #28846 |
No repro here, was in the middle of other refactorings and have no idea what I did:
The text was updated successfully, but these errors were encountered: