Quantcast

ndeps issue

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ndeps issue

Loomos, Ted

Can’t seem to get ndeps to work.  I have a clean installation with very few customizations.  When I try to run an analysis with it, I get the messages below.  Seems like maybe I’m missing a setting to tell it where to look for the assemblies or something?  If I skip ndeps, all of the other C# plugins seem to work fine.

 

"C:¥PROGRA‾1¥Java¥jre6¥bin¥java.exe"  -classpath c:¥sonar¥lib¥sonar-runner.jar;c:¥sonar¥lib¥sonar-batch-bootstrapper.jar -Drunner.home=c:¥sonar¥ org.sonar.runner.Main -Dsonar.projectKey="com.aspen:TFS.Test Application.TestApplication.sln" -Dsonar.projectName="Test Application (TestApplication.sln)" -Dsonar.projectVersion="TestApplication_2012.04.25.7" -Dproject.home="C:/Builds/6/538/Sources" -Dsources="C:/Builds/6/538/Sources" -Dsonar.dotnet.visualstudio.solution.file="TestApplication.sln" -Dsonar.language=cs -Dproject.settings=" "

Runner configuration file: c:¥sonar¥conf¥sonar-runner.properties

Project configuration file: NONE

Runner version: 1.2

Java version: 1.6.0_31, vendor: Sun Microsystems Inc.

OS name: "Windows Server 2008 R2", version: "6.1", arch: "amd64"

Server: http://wch.sonar.tfs.ams.com:9000

Work directory: C:¥Builds¥6¥538¥Sources¥.sonar

15:27:34.998 INFO      o.s.c.p.Database - Create JDBC datasource

15:27:36.170 INFO  actDatabaseConnector - Initializing Hibernate

15:27:39.061 INFO  StudioProjectBuilder - The following 'sln' file has been found and will be used: C:¥Builds¥6¥538¥Sources¥TestApplication.sln

15:27:39.514 INFO  .s.b.b.ProjectModule - -------------  Analyzing TestApplication

15:27:40.655 INFO  .s.b.ProfileProvider - Selected quality profile : [name=Sonar C# Way,language=cs]

15:27:40.702 INFO  nPluginsConfigurator - Configure maven plugins...

15:27:40.921 INFO        org.sonar.INFO - Compare to previous analysis (2012-04-25)

15:27:40.967 INFO        org.sonar.INFO - Compare over 5 days (2012-04-20, analysis of 2012-04-25 12:46:16.89)

15:27:40.999 INFO        org.sonar.INFO - Compare over 30 days (2012-03-26, analysis of 2012-04-25 12:46:16.89)

15:27:41.061 INFO  .b.p.SensorsExecutor - Initializer ProjectFileSystemLogger...

15:27:41.061 INFO  jectFileSystemLogger - Source directories:

15:27:41.061 INFO  jectFileSystemLogger -   C:¥Builds¥6¥538¥Sources¥TestApplication

15:27:41.061 INFO  .b.p.SensorsExecutor - Initializer ProjectFileSystemLogger done: 0 ms

15:27:41.061 INFO  .b.p.SensorsExecutor - Initializer CSharpProjectInitializer...

15:27:41.061 INFO  .b.p.SensorsExecutor - Initializer CSharpProjectInitializer done: 0 ms

15:27:41.061 INFO  s.p.c.g.GallioSensor - Gallio won't execute as there are no test projects.

15:27:41.077 INFO  .VisualStudioProject - Skipping the non generated assembly of project : TestApplication

15:27:41.077 INFO  uleBasedCSharpSensor - No assembly to check with Gendarme

15:27:41.077 INFO  .VisualStudioProject - Skipping the non generated assembly of project : TestApplication

15:27:41.077 INFO  uleBasedCSharpSensor - No assembly to check with FxCop

15:27:41.077 INFO  p.PhasesTimeProfiler - Sensor org.sonar.plugins.csharp.core.CSharpSourceImporter@4439bc82...

15:27:41.202 INFO  p.PhasesTimeProfiler - Sensor org.sonar.plugins.csharp.core.CSharpSourceImporter@4439bc82 done: 125 ms

15:27:41.202 INFO  p.PhasesTimeProfiler - Sensor com.sonar.plugins.csharp.squid.C@d6cacdd...

15:27:41.468 INFO  p.PhasesTimeProfiler - Sensor com.sonar.plugins.csharp.squid.C@d6cacdd done: 266 ms

15:27:41.468 INFO  p.PhasesTimeProfiler - Sensor org.sonar.plugins.csharp.gallio.CoverageReportSensor@59187d2f...

15:27:41.468 INFO  CoverageReportSensor - It Coverage report analysis won't execute as Gallio was not executed.

15:27:41.468 INFO  p.PhasesTimeProfiler - Sensor org.sonar.plugins.csharp.gallio.CoverageReportSensor@59187d2f done: 0 ms

15:27:41.468 INFO  p.PhasesTimeProfiler - Sensor org.sonar.plugins.csharp.ndeps.NDepsSensor@56c2c65b...

15:27:41.468 INFO  .s.d.t.n.NDepsRunner - NDeps executable not found: 'C:¥DependencyParser.exe'. The embedded version (1.1) will be used instead.

15:27:41.468 INFO  .s.d.t.n.NDepsRunner - Extracting NDeps binaries in C:¥Builds¥6¥538¥Sources¥.sonar

Total time: 10.173s

Final Memory: 4M/31M

Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: org.sonar.api.utils.SonarException: NDeps execution failed.

○at org.sonar.runner.Runner.delegateExecution(Runner.java:189)

○at org.sonar.runner.Runner.execute(Runner.java:78)

○at org.sonar.runner.Main.main(Main.java:61)

Caused by: org.sonar.api.utils.SonarException: NDeps execution failed.

○at org.sonar.plugins.csharp.ndeps.NDepsSensor.analyse(NDepsSensor.java:84)

○at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)

