Thanks for your reply. I'm now using this CLI version and still see errors of the following two kinds in approx. 50% of the cases. Both appear almost instantly. If the first few seconds are without error, everything works smooth from then on. 1) I think the one from last time: The operation failed with exception: Visual Micro: Unable to save new program settings file C:\Users\...\__vm\Configuration.Release.vmps.xml System.Exception: Visual Micro: Unable to save new program settings file C:\Users\...\__vm\Configuration.Release.vmps.xml ---> System.IO.IOException: used by another process. bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) bei System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) bei System.Xml.XmlDocument.Save(String filename) bei Visual.Micro.ProgramConfiguration.ProgramSettingsReader.Save() bei VMBuild.VMBuilder._CompileDo(VMBuilderProject oProject, Boolean isRebuild) bei VMBuild.VMBuilder.RunBuilder() bei VMBuild.VMBuilder..ctor(VMBuildArgs _vmArgs) bei VMBuild.Program.Main(String[] args) 2) New one. Probably due to copying shared files from different projects: The operation failed with exception: Problem moving OtaUpdater.cpp to the build folder System.Exception: Problem moving OtaUpdater.cpp to the build folder ---> System.IO.IOException: file "C:\Users\...\espressif_pico32\Release\OtaUpdater.cpp" is used by another process. bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) bei System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) bei System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) bei System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) bei System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost) bei System.IO.File.WriteAllText(String path, String contents) bei Visual.Micro.MiroAppAPI.SketchBuilder.preprocess(String buildPath, PdePreprocessor preprocessor, Boolean PreProcessOnly) bei Visual.Micro.MiroAppAPI.SketchBuilder.preprocess(String buildPath, Boolean PreProcessOnly) bei Visual.Micro.MiroAppAPI.SketchBuilder._build(String lbuildPath, Boolean verbose, Boolean PreProcessOnly) bei Visual.Micro.MiroAppAPI.SketchBuilder._build(Boolean verbose) bei Visual.Micro.MiroAppAPI.SketchBuilder.build(Boolean verbose) bei VMBuild.VMBuilder._CompileDo(VMBuilderProject oProject, Boolean isRebuild) bei VMBuild.VMBuilder.RunBuilder() bei VMBuild.VMBuilder..ctor(VMBuildArgs _vmArgs) bei VMBuild.Program.Main(String[] args) A hack on my side would be to wait for a few seconds before starting a new parallel build but this is certainly not a nice approach if there are better solutions.
|