CLI `cleanupcode.exe` warnings on Win 10

Hello,

I'm researching usage of the CLI tools based on our .DotSettings solution wide settings. 
When trying to run a `cleanupcode` tool from CLI (standard or elevated), it starts with warnings and then exist with errors.
I'm trying to filter out problems one by one,
What does it mean in plain English, when CLI outpus a warning (the params paths were redacted). Can this problem be elevated or removed? If so, how?

```bash
cleanupcode --settings="...." --include="...." --no-buildin-settings=true "Sources/Main.sln" > echo.txt Warning: AddToWatches C:\Users\pblazejewicz\AppData\Local\Temp isDir=True rec=True will lead to listening of the folder we should not listen to (3pcs)[C:\Users\pblazejewicz\AppData\Local\Temp, C:\Users\pblazejewicz\AppData\Local\Temp\JetBrains, C:\]. At: at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at JetBrains.Application.FileSystemTracker.FileSystemTrackerImpl.AddToWatches(FileSystemPath path, Boolean isDirectory, Boolean watchRecursively)
at JetBrains.Application.FileSystemTracker.FileSystemTrackerImpl.AdviseDirectoryChanges(FileSystemPath directoryPath, Boolean watchRecursively)
at JetBrains.ProjectModel.FileSystemTrackerSolutionProxy.AdviseDirectoryChanges(FileSystemPath directoryPath, Boolean watchRecursively)
at JetBrains.ProjectModel.ProjectItemBase.DoAdviseFileSystemChanges()
at JetBrains.ProjectModel.ProjectItemBase.MyOpenVisitor.VisitProjectItem(IProjectItem projectItem)
at JetBrains.ProjectModel.RecursiveProjectVisitor.VisitProjectFolder(IProjectFolder projectFolder)
at JetBrains.ProjectModel.RecursiveProjectVisitor.VisitProjectFolder(IProjectFolder projectFolder)
at JetBrains.ProjectModel.RecursiveProjectVisitor.VisitProject(IProject project)
at JetBrains.ProjectModel.RecursiveProjectVisitor.VisitProjectFolder(IProjectFolder projectFolder)
at JetBrains.ProjectModel.RecursiveProjectVisitor.VisitProject(IProject project)
at JetBrains.ProjectModel.RecursiveProjectVisitor.VisitProjectFolder(IProjectFolder projectFolder)
at JetBrains.ProjectModel.RecursiveProjectVisitor.VisitProject(IProject project)
at JetBrains.ProjectModel.ProjectManagerBase.OpenProjectInstance(Pair`2 projectInstanceWithLifetime)
at JetBrains.ProjectModel.ProjectManagerBase.<>c__DisplayClass22_0.<EnqueueOpenProjectInstance>b__0()
at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.<>c__DisplayClass21_0.<ExecuteTask>b__1()
at JetBrains.Util.ILoggerEx.Catch(ILogger th?s, Action F, ExceptionOrigin origin, LoggingLevel loggingLevel)
at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.ExecuteTask(SolutionLoadTask task)
at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerSync.ExecuteTasks()
at JetBrains.ProjectModel.SolutionManagerBase.CreateSolutionInstance(SolutionElement solutionElement, SolutionInstance solutionInstance)
at JetBrains.ProjectModel.ProjectsHost.SolutionHost.Impl.SolutionHostManager.OpenSolution(ISolutionMark solutionMark, Object cookie)
at JetBrains.CommandLine.CleanupCode.Unattended.ConsoleCodeEditing.CleanupCodeProductMain.<>c__DisplayClass3_0.<OpenSolution>b__0()
at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
at JetBrains.CommandLine.CleanupCode.Unattended.ConsoleCodeEditing.CleanupCodeProductMain.OpenSolution(FileSystemPath solutionFilePath, IShellLocks shellLocks, ILogger logger, SolutionHostManager solutionHost)
...
```
As the process ends with an error, we're trying to remove false-positive warnings from the output.

Win 10 (Pro/Ent)

Thanks!
Piotr

0
3 comments

Hello Piotr,

 

Thank you for the feedback.

Could you please specify the version of ReSharper CLT you are using?

Thank you.

0

@Peter is you project or settings file you specified lies in temp folder?

0
Avatar
Permanently deleted user

@Angelina

It says 19.2.2 (just fetched it in the morning).

@Slava
Good point, never though about this. Let me check.
No, all are within the root directory used in the CLI. I've used the full path for settings configuration (so it points to the . settings within Sources and provided a list of files to include using relative directories within /Sources.

Obviously there is a /AppData/Local/JetBrains directory and there are /AppData/Local/Temp/JetBrains on my local profile directory.

Thanks!

0

Please sign in to leave a comment.