Closed denelon closed 1 month ago
@darcydommer Could you please run winget --info
and paste the information here? Could you also please share the VS Code version you are working with? Did you already have VS Code installed when you ran the winget file? Did you have it open when you ran the file?
@darcydommer, thanks for providing feedback. Could you run the same command but include the --verbose --logs
arguments? This should open up the logs for that run. Would you be able to paste the traces from that log here?
@claudiaregio - I did have VSCode previously installed (v1.89.1) before running the winget file I did not have VSCode open when I ran the winget file.
Microsoft Windows [Version 10.0.19045.4894] (c) Microsoft Corporation. All rights reserved.
C:\Users\Darcy>winget --info --verbose --logs Windows Package Manager v1.8.1911 Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19045.4894 System Architecture: X64 Package: Microsoft.DesktopAppInstaller v1.23.1911.0
Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAp… User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAp… Portable Links Directory (User) %LOCALAPPDATA%\Microsoft\WinGet\Links Portable Links Directory (Machine) C:\Program Files\WinGet\Links Portable Package Root (User) %LOCALAPPDATA%\Microsoft\WinGet\Packages Portable Package Root C:\Program Files\WinGet\Packages Portable Package Root (x86) C:\Program Files (x86)\WinGet\Packages Installer Downloads D:\Users\Darcy\Downloads
Privacy Statement https://aka.ms/winget-privacy License Agreement https://aka.ms/winget-license Third Party Notices https://aka.ms/winget-3rdPartyNotice Homepage https://aka.ms/winget Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
LocalManifestFiles Disabled BypassCertificatePinningForMicrosoftStore Disabled InstallerHashOverride Disabled LocalArchiveMalwareScanOverride Disabled ProxyCommandLineOptions Disabled DefaultProxy Disabled
C:\Users\Darcy>
2024-09-27 09:04:44.551 [CORE] WinGet, version [1.8.1911], activity [{48F0161E-45BC-4F94-93CA-98392B81A3DA}] 2024-09-27 09:04:44.552 [CORE] OS: Windows.Desktop v10.0.19045.4894 2024-09-27 09:04:44.552 [CORE] Command line Args: winget --info --verbose --logs 2024-09-27 09:04:44.552 [CORE] Package: Microsoft.DesktopAppInstaller v1.23.1911.0 2024-09-27 09:04:44.552 [CORE] IsCOMCall:0; Caller: winget-cli 2024-09-27 09:04:44.573 [CLI ] WinGet invoked with arguments: '--info' '--verbose' '--logs' 2024-09-27 09:04:44.573 [CLI ] Leaf command to execute: root 2024-09-27 09:04:44.580 [CORE] Setting action: Get, Type: Secure, Name: admin_settings 2024-09-27 09:04:44.580 [CORE] Admin settings was not found 2024-09-27 09:04:44.580 [CORE] Setting action: Get, Type: Secure, Name: admin_settings 2024-09-27 09:04:44.580 [CORE] Admin settings was not found 2024-09-27 09:04:44.580 [CLI ] Executing command: root 2024-09-27 09:04:44.646 [CORE] Setting action: Get, Type: Secure, Name: admin_settings 2024-09-27 09:04:44.646 [CORE] Admin settings was not found 2024-09-27 09:04:44.647 [CORE] Setting action: Get, Type: Secure, Name: admin_settings 2024-09-27 09:04:44.647 [CORE] Admin settings was not found 2024-09-27 09:04:44.647 [CORE] Setting action: Get, Type: Secure, Name: admin_settings 2024-09-27 09:04:44.647 [CORE] Admin settings was not found 2024-09-27 09:04:44.647 [CORE] Setting action: Get, Type: Secure, Name: admin_settings 2024-09-27 09:04:44.647 [CORE] Admin settings was not found 2024-09-27 09:04:44.647 [CORE] Setting action: Get, Type: Secure, Name: admin_settings 2024-09-27 09:04:44.647 [CORE] Admin settings was not found 2024-09-27 09:04:44.647 [CORE] Setting action: Get, Type: Secure, Name: admin_settings 2024-09-27 09:04:44.647 [CORE] Admin settings was not found 2024-09-27 09:04:44.779 [CLI ] Leaf command succeeded: root
@darcydommer,
Thanks so much for reporting this. The VSCode DSC resource is pretty new 😊
I'm not sure how we're going to be able to troubleshoot and get a repro on our side, but I'm going to have one of our engineers dig into this and see if we can figure out what's going on and fix it.
@darcydommer,
Can you run winget configure <your path to 'dotnet_configuration.winget'> --verbose --logs
and send me those logs. The one you sent before is only for winget --info
2024-09-27 09:34:25.465 [CORE] WinGet, version [1.8.1911], activity
[{BDE73D61-7014-4979-AB12-698E963BA8F8}]
2024-09-27 09:34:25.465 [CORE] OS: Windows.Desktop v10.0.19045.4894
2024-09-27 09:34:25.465 [CORE] Command line Args: "C:\Program
Files\WindowsApps\Microsoft.DesktopAppInstaller_1.23.1911.0_x648wekyb3d8bbwe\WindowsPackageManagerServer.exe"
-Embedding
2024-09-27 09:34:25.465 [CORE] Package: Microsoft.DesktopAppInstaller
v1.23.1911.0
2024-09-27 09:34:25.465 [CORE] IsCOMCall:1; Caller:
Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
2024-09-27 09:34:25.469 [REPO] Named source requested, found: msstore
2024-09-27 09:34:25.471 [CORE] Default proxy is not set
2024-09-27 09:34:25.471 [REPO] REST HTTP Client helper does not use proxy
2024-09-27 09:34:25.472 [REPO] Named source requested, found: winget
2024-09-27 09:34:25.541 [REPO] Sending http GET request to:
https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2024-09-27 09:34:26.036 [REPO] Response status: 200
2024-09-27 09:34:26.037 [REPO] Authentication node not found. Assuming
authentication type none.
2024-09-27 09:34:26.037 [REPO] Sending http GET request to:
https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2024-09-27 09:34:26.066 [REPO] Response status: 200
2024-09-27 09:34:26.066 [REPO] Authentication node not found. Assuming
authentication type none.
2024-09-27 09:34:26.081 [CORE] Examining extension: PFN =
Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2024-09-27 09:34:26.081 [CORE] Found matching extension.
2024-09-27 09:34:26.086 [REPO] Source winget
after auto update time
[(override) 15 mins]; it has been at least 1263 mins
2024-09-27 09:34:26.093 [CORE] Examining extension: PFN =
Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2024-09-27 09:34:26.093 [CORE] Found matching extension.
2024-09-27 09:34:26.549 [CORE] Downloading to path:
C:\Users\Darcy\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix
2024-09-27 09:34:26.552 [CORE] Started applying motw to
C:\Users\Darcy\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix
with zone: 3
2024-09-27 09:34:26.563 [CORE] Finished applying motw
2024-09-27 09:34:26.564 [CORE] WinINet downloading from url:
https://cdn.winget.microsoft.com/cache/source2.msix
2024-09-27 09:34:26.859 [CORE] Download completed.
2024-09-27 09:34:26.960 [CORE] Started trust validation of msix at:
C:\Users\Darcy\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix
2024-09-27 09:34:27.036 [CORE] Result for certificate chain validation of
Microsoft origin: 0
2024-09-27 09:34:27.103 [CORE] Result for trust info validation of the
msix: 0
2024-09-27 09:34:27.103 [CORE] Starting AddPackage operation #0:
file:///C:/Users/Darcy/AppData/Local/Temp/WinGet/Microsoft.Winget.Source_8wekyb3d8bbwe.msix
SkipSmartScreen: 1
2024-09-27 09:34:27.106 [CORE] Begin waiting for operation #0
2024-09-27 09:34:27.106 [CORE] Begin blocking for operation #0
2024-09-27 09:34:29.381 [CORE] Successfully completed #0
2024-09-27 09:34:29.411 [CORE] Examining extension: PFN =
Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2024-09-27 09:34:29.411 [CORE] Found matching extension.
2024-09-27 09:34:29.473 [REPO] Opening database for ImmutableRead at
'C:\Program
Files\WindowsApps\Microsoft.Winget.Source_2024.927.1710.43_neutral8wekyb3d8bbwe\Public\index.db'
2024-09-27 09:34:29.475 [REPO] Opened SQLite Index with version [2.0], last
write [2024-09-27 09:08:15.000]
2024-09-27 09:34:29.534 [REPO] Creating new SQLite Index with version
[Latest] at ':memory:'
2024-09-27 09:34:29.540 [REPO] Reading MSI UpgradeCodes
2024-09-27 09:34:30.291 [REPO] Reading MSI UpgradeCodes
2024-09-27 09:34:31.217 [REPO] Opening database for ReadWrite at
'C:\Users\Darcy\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db'
2024-09-27 09:34:31.219 [REPO] Opened SQLite Index with version [1.5], last
write [2022-11-30 17:58:18.000]
2024-09-27 09:34:31.226 [REPO] Sending http GET request to:
https://storeedgefd.dsx.mp.microsoft.com/v9.0/packageManifests/Microsoft.DotNet.SDK.8?Market=CA
2024-09-27 09:34:31.298 [REPO] Response status: 200
2024-09-27 09:34:31.311 [REPO] Opening database for ReadWrite at
'C:\Users\Darcy\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2024-09-27 09:34:31.314 [REPO] Opened SQLite Index with version [1.6], last
write [2024-06-18 10:52:38.000]
2024-09-27 09:34:31.424 [REPO] Found multiple results for Id
[Microsoft.DotNet.SDK.8] in tracking catalog for: winget
2024-09-27 09:34:31.459 [REPO] Attempting to open pinning database:
C:\Users\Darcy\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db
2024-09-27 09:34:31.459 [REPO] ... opening existing pinning database
2024-09-27 09:34:31.459 [REPO] Opening database for Read at
'C:\Users\Darcy\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db'
2024-09-27 09:34:31.461 [REPO] Opened Pinning Index with version [1.0],
last write [2023-09-13 16:24:23.000]
2024-09-27 09:34:32.105 [REPO] Named source requested, found: msstore
2024-09-27 09:34:32.105 [REPO] REST HTTP Client helper does not use proxy
2024-09-27 09:34:32.106 [REPO] Named source requested, found: winget
2024-09-27 09:34:32.117 [REPO] Sending http GET request to:
https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2024-09-27 09:34:32.243 [REPO] Response status: 200
2024-09-27 09:34:32.243 [REPO] Authentication node not found. Assuming
authentication type none.
2024-09-27 09:34:32.243 [REPO] Sending http GET request to:
https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2024-09-27 09:34:32.380 [REPO] Response status: 200
2024-09-27 09:34:32.380 [REPO] Authentication node not found. Assuming
authentication type none.
2024-09-27 09:34:32.389 [CORE] Examining extension: PFN =
Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2024-09-27 09:34:32.389 [CORE] Found matching extension.
2024-09-27 09:34:32.409 [CORE] Examining extension: PFN =
Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2024-09-27 09:34:32.410 [CORE] Found matching extension.
2024-09-27 09:34:32.440 [REPO] Opening database for ImmutableRead at
'C:\Program
Files\WindowsApps\Microsoft.Winget.Source_2024.927.1710.43_neutral__8wekyb3d8bbwe\Public\index.db'
2024-09-27 09:34:32.441 [REPO] Opened SQLite Index with version [2.0], last
write [2024-09-27 09:08:15.000]
2024-09-27 09:34:32.485 [REPO] Opening database for ReadWrite at
'C:\Users\Darcy\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db'
2024-09-27 09:34:32.487 [REPO] Opened SQLite Index with version [1.5], last
write [2022-11-30 17:58:18.000]
2024-09-27 09:34:32.492 [REPO] Sending http GET request to:
https://storeedgefd.dsx.mp.microsoft.com/v9.0/packageManifests/Microsoft.VisualStudioCode?Market=CA
2024-09-27 09:34:32.541 [REPO] Response status: 200
2024-09-27 09:34:32.554 [REPO] Opening database for ReadWrite at
'C:\Users\Darcy\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2024-09-27 09:34:32.555 [REPO] Opened SQLite Index with version [1.6], last
write [2024-06-18 10:52:38.000]
2024-09-27 09:34:32.929 [REPO] Found multiple results for Id
[Microsoft.VisualStudioCode] in tracking catalog for: winget
2024-09-27 09:34:32.946 [REPO] Attempting to open pinning database:
C:\Users\Darcy\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db
2024-09-27 09:34:32.947 [REPO] ... opening existing pinning database
2024-09-27 09:34:32.947 [REPO] Opening database for Read at
'C:\Users\Darcy\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db'
2024-09-27 09:34:32.948 [REPO] Opened Pinning Index with version [1.0],
last write [2023-09-13 16:24:23.000]
2024-09-27 09:34:01.243 [CORE] WinGet, version [1.8.1911], activity [{47B80F82-FDA0-4678-B0D7-EBA452231FA8}] 2024-09-27 09:34:01.243 [CORE] OS: Windows.Desktop v10.0.19045.4894 2024-09-27 09:34:01.243 [CORE] Command line Args: winget configure D:\Users\Darcy\Downloads\dotnet_configuration.winget --verbose --logs 2024-09-27 09:34:01.244 [CORE] Package: Microsoft.DesktopAppInstaller v1.23.1911.0 2024-09-27 09:34:01.244 [CORE] IsCOMCall:0; Caller: winget-cli 2024-09-27 09:34:01.263 [CLI ] WinGet invoked with arguments: 'configure' 'D:\Users\Darcy\Downloads\dotnet_configuration.winget' '--verbose' '--logs' 2024-09-27 09:34:01.265 [CLI ] Found subcommand: configure 2024-09-27 09:34:01.265 [CLI ] Leaf command to execute: root:configure 2024-09-27 09:34:01.267 [CORE] Setting action: Get, Type: Secure, Name: admin_settings 2024-09-27 09:34:01.267 [CORE] Admin settings was not found 2024-09-27 09:34:01.268 [CORE] Setting action: Get, Type: Secure, Name: admin_settings 2024-09-27 09:34:01.268 [CORE] Admin settings was not found 2024-09-27 09:34:01.268 [CLI ] Executing command: configure 2024-09-27 09:34:01.289 [CONF] Launching process for configuration processing... 2024-09-27 09:34:01.390 [CONF] Configuration remote PID is 6004 2024-09-27 09:34:01.608 [CONF] ... configuration processing connection established. 2024-09-27 09:34:01.888 [CONF] [CONF] Parsing configuration set: 2024-09-27 09:34:01.888 [CONF] # yaml-language-server: $schema= https://aka.ms/configuration-dsc-schema/0.2
properties:
resources:
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: install-dotnet8-SDK
directives:
description: Install .NET 8 SDK
allowPrerelease: true
settings:
id: Microsoft.DotNet.SDK.8
source: winget
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: install-vs-code
directives:
description: Install Visual Studio Code
allowPrerelease: true
settings:
id: Microsoft.VisualStudioCode
source: winget
- resource: Microsoft.VSCode.DSC/VSCodeExtension
id: install-csharp-dev-kit
dependsOn:
- install-vs-code
directives:
description: Install C# Dev Kit
allowPrerelease: true
settings:
name: ms-dotnettools.csdevkit
exist: true
configurationVersion: 0.2.0
2024-09-27 09:34:01.888 [CONF] [YAML] Detected UTF-8
2024-09-27 09:34:02.042 [CONF] The set processor factory is running in
limit mode: False.
2024-09-27 09:34:02.044 [CONF] Creating set processor for
dotnet_configuration.winget
...
2024-09-27 09:34:03.459 [CONF] Using winget module path
2024-09-27 09:34:03.460 [CONF] Effective module path:
C:\Users\Darcy\AppData\Local\Microsoft\WinGet\Configuration\Modules;C:\Program
Files\WindowsApps\Microsoft.DesktopAppInstaller_1.23.1911.0_x648wekyb3d8bbwe\ExternalModules;D:\Users\Darcy\Documents\PowerShell\Modules;C:\Program
Files\PowerShell\Modules;c:\program
files\windowsapps\microsoft.desktopappinstaller_1.23.1911.0_x648wekyb3d8bbwe\configurationremotingserver\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\;C:\Program
Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement;C:\Program
Files (x86)\Microsoft SQL Server\120\Tools\PowerShell\Modules\
2024-09-27 09:34:03.461 [CONF] Validating module: PowerShellGet ...
2024-09-27 09:34:03.993 [CONF] ... module is available, importing ...
2024-09-27 09:34:07.734 [CONF] ... module imported.
2024-09-27 09:34:07.735 [CONF] Validating module:
PSDesiredStateConfiguration ...
2024-09-27 09:34:07.955 [CONF] ... module is available, importing ...
2024-09-27 09:34:08.364 [CONF] PowerShellCommands: ['Import-Module'
Parameters: FullyQualifiedName = '@{ ModuleName =
'PSDesiredStateConfiguration'; ModuleVersion = '2.0.7'; MaximumVersion =
'2.999999999' }' ]
2024-09-27 09:34:08.365 [CONF] ... module imported.
2024-09-27 09:34:08.365 [CONF] ... done creating set processor.
2024-09-27 09:34:08.375 [CONF] GetUnitProcessorDetails is running in limit
mode: False.
2024-09-27 09:34:08.405 [CONF] Getting unit details [ReadOnly] for:
Microsoft.WinGet.DSC/WinGetPackage
2024-09-27 09:34:09.593 [CONF] GetUnitProcessorDetails is running in limit
mode: False.
2024-09-27 09:34:09.595 [CONF] Getting unit details [ReadOnly] for:
Microsoft.WinGet.DSC/WinGetPackage
2024-09-27 09:34:09.961 [CONF] GetUnitProcessorDetails is running in limit
mode: False.
2024-09-27 09:34:09.963 [CONF] Getting unit details [ReadOnly] for:
Microsoft.VSCode.DSC/VSCodeExtension
2024-09-27 09:34:23.141 [CONF] The set processor factory is running in
limit mode: False.
2024-09-27 09:34:23.142 [CONF] Creating set processor for
dotnet_configuration.winget
...
2024-09-27 09:34:23.276 [CONF] Using winget module path
2024-09-27 09:34:23.276 [CONF] Effective module path:
C:\Users\Darcy\AppData\Local\Microsoft\WinGet\Configuration\Modules;C:\Program
Files\WindowsApps\Microsoft.DesktopAppInstaller_1.23.1911.0_x648wekyb3d8bbwe\ExternalModules;D:\Users\Darcy\Documents\PowerShell\Modules;C:\Program
Files\PowerShell\Modules;c:\program
files\windowsapps\microsoft.desktopappinstaller_1.23.1911.0_x648wekyb3d8bbwe\configurationremotingserver\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\;C:\Program
Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement;C:\Program
Files (x86)\Microsoft SQL Server\120\Tools\PowerShell\Modules\
2024-09-27 09:34:23.276 [CONF] Validating module: PowerShellGet ...
2024-09-27 09:34:23.338 [CONF] ... module is available, importing ...
2024-09-27 09:34:23.638 [CONF] ... module imported.
2024-09-27 09:34:23.639 [CONF] Validating module:
PSDesiredStateConfiguration ...
2024-09-27 09:34:23.640 [CONF] ... module is already imported.
2024-09-27 09:34:23.640 [CONF] ... done creating set processor.
2024-09-27 09:34:23.645 [CONF] GetUnitProcessorDetails is running in limit
mode: False.
2024-09-27 09:34:23.649 [CONF] Creating unit processor for:
Microsoft.WinGet.DSC/WinGetPackage...
2024-09-27 09:34:24.512 [CONF] ... done creating unit processor.
2024-09-27 09:34:24.512 [CONF] Using unit from location:
C:\Users\Darcy\AppData\Local\Microsoft\WinGet\Configuration\Modules\Microsoft.WinGet.DSC\1.9.2411\Microsoft.WinGet.DSC.psd1
2024-09-27 09:34:24.516 [CONF] Invoking Test
for resource:
Microsoft.WinGet.DSC/WinGetPackage...
2024-09-27 09:34:31.507 [CONF] ... done invoking Test
.
2024-09-27 09:34:31.563 [CONF] GetUnitProcessorDetails is running in limit
mode: False.
2024-09-27 09:34:31.567 [CONF] Creating unit processor for:
Microsoft.WinGet.DSC/WinGetPackage...
2024-09-27 09:34:31.720 [CONF] ... done creating unit processor.
2024-09-27 09:34:31.721 [CONF] Using unit from location:
C:\Users\Darcy\AppData\Local\Microsoft\WinGet\Configuration\Modules\Microsoft.WinGet.DSC\1.9.2411\Microsoft.WinGet.DSC.psd1
2024-09-27 09:34:31.722 [CONF] Invoking Test
for resource:
Microsoft.WinGet.DSC/WinGetPackage...
2024-09-27 09:34:32.950 [CONF] ... done invoking Test
.
2024-09-27 09:34:32.980 [CONF] GetUnitProcessorDetails is running in limit
mode: False.
2024-09-27 09:34:32.982 [CONF] Creating unit processor for:
Microsoft.VSCode.DSC/VSCodeExtension...
2024-09-27 09:34:33.197 [CONF]
Microsoft.Management.Configuration.Processor.Exceptions.ImportModuleException:
Could not import module: Microsoft.VSCode.Dsc
---> System.Management.Automation.CmdletInvocationException: VSCode is not installed.
---> System.Management.Automation.RuntimeException: VSCode is not installed.
at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
--- End of inner exception stack trace ---
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
at
System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection1 input, PSDataCollection
1 output, PSInvocationSettings settings)
at
System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection
1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke()
at Microsoft.Management.Configuration.Processor.Runspaces.HostedEnvironment.ImportModule(String path)
at Microsoft.Management.Configuration.Processor.Set.ConfigurationSetProcessor.PrepareUnitForProcessing(ConfigurationUnitInternal unitInternal)
--- End of inner exception stack trace ---
at Microsoft.Management.Configuration.Processor.Set.ConfigurationSetProcessor.PrepareUnitForProcessing(ConfigurationUnitInternal unitInternal)
at Microsoft.Management.Configuration.Processor.Set.ConfigurationSetProcessor.CreateUnitProcessor(ConfigurationUnit incomingUnit) 2024-09-27 09:34:33.355 [CONF] Configuration unit VSCodeExtension[install-csharp-dev-kit] failed with code 0x8a15c108 and error message: Could not import module: Microsoft.VSCode.Dsc
2024-09-27 09:34:33.356 [CLI ] Terminating context: 0x8a15c005 at C:__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\ConfigurationFlow.cpp:560
On Fri, Sep 27, 2024 at 9:24 AM Ryan @.***> wrote:
@darcydommer https://github.com/darcydommer,
Can you run winget configure <your path to 'dotnet_configuration.winget'> --verbose --logs and send me those logs. The one you sent before is only for winget --info
— Reply to this email directly, view it on GitHub https://github.com/microsoft/winget-dsc/issues/61#issuecomment-2379649014, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYPR7T7VRF3AGPMNQECMZ3ZYWBEZAVCNFSM6AAAAABO7KQHIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZZGY2DSMBRGQ . You are receiving this because you were mentioned.Message ID: @.***>
@darcydommer, thanks for sharing the logs.
Looking into it, the Microsoft.VSCode.Dsc module is throwing an error because it can't find the path to the vscode cli executable. more specifically, we are looking for these paths: https://github.com/microsoft/winget-dsc/blob/edbba7796fd007c33cd4f9be677dfa46bb6d9efa/resources/Microsoft.VSCode.Dsc/Microsoft.VSCode.Dsc.psm1#L12-L26
Can you share where your code.cmd
file is located? If it is a custom location, we will need to think of a smarter way to determine the install location rather than just relying on the default install paths for vscode.
Hi,
My OS is on my C drive and VSCode is installed on my D drive. Is that what you're asking?
Darcy
On Fri, Sep 27, 2024 at 9:48 AM Ryan @.***> wrote:
@darcydommer https://github.com/darcydommer, thanks for sharing the logs.
Looking into it, the Microsoft.VSCode.Dsc module is throwing an error because it can't find the path to the vscode cli executable. more specifically, we are looking for these paths: https://github.com/microsoft/winget-dsc/blob/edbba7796fd007c33cd4f9be677dfa46bb6d9efa/resources/Microsoft.VSCode.Dsc/Microsoft.VSCode.Dsc.psm1#L12-L26
Can you share where your code.cmd file is located? If it is a custom location, we will need to think of a smarter way to determine the install location rather than just relying on the default install paths for vscode.
— Reply to this email directly, view it on GitHub https://github.com/microsoft/winget-dsc/issues/61#issuecomment-2379685510, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYPR7SHZVUA7BQW75VRF6TZYWD6FAVCNFSM6AAAAABO7KQHIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZZGY4DKNJRGA . You are receiving this because you were mentioned.Message ID: @.***>
Hi, My OS is on my C drive and VSCode is installed on my D drive. Is that what you're asking? Darcy … On Fri, Sep 27, 2024 at 9:48 AM Ryan @.> wrote: @darcydommer https://github.com/darcydommer, thanks for sharing the logs. Looking into it, the Microsoft.VSCode.Dsc module is throwing an error because it can't find the path to the vscode cli executable. more specifically, we are looking for these paths: https://github.com/microsoft/winget-dsc/blob/edbba7796fd007c33cd4f9be677dfa46bb6d9efa/resources/Microsoft.VSCode.Dsc/Microsoft.VSCode.Dsc.psm1#L12-L26 Can you share where your code.cmd file is located? If it is a custom location, we will need to think of a smarter way to determine the install location rather than just relying on the default install paths for vscode. — Reply to this email directly, view it on GitHub <#61 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYPR7SHZVUA7BQW75VRF6TZYWD6FAVCNFSM6AAAAABO7KQHIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZZGY4DKNJRGA . You are receiving this because you were mentioned.Message ID: @.>
Yup that's very helpful thank you. Our current implementation assumes the default install locations for vscode. We'll need to work on extending the functionality to support custom install locations.
Hi,
Should I wait for the fix or is there a workaround to get me going?
Thanks, Darcy
On Fri, Sep 27, 2024 at 10:24 AM Ryan @.***> wrote:
Hi, My OS is on my C drive and VSCode is installed on my D drive. Is that what you're asking? Darcy … <#m-1417653771326148621> On Fri, Sep 27, 2024 at 9:48 AM Ryan @.> wrote: @darcydommer https://github.com/darcydommer https://github.com/darcydommer https://github.com/darcydommer, thanks for sharing the logs. Looking into it, the Microsoft.VSCode.Dsc module is throwing an error because it can't find the path to the vscode cli executable. more specifically, we are looking for these paths: https://github.com/microsoft/winget-dsc/blob/edbba7796fd007c33cd4f9be677dfa46bb6d9efa/resources/Microsoft.VSCode.Dsc/Microsoft.VSCode.Dsc.psm1#L12-L26 https://github.com/microsoft/winget-dsc/blob/edbba7796fd007c33cd4f9be677dfa46bb6d9efa/resources/Microsoft.VSCode.Dsc/Microsoft.VSCode.Dsc.psm1#L12-L26 Can you share where your code.cmd file is located? If it is a custom location, we will need to think of a smarter way to determine the install location rather than just relying on the default install paths for vscode. — Reply to this email directly, view it on GitHub <#61 (comment) https://github.com/microsoft/winget-dsc/issues/61#issuecomment-2379685510>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYPR7SHZVUA7BQW75VRF6TZYWD6FAVCNFSM6AAAAABO7KQHIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZZGY4DKNJRGA https://github.com/notifications/unsubscribe-auth/ALYPR7SHZVUA7BQW75VRF6TZYWD6FAVCNFSM6AAAAABO7KQHIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZZGY4DKNJRGA . You are receiving this because you were mentioned.Message ID: @.>
Yup that's very helpful thank you. Our current implementation assumes the default install locations for vscode. We'll need to work on extending the functionality to support custom install locations.
— Reply to this email directly, view it on GitHub https://github.com/microsoft/winget-dsc/issues/61#issuecomment-2379743576, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYPR7XZKZCPSGKVCZIOBODZYWIGVAVCNFSM6AAAAABO7KQHIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZZG42DGNJXGY . You are receiving this because you were mentioned.Message ID: @.***>
There is currently no workaround for that when using Microsoft.VSCode.DSC, unless you want to reinstall you VSCode using the default install locations in your OS drive mentioned above. You'll have to wait for a fix to get published.
@darcydommer To keep going please follow the instructions on the "Linux" tab. Looks like you have .NET 8 SDK and VS Code installed just fine, so you can start from step 3 to just grab the C# Dev Kit extension! Please let me know if you run into any issues and I can find a time for us to sync so I can walk you through it :)
Brief description of your issue
The original issue filed on this is over at dotnet/website-feedback:
Steps to reproduce
Steps at the original issue
Expected behavior
VSCode extension should have been installed
Actual behavior
Configuration unit failed
Environment