You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our project we use a git hook to compile several cython files when pulling from git. This is automated with an environment variable pointing to the local powershell.exe installed with windows. This automated workflow works as intended. During programming, we need to sometimes invoke cython compilation by hand, thus triggering the ps1 script without the provided environment variable. This starts the powershell extension which is apparently not a subprocess of the local installation of powershell and tries to compile the cython files. In previous versions, this was so issue. With the recent version, the extension is not able to detect installed C++ compilers on the system, thus resulting in an error. The compilation process with other shells is possible and works as intended. We isolated the problem down to this extension.
PowerShell Version
Name Value---- -----PSVersion 7.4.6PSEdition CoreGitCommitId 7.4.6OS Microsoft Windows 10.0.22631Platform Win32NTPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}PSRemotingProtocolVersion 2.3SerializationVersion 1.1.0.1WSManStackVersion 3.0Name : Visual Studio Code HostVersion : 2024.4.0InstanceId : c42d8070-1fcc-4865-8b53-45bb9d0d7ee8UI : System.Management.Automation.Internal.Host.InternalHostUserInterfaceCurrentCulture : de-DECurrentUICulture : de-DEPrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxyDebuggerEnabled : TrueIsRunspacePushed : FalseRunspace : System.Management.Automation.Runspaces.LocalRunspace
Visual Studio Code Version
1.96.2fabdb6a30b49f79a7aba0f2ad9df9b399473380fx64
Extension Version
empty (Maybe issue lies here?)
Steps to Reproduce
Compile cython files with powershelll extension.
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
When you say you invoke a ps1 script, how are you doing it? Starting a ps1 script from a process should make it a child process, the fact it's ending up in the extension window implies you are using a vscode api command or similar to launch the script.
Prerequisites
Summary
In our project we use a git hook to compile several cython files when pulling from git. This is automated with an environment variable pointing to the local powershell.exe installed with windows. This automated workflow works as intended. During programming, we need to sometimes invoke cython compilation by hand, thus triggering the ps1 script without the provided environment variable. This starts the powershell extension which is apparently not a subprocess of the local installation of powershell and tries to compile the cython files. In previous versions, this was so issue. With the recent version, the extension is not able to detect installed C++ compilers on the system, thus resulting in an error. The compilation process with other shells is possible and works as intended. We isolated the problem down to this extension.
PowerShell Version
Visual Studio Code Version
Extension Version
empty (Maybe issue lies here?)
Steps to Reproduce
Compile cython files with powershelll extension.
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: