ant-druha / intellij-powershell

Adds PowerShell language support to IntelliJ-based IDEs.
https://plugins.jetbrains.com/plugin/10249-powershell
Apache License 2.0
73 stars 20 forks source link

Issues with psedit in a remote session #163

Closed ForNeVeR closed 1 year ago

ForNeVeR commented 1 year ago

(Originally reported on BitBucket.)

When I enter a remote session and try to open a file with psedit, nothing happens.

I get in idea/rider log messages like: 11:42:53.145 | ERROR | TerminalTextBuffer | Attempt to get line out of bounds: -16 < 0

Using: powershell plugin 1.1.1 JetBrains Rider 2018.2 Build #RD-182.4231.193, built on August 21, 2018 Licensed to Anton Georgiev Subscription is active until June 22, 2019 JRE: 1.8.0_152-release-1248-b8 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0

More logging context is attached.

idea.log

ForNeVeR commented 1 year ago

I have been able to reproduce the issue in v1.1.1 (wasn't easy, because it's kinda hard to build and use the old versions; the build system had its quirks back in the days).

Somehow, this has been fixed by commit 789be533fac7c1a29086bf6c382aba66fe95a58f (update PSES), included into intelljj-powershell 2.0.0.

Thanks to this investigation, I was able to find a problem with the current PowerShell Terminal–related code, which I'll fix soon.