Lens: Lens spawns kubectl exec incorrectly on Windows

Created on 4 May 2020  路  6Comments  路  Source: lensapp/lens

When opening a shell on a container, Lens opens a Powershell terminal, and calls exec kubectl exec [...] which fails as below:

image

Invoking the command without the prepended exec works fine.

Lens 3.4.0-beta2, Windows 10 1909 (build 18363.778).

arewindows bug

Most helpful comment

Still happening in 3.4.0 release version.

All 6 comments

Does this still happen? Lens should only prepend exec if process.platform !== "win32".

@jakolehm I was writing some windows docs for clients on the newest lens version and this happens in powershell for sure, which is what he is showing above. So most likely regular command prompt is good but if you have PS as default terminal then this will happen.

Still happening in 3.4.0 release version.

@RiFi2k is there a way to make command prompt as the default from powershell? It's really confusing for some of our windows developers.

@nevalla Dashboard is executed within webview sandbox and it does not have access to process.platform. Maybe we can use window.navigator.platform here.

Works in 3.5.0-beta.1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dev-w0olf picture dev-w0olf  路  3Comments

leemorton picture leemorton  路  3Comments

magusd picture magusd  路  4Comments

guilhem picture guilhem  路  4Comments

ocdi picture ocdi  路  4Comments