○at org.sonar.batch.phases.Phases.execute(Phases.java:93)

○at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)

○at org.sonar.batch.bootstrap.Module.start(Module.java:83)

○at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)

○at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110)

○at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)

○at org.sonar.batch.bootstrap.Module.start(Module.java:83)

○at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:109)

○at org.sonar.batch.bootstrap.Module.start(Module.java:83)

○at org.sonar.batch.Batch.execute(Batch.java:104)

○at org.sonar.runner.Launcher.executeBatch(Launcher.java:65)

○at org.sonar.runner.Launcher.execute(Launcher.java:58)

○at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

○at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

○at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

○at java.lang.reflect.Method.invoke(Unknown Source)

○at org.sonar.runner.Runner.delegateExecution(Runner.java:186)

○... 2 more

Caused by: org.sonar.dotnet.tools.ndeps.NDepsException: Assembly to scan not found for project: TestApplication

○at org.sonar.dotnet.tools.ndeps.NDepsCommandBuilder.toCommand(NDepsCommandBuilder.java:71)

○at org.sonar.dotnet.tools.ndeps.NDepsRunner.execute(NDepsRunner.java:118)

○at org.sonar.plugins.csharp.ndeps.NDepsSensor.launchNDeps(NDepsSensor.java:109)

○at org.sonar.plugins.csharp.ndeps.NDepsSensor.analyse(NDepsSensor.java:82)

○... 20 more

 


E-MAIL CONFIDENTIALITY NOTICE:
This e-mail and any attachments are intended only for the use of the individual or entity to whom or to which such are addressed and may contain information that is confidential, proprietary, a trade secret or protected by legal privilege. If you are not the intended recipient or an employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of this e-mail or any attachment is strictly prohibited. If you received this e-mail in error, please notify Aspen Marketing Services, Inc. immediately by returning it to the sender and destroy and delete this copy and attachment(s) from your system. Thank you for your cooperation.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ndeps issue

Alexandre Victoor-2
Hello Ted
Thanks for the feedback. Could you send us :
- your sonar config file 
- the verbose output of the analysis (adding -X to the command line)

Are the generated assemblies located in a special custom location ?
In the logs you send, we can see that gendarme was also not executed properly:

...                      Skipping the non generated assembly of project : TestApplication
15:27:41.077 INFO  uleBasedCSharpSensor - No assembly to check with Gendarme 

This may sound silly but, have you compiled your solution prior to running sonar analysis ?
Regards

Alex


On Wed, Apr 25, 2012 at 11:19 PM, Loomos, Ted <[hidden email]> wrote:

Can’t seem to get ndeps to work.  I have a clean installation with very few customizations.  When I try to run an analysis with it, I get the messages below.  Seems like maybe I’m missing a setting to tell it where to look for the assemblies or something?  If I skip ndeps, all of the other C# plugins seem to work fine.

 

"C:¥PROGRA‾1¥Java¥jre6¥bin¥java.exe"  -classpath c:¥sonar¥lib¥sonar-runner.jar;c:¥sonar¥lib¥sonar-batch-bootstrapper.jar -Drunner.home=c:¥sonar¥ org.sonar.runner.Main -Dsonar.projectKey="com.aspen:TFS.Test Application.TestApplication.sln" -Dsonar.projectName="Test Application (TestApplication.sln)" -Dsonar.projectVersion="TestApplication_2012.04.25.7" -Dproject.home="C:/Builds/6/538/Sources" -Dsources="C:/Builds/6/538/Sources" -Dsonar.dotnet.visualstudio.solution.file="TestApplication.sln" -Dsonar.language=cs -Dproject.settings=" "

Runner configuration file: c:¥sonar¥conf¥sonar-runner.properties

Project configuration file: NONE

Runner version: 1.2

Java version: 1.6.0_31, vendor: Sun Microsystems Inc.

OS name: "Windows Server 2008 R2", version: "6.1", arch: "amd64"

Server: http://wch.sonar.tfs.ams.com:9000

Work directory: C:¥Builds¥6¥538¥Sources¥.sonar

15:27:34.998 INFO      o.s.c.p.Database - Create JDBC datasource

15:27:36.170 INFO  actDatabaseConnector - Initializing Hibernate

15:27:39.061 INFO  StudioProjectBuilder - The following 'sln' file has been found and will be used: C:¥Builds¥6¥538¥Sources¥TestApplication.sln

15:27:39.514 INFO  .s.b.b.ProjectModule - -------------  Analyzing TestApplication

