Closed ItsIgnacioPortal closed 1 month ago
@ItsIgnacioPortal can you provide the log files for the first image? You can run is -s pwsh -V
and then paste the log files from ~/.inshellisense/inshellisense.log
I've noticed that if I run pwsh.exe directly from the Run dialog, then cd into my user profile and then start inshellisense, the GUI does show up, albeit with the icons not loading correctly:
inshellisense.log
when I run ìs -s powershell -V
from a Windows Terminal powershell.exe
terminal: https://gist.github.com/ItsIgnacioPortal/ab06aeea542b22fcb4f4122e6f368eadinshellisense.log
when I run ìs -s pwsh -V
from pwsh.exe
: https://gist.github.com/ItsIgnacioPortal/f9bb9a5740d697086939a7e8abe2d86finshellisense.log
when I run ìs -s pwsh -V
from a Windows Terminal pwsh.exe
terminal: https://gist.github.com/ItsIgnacioPortal/3920355bfdc18edab8fcecad1675a41dFor testing, this is my Windows Terminal settings.json: https://gist.github.com/ItsIgnacioPortal/f1e7fb49f45794e7c3f13295b32a872a This is the font I use in all my Windows Terminal profiles: CaskaydiaCove NFM
So, let's recap:
powershell.exe
: https://gist.github.com/ItsIgnacioPortal/ab06aeea542b22fcb4f4122e6f368eadpwsh.exe
: https://gist.github.com/ItsIgnacioPortal/f9bb9a5740d697086939a7e8abe2d86fpwsh.exe
: https://gist.github.com/ItsIgnacioPortal/3920355bfdc18edab8fcecad1675a41dWhy is this ocurring?
@itsignacioPortal can you retry using the most recent release 0.0.1-rc.15
? It might fix your issues or at a minimum provide more information in the log files
I've installed IS 0.0.1-rc.15
but the problem seems to have persisted. Visually, it looks the same:
These are the IS logs in the new version (inshellisense v0.0.1-rc.15
):
inshellisense.log
when I run ìs -s powershell -V
from a Windows Terminal powershell.exe
terminal: https://gist.github.com/ItsIgnacioPortal/43f3eaad49d585f010811f6b1280eaceinshellisense.log
when I run ìs -s pwsh -V
from pwsh.exe
: https://gist.github.com/ItsIgnacioPortal/85f99d0f0708589125a3d9bca9b8a876inshellisense.log
when I run ìs -s pwsh -V
from a Windows Terminal pwsh.exe
terminal: https://gist.github.com/ItsIgnacioPortal/d357d1c63338f7088a583eea6b2bd034Looking at the logs with pwsh, it's saying your cursor is at PS C:\\Users\\User\\Github\\SecLists> git █push
. Is push
a suggestion from the shell? If so, that's definitely the issue and I can fix that.
Once I merge #253 into main, you can install using this command to make sure it's working ahead of the next release
npm uninstall @microsoft/inshellisense -g && git clone https://github.com/microsoft/inshellisense.git && cd inshellisense && npm install && npm run build && npm link
Looking at the logs with pwsh, it's saying your cursor is at
PS C:\\Users\\User\\Github\\SecLists> git █push
. Ispush
a suggestion from the shell? If so, that's definitely the issue and I can fix that.
Yes, push was a suggestion from the shell.
Once I merge #253 into main, you can install using this command to make sure it's working ahead of the next release
npm uninstall @microsoft/inshellisense -g && git clone https://github.com/microsoft/inshellisense.git && cd inshellisense && npm install && npm run build && npm link
That worked! The auto-completion is now working in the normal Powershell 7. But I need it to work in Powershell 7 with oh-my-posh. Do you know how I could do that?
(Yes, I have hello
as my terminal suffix in oh-my-posh)
is -s powershell -V
from a Windows Terminal Powershell 7 terminal: https://gist.github.com/ItsIgnacioPortal/057632746d7991f8b1c1dffc6e2bce29This is my oh-my-posh prompt: https://gist.github.com/ItsIgnacioPortal/176a07b7ecb18bc9fda7531e1655fd13
The issue isn't your hello suffix, it's the way we parse the prompt terminator. You have the console_title_template
set which appends to the end of your prompt. As a result, the prompt end is detected as the resolved {.HostName}
instead of hello
Can you try out the latest commit and let me know if it's working for you now?
That fix worked! Thank you.
Describe the bug The autocomplete shows a single suggestion and no GUI when using inshellisense in powershell 7 (pwsh):
In comparison, this is what it does in the old powershell:
To Reproduce Steps to reproduce the behavior:
"C:\Program Files\PowerShell\7\pwsh.exe" -nologo -ep bypass
is
Expected behavior I expected the GUI to show up and allow me to select from multiple suggestions.
Environment
is --version
:0.0.1-rc.14
v19.9.0