Giter Site home page Giter Site logo

Comments (6)

sestinj avatar sestinj commented on June 3, 2024 1

oh wait! Actually I found a solution: const execSync = (await require("child_process")).execSync;

Using require instead of import worked for me.

Everything else I said above is still true, I hope to let you just use normal imports within the next couple of days

from continue.

frblondin avatar frblondin commented on June 3, 2024 1

I confirm that provided workaround (with require) works. Thanks for working on using NodeJS in all cases!

I suggest to keep this issue open until you complete this work.

from continue.

sestinj avatar sestinj commented on June 3, 2024 1

@frblondin The work in moving to NodeJS is now done and available in pre-release 0.9.47.

I've confirmed that I could use import { execSync } from "child_process"; at the top of the file, but I'll wait to close this issue until I know it's good for you as well

from continue.

frblondin avatar frblondin commented on June 3, 2024 1

I confirm. Brillant!

from continue.

sestinj avatar sestinj commented on June 3, 2024

@frblondin The console output in developer tools actually does show logs from NodeJS as well, so nothing wrong here.

As for the other errors I'm running myself and will update in a minute, but looks related to just some mismatch between environments in debug vs. extension modes

from continue.

sestinj avatar sestinj commented on June 3, 2024

Ok same things you said happened when I tried. Did a bit of digging around, and it looks like VS Code, or more likely Electron itself, is using node:vm and not setting this parameter. This is something out of our control.

Luckily I'm working on a fix so you don't have to do dynamic imports (config.ts will run only in NodeJS, not the browser). I plan to spend the rest of today on shipping our first version of tab-autocomplete, but if you're willing to give me another day or two this will be done and there shouldn't be any problems.

And one other thing, the LLM will only see the content that you specify, so I would change to content: commit in the objects you are returning from parseGitLog.

Screen Shot 2024-01-30 at 10 50 30 AM

from continue.

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.