Samsung / Dexter

Dexter is a static analysis platform to find and remove defects efficiently and immediately during the coding-time.
BSD 2-Clause "Simplified" License
56 stars 33 forks source link

[dexter-vs] Missing dexter-result.xml #179

Closed JanSawicki closed 6 years ago

JanSawicki commented 6 years ago

What I did I followed the manual](https://dexter.atlassian.net/wiki/spaces/DW/pages/20742160/Dexter+Visual+Studio) and run the first analysis on a sample project ConsoleApplication1.zip.

What happened dextercscrcsvsplugin_dexter-result I have encountered and error:

Error: Unable to access jarfile C:\Program Error during analysis: Cannot find result file: Path to dexter-cli \dexter-cli\bin\dexter-result.xml

My workaround A trial and error approach lead me to putting an empty file "dexter-result.xml" inside the "dexter-cli\bin" directory. The analysis was performed flawlessly.

My question I am not sure if that is the right solution (what is?) and overall if it is the excepted/desired behavior. Perhaps I missed some steps.

JanSawicki commented 6 years ago

Update Actually the problem concerned access rights to the dexter-cli folder which can actually be seen on the screenshot I attached earlier "Error: Unable to access jarfile C:\Program" which I hastily ignored.

The solution I resolved the issue by simply putting the dexter-cli directory somewhere else on the drive and pointing to it from the Dexter VS plugin.

KarolAntczak commented 6 years ago

Hi, Jan!

Missing 'dexter-result.xml' was not the problem - it should be created after the analysis is finished. As you mentioned, the cause of the problem was permission issue - dexter was unable to create this file.

Since it was not caused by the application, I am closing this issue.