question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception running InspectCode and then directly after TeamCity.ImportData

See original GitHub issue

Here is the exception

[17:00:11][Step 1/1] Importing data from ‘artifacts/_ReSharperReports/inspectcode-report.xml’ (45.71 KB) with ‘ReSharperInspectCode’ processor [17:00:11][Step 1/1] Caught exception while running service process importData [17:00:11] [Step 1/1] java.io.FileNotFoundException: C:\Temp\buildAgent1\work\ab9b99833ae569b1\artifacts_ReSharperReports\inspectcode-report.xml (The process cannot access the file because it is being used by another process) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at jetbrains.buildServer.dotnetTools.agent.inspectCode.InspectCodeFileProcessor.processReport(InspectCodeFileProcessor.java:54) at jetbrains.buildServer.dotnetTools.agent.inspectCode.InspectCodeDataProcessor.processData(InspectCodeDataProcessor.java:38) at jetbrains.buildServer.agent.impl.inspections.DataImportServiceMessage$1.run(DataImportServiceMessage.java:93) at jetbrains.buildServer.agent.impl.serviceProcess.impl.ThreadedServiceProcessFactory$1.run(ThreadedServiceProcessFactory.java:31) at java.lang.Thread.run(Thread.java:745)

This is due to this line which does resultsFile.Open(FileMode.Open)

Looks like there is the same problem here https://github.com/cake-build/cake/blob/develop/src/Cake.Common/Tools/DupFinder/DupFinderRunner.cs#L193 cc @gep13

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
laurentkempecommented, Apr 7, 2016

selfie-0

👍 Works perfectly! well done @gep13

0reactions
laurentkempecommented, Apr 7, 2016

@gep13 don’t worry I will do so 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prevent TeamCity reporting ReSharper Code Inspection ...
You can run this as a PowerShell build step, passing the solution filename as the first script argument and the variable %system.teamcity.build.
Read more >
Build Script Interaction with TeamCity
Indicates that the test " testName " is present but was not run (was ignored) by the testing framework. As an exception, the...
Read more >
Service Messages | TeamCity On-Premises Documentation
Service messages are specially constructed pieces of text that pass commands/information about the build from the build script to the TeamCity server.
Read more >
Cake.Core 0.10.1
Version Downloads Last updated 3.0.0 147,024 7 months ago 2.3.0 36,537 8 months ago 2.2.0 169,559 4/14/2022
Read more >
Bug and Issue Tracker - YouTrackReSharper (RSRP)
Hi, we're running a Continous Build using TeamCity and are running InspectCode as part of the build process. On one of the agents,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found