Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: npx / dragging text file doesnt work / opening editor doesnt work #28

Open
lightningRalf opened this issue Apr 24, 2024 · 1 comment

Comments

@lightningRalf
Copy link

Hello,
tried the following:
drag and drop text file:
image

file does not get recognized.
After installing Vim, and select vim, I get prompted:
image

I get the following error:

node:events:496
      throw er; // Unhandled 'error' event
      ^

Error: spawn vim ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:292:12)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn vim',
  path: 'vim',
  spawnargs: [ 'C:\\Users\\mjpa\\AppData\\Local\\Temp\\tmp-5732CcCCpU3Cl5f3.txt' ]
}

Node.js v20.12.1

Any help would be appreshiated.
I am tringing to add openai provider. But I need to get it to run first ;)

@hrishioa
Copy link
Owner

Yup it seems that the file isn't getting recognized. Can you try putting the file in a root drive (like C:\kasser-test.txt) and see if that fixes things? If it does that helps me understand where the problem is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants