Skip to content

Cannot find module extension.js #147

@tirohia

Description

@tirohia

Attempting to build the void extension in vscodium on Mint. I am assuming it should work the same as building with vscode. Happy to for this to be closed and trashed if I've got this fairly basic assumption wrong. I am assuming that the vscode engine version of ^1.92.0 referred to in the extensions package.json should mean that version 1.95.1 of codium should work. I could be entirely wrong on that though.

After git clone, I'm opening the extensions/void directory in a new code workspace. I'm do npm install from a terminal in that workspace, that works - though there are a bunch of warnings they mostly look to be concerned with linting. I do very little with node, so I have no idea if those are relevant or not, I suspect not, but I have attached them in a file.

npmInstallWarnings.txt

The npm build I can do through the run/debug interface, or the terminal. This part also works, generates this:

> void@0.0.1 build
> rimraf dist && node build/build.js

converting  src/webviews/sidebar/index.tsx  -->  dist/webviews/sidebar/index.js
converting  src/webviews/ctrlk/index.tsx  -->  dist/webviews/ctrlk/index.js
converting  src/webviews/diffline/index.tsx  -->  dist/webviews/diffline/index.js
converting  src/webviews/styles.css  -->  dist/webviews/styles.css

Which ever way I do the build, running the extension starts a new instance of code, but generates this error, with the void chat never fully resolving, i.e. it hangs.

Activating extension 'void.void' failed: Cannot find module '/home/ben/workspace/void/extensions/void/out/extension/extension.js'
Require stack:
- /app/share/codium/resources/app/out/vs/workbench/api/node/extensionHostProcess.js.

Which is remarkably similar to #118, which has apparently been fixed by #119, with the proviso that that is referring to Mac rather than Linux. The git clone is fresh, if the fix for #119 has been merged into main I should have it.

Running Linux Mint 21.3 Virginia
Kernel: 5.15.0-125-generic x86_64
VSCodium 1.95.1
Nodejs: 20.18

Happy to go digging for any else that might be relevant, though the chances of me being able to find things without guidance as to where and how are 50:50.

Thanks.
Ben.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions