Closed qokelate closed 5 months ago
app is terminal?iterm2?
It is recommended to add the app information.
I think you can try using node v20.
app is terminal?iterm2?
It is recommended to add the app information.
I have the same problem, Hyper and Gnome terminals. Fish, Bash and zsh.
app is terminal?iterm2?
It is recommended to add the app information.
I think you can try using node v20.
I found this https://stackoverflow.com/questions/45964178/referenceerror-window-is-not-defined-at-object-anonymous-node-js
, so i add const window = globalThis;
to js file, got issue
$> is
inshellisense session [live]
__is_update_cwd:1: command not found: __vsc_escape_value
so it only working under vscode?
btw: app is iterm2
Same issue here.
The exception was thrown inside the dependency xterm-headless
https://github.com/xtermjs/xterm.js/blob/HEAD/src/common/TaskQueue.ts#L145
For some reason the isNode
variable was false
so that xterm-headless
tried to access the browser only global object window
which is not available in node.
The isNode
is set here
https://github.com/xtermjs/xterm.js/blob/master/src/common/Platform.ts#L17
The code is correct. process
is a nodejs only global object so that isNode
should be set to true
. There must be some other weird issues. I don't want to investigate it in depth and my first inshellisense experiment ends here.
Lower your node version,node 21+ is not support
Lower your node version,node 21+ is not support
https://github.com/microsoft/inshellisense?tab=readme-ov-file#requirements
Might want to update requirements.
Describe the bug
To Reproduce Steps to reproduce the behavior:
is
commandExpected behavior A clear and concise description of what you expected to happen.
Environment
is --version
:Additional context Add any other context about the problem here.