microsoft / azuredatastudio

Azure Data Studio is a data management and development tool with connectivity to popular cloud and on-premises databases. Azure Data Studio supports Windows, macOS, and Linux, with immediate capability to connect to Azure SQL and SQL Server. Browse the extension library for more database support options including MySQL, PostgreSQL, and MongoDB.
https://learn.microsoft.com/sql/azure-data-studio
MIT License
7.58k stars 908 forks source link

intermittent connection error "Cannot register service for type ChildFactory" #26042

Open gfody opened 1 week ago

gfody commented 1 week ago

Steps to Reproduce:

  1. Expand two or more servers so that they're connecting simultaneously
  2. See this error sometimes Image

..I'm able to workaround this by clicking the retry button

Does this issue occur when all extensions are disabled?: Yes

The error message appears in renderer.log:

2024-11-08 08:55:29.806 [warning] getCurrentGlobalConnection: No active editor found.
2024-11-08 08:55:29.809 [info] Creating new connection connection:providerName:MSSQL|authenticationType:Integrated|encrypt:strict|server:server1|groupId:46a7f987-ac57-4f3c-902a-2b602304dc95
2024-11-08 08:55:29.809 [info] Adding connection connection:providerName:MSSQL|authenticationType:Integrated|encrypt:strict|server:server1|groupId:46a7f987-ac57-4f3c-902a-2b602304dc95
2024-11-08 08:55:29.809 [info] Successfully added connection connection:providerName:MSSQL|authenticationType:Integrated|encrypt:strict|server:server1|groupId:46a7f987-ac57-4f3c-902a-2b602304dc95
2024-11-08 08:55:30.489 [info] [perf] Render performance baseline is 32ms
2024-11-08 08:55:30.811 [info] Creating new connection connection:providerName:MSSQL|authenticationType:Integrated|encrypt:strict|server:server2|groupId:6b39e838-9022-4abf-b394-99d8b7576d6f
2024-11-08 08:55:30.811 [info] Adding connection connection:providerName:MSSQL|authenticationType:Integrated|encrypt:strict|server:server2|groupId:6b39e838-9022-4abf-b394-99d8b7576d6f
2024-11-08 08:55:30.811 [info] Successfully added connection connection:providerName:MSSQL|authenticationType:Integrated|encrypt:strict|server:server2|groupId:6b39e838-9022-4abf-b394-99d8b7576d6f
2024-11-08 08:55:36.500 [info] Adding connection with DB name connection:providerName:MSSQL|authenticationType:Integrated|database:master|encrypt:strict|server:server1|groupId:46a7f987-ac57-4f3c-902a-2b602304dc95
2024-11-08 08:55:36.779 [info] Adding connection with DB name connection:providerName:MSSQL|authenticationType:Integrated|database:master|encrypt:strict|server:server2|groupId:6b39e838-9022-4abf-b394-99d8b7576d6f
2024-11-08 08:55:38.875 [error] Cannot register service for type ChildFactory, one or more services already registered
2024-11-08 08:55:38.893 [error] Cannot register service for type ChildFactory, one or more services already registered
2024-11-08 08:56:28.554 [warning] getCurrentGlobalConnection: No active editor found.
2024-11-08 08:56:29.584 [info] Creating new connection untitled:SQLQuery_1
2024-11-08 08:56:29.584 [info] Adding connection untitled:SQLQuery_1
2024-11-08 08:56:29.585 [info] Successfully added connection untitled:SQLQuery_1
2024-11-08 08:56:31.335 [info] No server contextualization provider found for MSSQL
2024-11-08 08:56:31.340 [error] Invalid provider: MSSQL: Error: Invalid provider: MSSQL
    at t (vscode-file://vscode-app/c:/Users/Gordy/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:3:273619) [<root>]
    at m.getProvider (vscode-file://vscode-app/c:/Users/Gordy/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:2316:2806) [<root>]
    at m.getServerContextualization (vscode-file://vscode-app/c:/Users/Gordy/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:2316:3548) [<root>]
    at m.contextualizeUriForCopilot (vscode-file://vscode-app/c:/Users/Gordy/AppData/Local/Programs/Azure%20Data%20Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:2316:3065) [<root>]