Giter Site home page Giter Site logo

Comments (6)

alanhg avatar alanhg commented on June 8, 2024

app is terminal?iterm2?

It is recommended to add the app information.

I think you can try using node v20.

from inshellisense.

Lippiece avatar Lippiece commented on June 8, 2024

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.

from inshellisense.

qokelate avatar qokelate commented on June 8, 2024

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

from inshellisense.

CarterLi avatar CarterLi commented on June 8, 2024

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.

from inshellisense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.