Some issues with build 207
Hi All
I just wanted to report some issues I've been having with build 207. I'm not sure if these are R# bugs or incorrect settings or ... Let me know if you want me to put them in the tracker.
Alright so my issues are:
1) When you use delete on an empty line it also deletes the three slashes of the documentation comments on the next line. So if I have this:
///
2) For some reason the namespace doesn't auto indent when you type the braces. i.e. if you type:
namespace SomeThing
{
cursor starts at the beginning of the line
}
After typing the first { (wich is autoclosed in my case) the cursor starts at the beginning of the line (i.e at position 0) and not indented.
3) As mentioned before the test runner hangs once in a while. CPU goes up to 100% and it just sits there. Usually happens if you try to run it on a full solution.
4) The icons for the tests are really cool but R# also marks methods with the and as tests while they aren't. Also and aren't marked seperately which would be cool.
5) It seems that changes in the shortcut keys aren't registered properly. I changed the Rename shortcut from F2 to Ctrl + F6 but everytime I restart VS it resets itself back to F2.
Ok that's it for now. Oh this is on VS2003 with build207.
Let me know which ones should go into the tracker.
Regards Petrik
Please sign in to leave a comment.
Hello Patrick,
this is definitely a bug, please submit it to the tracker. ReSharper shouldn't
modify your keyboard
mappings each time you start VS.
Please check your registry for the HKLM(HKCU)\Software\JetBrains\ReSharperVS2003\InitializationRequired
value. This value should be 0 after you've started ReSharper for the first
time.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
>
>
Bug confirmed.
Fixed in 208
>
>
Fixed in 208
Can't reproduce :(:(
Please could you do the following when the ReSharper hangs next time:
a) Which process consumes 100% CPU - devenv.exe or
JetBrainf.ReSharper.UnitTestRunner.exe?
b) Attach the debugger to that hung process, and send us the stack trace
ReSharper recognize them as tests by the NUnit rules. Does the NUnit itself
recognize them as tests?
And why do you need and be marked, 'cos you can't run
them standalone without test?
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Hi Dmitry
I just checked and the value (for both the VS2003 and VS2005) addins is set to 1. Should I set them to 0??
Oh also I submitted it to the tracker. Don't know the number because it wasn't shown yet.
Regards Patrick
Hello Patrick,
please check both HKCU and HKLM. ReShaprer checks HKCU first, then HKLM.
Also, how did you install ReSharper - for the current user only or for all
users?
Thanks.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Hi Eugene
>> 3) As mentioned before the test runner hangs once in a while. CPU goes up
>> to 100% and it just sits there. Usually happens if you try to run it on a
>> full solution.
>Can't reproduce :(:(
>Please could you do the following when the ReSharper hangs next time:
>a) Which process consumes 100% CPU - devenv.exe or
As far as I can tell it's devenv.exe.
>b) Attach the debugger to that hung process, and
eeehh ok. Could you give me some hints on how to do that? I've never had to do something like that before so ....
>> 4) The icons for the tests are really cool but R# also marks methods with
>> the and as tests while they
>> aren't. Also and aren't marked seperately which would
>> be cool.
>ReSharper recognize them as tests by the NUnit rules. >Does the NUnit itself recognize them as tests?
Eh no. The and are the setup and teardown actions run before and after the testfixture is run. These are not actually tests but setup routines, just like the normal setup and teardown.
>And why do you need and be marked, 'cos you can't run them standalone without test?
I know but it's quicker to look for the cool icons on the border than it is to search the code. So if R# marks these with a special icon they are easier to find while editing the code.
As for running a single test, I only do that in debug mode. Otherwise I always run all tests (to ensure that I didn't break anything).
>>b) Attach the debugger to that hung process, and send us the stack trace
1) Goto Task Manager, "Processes" tab
2) Right-click on devenv.exe, and select "Debug" item in the popup menu
3) For example, select CLR debugging
4) After debugger is launched, pause debugging, and open the stack trace
window
5) in that window you can select all items and copy them to clipboard
6) Just do steps 4-5 for every thread which has meaningfullstack trace
>>ReSharper recognize them as tests by the NUnit rules. >Does the NUnit
>>itself recognize them as tests?
I know :)
But please could you run nunit-gui.exe, load your assembly, and check if
these methods appear in the test tree
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Hi Dmitry
Ok the HKCU entries are both set to zero. The HKLM entries are both set to 1.
As for the install. I don't remember exactly anymore. I normally install for all users but I'm not sure in this case. Sorry about that.
Regards Patrick
Hi Eugene
I'll get the stack traces as soon as I can.
As for the test fixture stuff. I just checked and the TestFixtureSetup and Teardown do not show up in the test tree. But just out of curiousity why is that important?
Regards Patrick
Hello Patrick,
if this is the case, then ReSharper should not attempt to perform one-time
initialization.
So if you assign a custom shortcut to VS command, and then close VS normally,
on the next VS restart the command should have the shortcut associated with
it...
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
That means that pur algorithm of test detection differs from NUnit' one :)
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Hi Dmitry
I checked again this morning after starting VS and now it seems to work. I think it might have been a problem with VS not storing the keyboard maps for some reason.
Should I close the tracker request (as it seems to be solved here)?
Regards Patrick
Hello Patrick,
could you please tell us what request you're referring to? I've been unable
to find it in
the tracker.
Thanks.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Hi Eugene
I tried to get the stack traces but I think I did something wrong. I followed all of your steps (debugged with VS2005 because VS2003 wouldn't start). And the only stack trace I could get is:
ntdll.dll!7c90eb94()
user32.dll!77d49418()
msenv.dll!500c993c()
msenv.dll!500c9b9d()
MSO.DLL!30d458eb()
MSO.DLL!30d45843()
msenv.dll!500c9bd4()
msenv.dll!500e12e0()
ntdll.dll!7c919aeb()
ntdll.dll!7c919ba0()
kernel32.dll!7c80ac66()
kernel32.dll!7c80ac78()
devenv.exe!004088a8()
devenv.exe!00406ed7()
devenv.exe!00410032()
ntdll.dll!7c910895()
ntdll.dll!7c919a9c()
ntdll.dll!7c919b3f()
ntdll.dll!7c919aeb()
advapi32.dll!77dd6a18()
ntdll.dll!7c919aeb()
ntdll.dll!7c919ba0()
kernel32.dll!7c80ac66()
kernel32.dll!7c80ac78()
devenv.exe!004055a1()
devenv.exe!004055c2()
devenv.exe!004055d8()
devenv.exe!004077bc()
devenv.exe!0040780e()
kernel32.dll!7c816d4f()
kernel32.dll!7c8399f3()
Which is probably pretty useless. If you have any other ideas to get a decent stack trace let me know.
The problem doesn't always occur at the same place. This time I got it to occur with the following steps.
I loaded my main solution (16 projects, 3 console apps, the rest all normal assemblies, everything in C#). That project has 4 test assemblies that contain all the test code (a total of 1230 tests, about 1200+ running tests). Then right click the project and run the test runner. Because of the directory problem that Paul is also having (i.e. my tests expect that all assemblies etc. are in a single directory) there were a lot of failed tests (about 600 - 800 failed tests). Once the test runner was finished I clicked the failed test tab and that's when VS hung consuming 95% CPU.
I hope this helps a bit. If not let me know what else I can do to help you locate this problem.
Regards Patrick
Hi Dmitry
It's number 10708 (title: Resharper (buid 207) resets keyboard mappings).
Regards Patrick
Patrick,
thank you, I've closed the request.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Exactly
Have you checked all of the threads?
:(
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Hi Eugene
I'll see if I can create a repro for this. I'll let you know if I get something that works.
Regards Patrick
I ran into the same problem too. UnitTestRunner is almost unusable. It hangs like 80% of the time.
If you'll be able to reproduce this bug in a small solution - please let me
know.
I've tried to reproduce it at my side, but it works fine and VS doesn't
hang.
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Nat" <no_mail@jetbrains.com> wrote in message
news:23491536.1127834937288.JavaMail.itn@is.intellij.net...
>I ran into the same problem too. UnitTestRunner is almost unusable. It
>hangs like 80% of the time.