Please provide
- Operating system: Microsoft Windows 10 Enterprise Version 10.0.19045 Build 19045
- SonarLint plugin version:7.0.0.74072
- Programming language you’re coding in: C#
- Is connected mode used:Connected to SonarQube version 10.1.0.73491
And a thorough description of the problem / question:
A few weeks ago the SonarQube server was updated to version 10.1 (from version 8)
Sonarlint plugin was also updated to the latests available.
Today (which is weird to appear so long after the upgrade) my visual studio tells me:
Sonarlint: You’re using an outdated Connected Mode configuration format. Some features will not be available. Please Migrate.
Then I try to migrate using the wizard, which fails with the following error:
[ThreadId 1] [DEBUG] [MigrationWizardXaml] Error during migration: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\MyProject\.sonarlint'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.CommonInit()
at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
at SonarLint.VisualStudio.ConnectedMode.Migration.VsAwareFileSystem.<CheckOutFilesToDeleteAsync>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarLint.VisualStudio.ConnectedMode.Migration.VsAwareFileSystem.<DeleteFolderAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarLint.VisualStudio.ConnectedMode.Migration.ConnectedModeMigration.<DeleteSonarLintFolderAsync>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarLint.VisualStudio.ConnectedMode.Migration.ConnectedModeMigration.<MakeLegacyFileChangesAsync>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at SonarLint.VisualStudio.ConnectedMode.Migration.ConnectedModeMigration.<MakeLegacyFileChangesAsync>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarLint.VisualStudio.ConnectedMode.Migration.ConnectedModeMigration.<MigrateImplAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarLint.VisualStudio.ConnectedMode.Migration.ConnectedModeMigration.<MigrateAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarLint.VisualStudio.ConnectedMode.Migration.Wizard.MigrationWizardWindow.<MigrateAsync>d__17.MoveNext()
[ThreadId 1] [Migration] Error during migration: Could not find a part of the path 'D:\MyProjectBis\.sonarlint'.
Run migration again with verbose logging enabled for more information.
[ThreadId 153] [DEBUG] Looking up implementation of 'IGetNotificationsRequest' for version '10.1.0.73491' on thread '153'
[ThreadId 153] [DEBUG] Created request of type 'SonarQube.Client.Api.V6_60.GetNotificationsRequest'.
[ThreadId 153] [DEBUG] Sending Http request:
[ThreadId 153] [DEBUG] Method: GET, RequestUri: 'api/developers/search_events?projects=ISM5&from=2023-07-12T11%3A36%3A33%2B0200', Version: 1.1, Content: <null>, Headers:
{
}
[ThreadId 191] [DEBUG] Response with HTTP status code 'OK' received.
[ThreadId 191] [DEBUG] {"events":[]}
[ThreadId 159] [DEBUG] Looking up implementation of 'IGetNotificationsRequest' for version '10.1.0.73491' on thread '159'
[ThreadId 159] [DEBUG] Created request of type 'SonarQube.Client.Api.V6_60.GetNotificationsRequest'.
Not finding that folder seems correct because that folder does not exist and it has never existed.
What can we do?