15:27:40.655 INFO  .s.b.ProfileProvider - Selected quality profile : [name=Sonar C# Way,language=cs]

15:27:40.702 INFO  nPluginsConfigurator - Configure maven plugins...

15:27:40.921 INFO        org.sonar.INFO - Compare to previous analysis (2012-04-25)

15:27:40.967 INFO        org.sonar.INFO - Compare over 5 days (2012-04-20, analysis of 2012-04-25 12:46:16.89)

15:27:40.999 INFO        org.sonar.INFO - Compare over 30 days (2012-03-26, analysis of 2012-04-25 12:46:16.89)

15:27:41.061 INFO  .b.p.SensorsExecutor - Initializer ProjectFileSystemLogger...

15:27:41.061 INFO  jectFileSystemLogger - Source directories:

15:27:41.061 INFO  jectFileSystemLogger -   C:¥Builds¥6¥538¥Sources¥TestApplication

15:27:41.061 INFO  .b.p.SensorsExecutor - Initializer ProjectFileSystemLogger done: 0 ms

15:27:41.061 INFO  .b.p.SensorsExecutor - Initializer CSharpProjectInitializer...

15:27:41.061 INFO  .b.p.SensorsExecutor - Initializer CSharpProjectInitializer done: 0 ms

15:27:41.061 INFO  s.p.c.g.GallioSensor - Gallio won't execute as there are no test projects.

15:27:41.077 INFO  .VisualStudioProject - Skipping the non generated assembly of project : TestApplication

15:27:41.077 INFO  uleBasedCSharpSensor - No assembly to check with Gendarme

15:27:41.077 INFO  .VisualStudioProject - Skipping the non generated assembly of project : TestApplication

15:27:41.077 INFO  uleBasedCSharpSensor - No assembly to check with FxCop

15:27:41.077 INFO  p.PhasesTimeProfiler - Sensor org.sonar.plugins.csharp.core.CSharpSourceImporter@4439bc82...

15:27:41.202 INFO  p.PhasesTimeProfiler - Sensor org.sonar.plugins.csharp.core.CSharpSourceImporter@4439bc82 done: 125 ms

15:27:41.202 INFO  p.PhasesTimeProfiler - Sensor com.sonar.plugins.csharp.squid.C@d6cacdd...

15:27:41.468 INFO  p.PhasesTimeProfiler - Sensor com.sonar.plugins.csharp.squid.C@d6cacdd done: 266 ms

15:27:41.468 INFO  p.PhasesTimeProfiler - Sensor org.sonar.plugins.csharp.gallio.CoverageReportSensor@59187d2f...

15:27:41.468 INFO  CoverageReportSensor - It Coverage report analysis won't execute as Gallio was not executed.

15:27:41.468 INFO  p.PhasesTimeProfiler - Sensor org.sonar.plugins.csharp.gallio.CoverageReportSensor@59187d2f done: 0 ms

15:27:41.468 INFO  p.PhasesTimeProfiler - Sensor org.sonar.plugins.csharp.ndeps.NDepsSensor@56c2c65b...

15:27:41.468 INFO  .s.d.t.n.NDepsRunner - NDeps executable not found: 'C:¥DependencyParser.exe'. The embedded version (1.1) will be used instead.

15:27:41.468 INFO  .s.d.t.n.NDepsRunner - Extracting NDeps binaries in C:¥Builds¥6¥538¥Sources¥.sonar

Total time: 10.173s

Final Memory: 4M/31M

Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: org.sonar.api.utils.SonarException: NDeps execution failed.

○at org.sonar.runner.Runner.delegateExecution(Runner.java:189)

○at org.sonar.runner.Runner.execute(Runner.java:78)

○at org.sonar.runner.Main.main(Main.java:61)

Caused by: org.sonar.api.utils.SonarException: NDeps execution failed.

○at org.sonar.plugins.csharp.ndeps.NDepsSensor.analyse(NDepsSensor.java:84)

○at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)

○at org.sonar.batch.phases.Phases.execute(Phases.java:93)

○at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)

○at org.sonar.batch.bootstrap.Module.start(Module.java:83)

○at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)

○at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110)

○at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)

○at org.sonar.batch.bootstrap.Module.start(Module.java:83)

○at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:109)

○at org.sonar.batch.bootstrap.Module.start(Module.java:83)

○at org.sonar.batch.Batch.execute(Batch.java:104)

○at org.sonar.runner.Launcher.executeBatch(Launcher.java:65)

○at org.sonar.runner.Launcher.execute(Launcher.java:58)

○at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

○at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

○at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

○at java.lang.reflect.Method.invoke(Unknown Source)

○at org.sonar.runner.Runner.delegateExecution(Runner.java:186)

○... 2 more

Caused by: org.sonar.dotnet.tools.ndeps.NDepsException: Assembly to scan not found for project: TestApplication

○at org.sonar.dotnet.tools.ndeps.NDepsCommandBuilder.toCommand(NDepsCommandBuilder.java:71)

○at org.sonar.dotnet.tools.ndeps.NDepsRunner.execute(NDepsRunner.java:118)

○at org.sonar.plugins.csharp.ndeps.NDepsSensor.launchNDeps(NDepsSensor.java:109)

○at org.sonar.plugins.csharp.ndeps.NDepsSensor.analyse(NDepsSensor.java:82)

○... 20 more

 


E-MAIL CONFIDENTIALITY NOTICE:
This e-mail and any attachments are intended only for the use of the individual or entity to whom or to which such are addressed and may contain information that is confidential, proprietary, a trade secret or protected by legal privilege. If you are not the intended recipient or an employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of this e-mail or any attachment is strictly prohibited. If you received this e-mail in error, please notify Aspen Marketing Services, Inc. immediately by returning it to the sender and destroy and delete this copy and attachment(s) from your system. Thank you for your cooperation.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ndeps issue

00se
Hello Alexandre,

I am experiencing the same issue when I trying to get the NDeps plugin to work.

