question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for Powershell desktop as a user configuration or additional Kernel choice

See original GitHub issue

When attempting to install and import the powershell module BcContainerHelper I get the following error during import stage

Install-Module BcContainerHelper -force Import-Module BCContainerHelper

Import-Module: Line | 2 | Import-Module BCContainerHelper | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | The script 'BcContainerHelper.psm1' cannot be run because it contained a "#requires" statement for PowerShell editions 'Desktop'. The edition of PowerShell that is required by the script does not match the currently running PowerShell Core edition.

I believe the issue is because .net interactive uses the cross platform powershell core edition and the module I’m attempting to use requires the desktop edition of powershell.

The same commands work successfully in Azure Data Studio which is using the Powershell Desktop Kernel

Adding support for Powershell Desktop edition either as a user configuration or as an additional Kernel choice would solve the problem.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jonsequiturcommented, May 11, 2021

A separate PowerShell kernel that can be installed via a NuGet package might be the way to go here. We want to keep the number of pieces that are in the core relatively small, so functionality that won’t work cross-platform would be better as an extension.

1reaction
jonsequiturcommented, May 16, 2021

Installing new .NET Interactive subkernels via NuGet is supported today. You can see a very simple with our support for Mermaid and a more complex example with our support for T-SQL.

These aren’t standalone Jupyter kernels, though they become available via .NET Interactive’s Jupyter support. To include a pre-existing Jupyter kernel, this same mechanism could be used to create a proxy for it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding SpeculationControl PowerShell script output
This line tells you whether an additional performance optimization is enabled for kernel VA shadow. If it is True, kernel VA shadow is...
Read more >
Advanced settings configuration in WSL
This guide will cover each of the settings options, when to use each file type, where to store the file, sample settings files...
Read more >
Install and Use Windows PowerShell Web Access
On the Windows desktop, right-click Windows PowerShell on the taskbar, and then click Run as Administrator. On the Windows Start screen, right- ...
Read more >
Manual installation steps for older versions of WSL
Step by step instructions to manually install WSL on older versions of Windows, rather than using the wsl install command.
Read more >
Set up a WSL development environment
A step-by-step guide to the best practices for setting up a WSL development environment. Learn how to run the command to install the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found