kevinmiles / dxcorecommunityplugins

Automatically exported from code.google.com/p/dxcorecommunityplugins
0 stars 0 forks source link

CodeIssueAnalysis plugIn consistently throws System.NullReference.Exception #62

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Which edition of the DevExpress toolset are you using?
* CodeRush (Xpress) 10.1.4

Which version of the DevExpress toolset are you using?  * 10.1.4

Which version of Studio are you using?   * VS2008

What OS?  *Win7 64bit

Which community plugin(s) are you attempting to use?

What steps will reproduce the problem?
1. CodeIssueAnalysis 

What is the expected output? What do you see instead?

pop-up message box tiele: "Assertion Failed" with stack trace

Original issue reported on code.google.com by david_ti...@verizon.net on 2 Jul 2010 at 8:37

Attachments:

GoogleCodeExporter commented 8 years ago
Which community plugin(s) are you attempting to use?   CodeIssuesAnalysis.dll

What steps will reproduce the problem?
Immediately after launching the plugIn dialog and clicking either Solution or 
project buttons, creash occurs. NEXT - clicking Abort button 2nd popup is 
displayed - attached.

Original comment by david_ti...@verizon.net on 2 Jul 2010 at 8:49

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by RoryBec...@gmail.com on 2 Jul 2010 at 8:51

GoogleCodeExporter commented 8 years ago
Ok I know where that assert is, possibly a threading issue I will try to take a 
look this weekend but I will need to setup a vm with visual studio 2008 and CR 
xpress.

Original comment by PeterTho...@gmail.com on 2 Jul 2010 at 9:24

GoogleCodeExporter commented 8 years ago
This issue is likely platform specific. Any plans of fixing the issue?  Aside, 
in general I think it would be beneficial to the community (suggestion) if each 
plug-in listed it's platform compatibility; e.g. works on 32 bit not 64 bit; or 
works on XP not Win7 so the community can make an informed decision about 
downloading plug-ins. It is disappointing to find out after the fact that the 
plug-in simply does not work on due to platform differences.

Original comment by david_ti...@verizon.net on 22 Jul 2010 at 11:31

GoogleCodeExporter commented 8 years ago
I meant to follow up on this. I created a virtual machine Win 7 64 bit with vs 
2008 and CRXpress. I couldn't reproduce your issue so was going to ask you to 
try compiling it yourself from source. 

However in testing I found the CodeIssues part of DxCore is only available in 
the full version of code rush so the plugin will be of no use to you anyway, it 
will generate no results (but shouldn't error on loading). Sorry about that, 
Rory Becker thinks he tested it for use in combination with StyleNinja on CR 
Xpress and it worked but it may have changed moving from version 9 to 10.

I will add a comment to the wiki to this effect.

p.s. As far as I am aware there are no platform specific problems with any 
plugins. Whether they function on CRXpress or not would be of use though.

Original comment by PeterTho...@gmail.com on 22 Jul 2010 at 12:58

GoogleCodeExporter commented 8 years ago
I have exactly same issue on Dx Core 10.2.6, Windows 7/x64. Is this x64 issue? 

Original comment by ing.kare...@gmail.com on 24 Mar 2011 at 4:36

GoogleCodeExporter commented 8 years ago
Strange I am unable to re-produce could you let me know your system details (VS 
and OS version) and are you using a full version of code rush?

Is it as soon as you press Code Issue Analysis button in the menu?

Any chance you would try compiling it from source see if you still get the 
issue? You could potentially run it in debug also

Original comment by PeterTho...@gmail.com on 24 Mar 2011 at 10:41

GoogleCodeExporter commented 8 years ago
Cancel that I have had a look and have added some more detailed error handling. 
If you wouldn't mind I will shortly email you a copy of it, if you could delete 
the old version from your plugins and add this one then let me know the error 
you get please.

Original comment by PeterTho...@gmail.com on 24 Mar 2011 at 11:11

GoogleCodeExporter commented 8 years ago
Win 7/x64, CodeRush 10.2.6 full. I can try to compile plugin from source
code but I have no experiencies how to do it.

Dne 24.3.2011 23:41, dxcorecommunityplugins@googlecode.com napsal(a):

Original comment by ing.kare...@gmail.com on 24 Mar 2011 at 11:52

GoogleCodeExporter commented 8 years ago
Some other error:
1. both Enabled and Enable solution wide analyzis turned off. No editor
window is open.
2. Clicked Get solution issues. Processed and solution issues are shown.
3. Clicked Rescan current file - error message bellow.

Dne 25.3.2011 0:51, Karel Kr�l napsal(a):

Original comment by ing.kare...@gmail.com on 25 Mar 2011 at 12:03

GoogleCodeExporter commented 8 years ago
Followed your instructions but can't re-produce. Can you try the file attached 
it has more error handling.

Original comment by PeterTho...@gmail.com on 25 Mar 2011 at 1:00

Attachments:

GoogleCodeExporter commented 8 years ago
Can it be some concurency issues? When I first click Get solution issues
from your toolbar, top progress bar does not appear and I can see grid
filling.
Restarted VS, repeated the same step and progress bar appears correctly.

Later I will try to download source code and do some debugging, but I
have no experiences with CR plugins.

Dne 25.3.2011 2:00, dxcorecommunityplugins@googlecode.com napsal(a):

Original comment by ing.kare...@gmail.com on 25 Mar 2011 at 7:04

GoogleCodeExporter commented 8 years ago
Have you tried the new version I have attached here?

Original comment by PeterTho...@gmail.com on 25 Mar 2011 at 8:54

GoogleCodeExporter commented 8 years ago
I spent about two hours of debugging your project and I suppose that
most of issues are multi-threading concurrency issues. Very hard to
reproduce.

* You use lock in incorrect way, I have found many places where
CodeIssues collection was modified without lock. Comments about this are
attached in modified source.
* Empty catch block are also the source of unpredictable results - not a
good practice.
* Other issues found are commented in source by token 

 // KaKTODO: 25.3.2011 (KaK) 

Your plugin works for me now but I have no idea how long it will be
working. I mean that no every issue was resolved :-)

Dne 25.3.2011 9:54, dxcorecommunityplugins@googlecode.com napsal(a):

Original comment by ing.kare...@gmail.com on 25 Mar 2011 at 10:19

GoogleCodeExporter commented 8 years ago
Thanks I will get it merged into the source. I am aware there were concurrency 
issues it wasn't originally multi-threaded and I tacked it on poorly which 
caused some empty catches just to get it working. There was also a history 
behind the lock(this) but it's no longer appropriate.

I will have a large tidy up of the code when I get a chance.

Original comment by PeterTho...@gmail.com on 25 Mar 2011 at 10:47