I have tried to perform a MSBuild ( I assume this compiles a solution, since I really don't know to much about .NET development). But that doesn't work.

As explained (no crosspost intended) here also fetches a Binaries dir.

As far as my understanding goes the Binaries dir should contain the compiled (dll?) files spread over different projectname bin directories.

Checking out the NDpes code to analyze how it worked as of yet didn't give me a reason why the Ndeps plugin doesn't want to work with my setup.

So I wonder what are the correct steps to take for running the NDeps plugin succesful.

Can you tell me?

Thanks in advance for your reply.


Best regards,


Ed
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ndeps issue

Alexandre Victoor-2
Hello Ed
There are several potential reason for NDeps to fail (bad configuration, dlls obfuscated...). Could you send us the verbose output of your sonar build? You need to add "-X" to the command line in order to enable the verbose mode. 
Regards

Alex

On Fri, Jun 29, 2012 at 9:58 AM, 00se <[hidden email]> wrote:
Hello Alexandre,

I am experiencing the same issue when I trying to get the NDeps plugin to
work.

I have tried to perform a MSBuild ( I assume this compiles a solution, since
I really don't know to much about .NET development). But that doesn't work.

As explained (no crosspost intended)
http://sonar.15.n6.nabble.com/Sonar-StyleCop-runner-challenge-td5000391.html
here  also fetches a Binaries dir.

As far as my understanding goes the Binaries dir should contain the compiled
(dll?) files spread over different projectname bin directories.

Checking out the NDpes code to analyze how it worked as of yet didn't give
me a reason why the Ndeps plugin doesn't want to work with my setup.

So I wonder what are the correct steps to take for running the NDeps plugin
succesful.

Can you tell me?

Thanks in advance for your reply.


Best regards,


Ed


--
View this message in context: http://sonar.15.n6.nabble.com/ndeps-issue-tp4918085p5000392.html
Sent from the Sonar user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ndeps issue

Polly Shaw
I am also experiencing this issue. It has only been occurring since a project with an exe output was added to a solution containing only projects with .dll outputs. Perhaps NDeps is looking for a dll rather than an exe and causing this error:

Assembly to scan not found for project: DatabaseBuilder
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ndeps issue

RK-2
Polly Shaw <shawp@...> writes:

>
> I am also experiencing this issue. It has only been occurring since a project
> with an exe output was added to a solution containing only projects with
> .dll outputs. Perhaps NDeps is looking for a dll rather than an exe and
> causing this error:
>
> Assembly to scan not found for project: DatabaseBuilder
>
> --
> View this message in context:
http://sonar.15.n6.nabble.com/ndeps-issue-tp4918085p5000483.html
> Sent from the Sonar user mailing list archive at Nabble.com.
>
>


Hi.
I have the same issue. I am not sure where sonar looks for binaries, in case
of C# web project. The binaries are present in the bin folder. Does not have
debug/release folder.. How can this be fixed?


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ndeps issue

Alexandre Victoor-2
Hello
Indeed ndeps is not executed on web projects (see http://docs.codehaus.org/display/SONAR/sonar-dotnet-ndeps-plugin)
Do not hesitate to create an jira enhancement request (https://jira.codehaus.org/browse/SONARDOTNT)
This limitation could be removed with version 2.2 of the plugins.
If the analysis could you send us the logs of the analysis and if there is no confidentiality issue your sln & csproj files?
Regards

Alex



On Thu, Apr 18, 2013 at 4:38 PM, Rk <[hidden email]> wrote:
Polly Shaw <shawp@...> writes:

>
> I am also experiencing this issue. It has only been occurring since a project
> with an exe output was added to a solution containing only projects with
> .dll outputs. Perhaps NDeps is looking for a dll rather than an exe and
> causing this error:
>
> Assembly to scan not found for project: DatabaseBuilder
>
> --
> View this message in context:
http://sonar.15.n6.nabble.com/ndeps-issue-tp4918085p5000483.html
> Sent from the Sonar user mailing list archive at Nabble.com.
>
>


Hi.
I have the same issue. I am not sure where sonar looks for binaries, in case
of C# web project. The binaries are present in the bin folder. Does not have
debug/release folder.. How can this be fixed?


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Loading...