Skip to content

vim plugin preupgrade-agent cannot generate cli.js #2768

@Sma1lboy

Description

@Sma1lboy

Bug Report: Tabby Vim Plugin Agent Update Issue

Describe the bug

When attempting to update the agent in the Tabby Vim plugin using pnpm upgrade-agent, the process fails with an error indicating that the file ../tabby-agent/dist/cli.js doesn't exist. Even after running pnpm preupgrade-agent to build the tabby-agent, the required file is still not generated.

Steps to reproduce

  1. Attempted to run pnpm upgrade-agent in the Tabby Vim plugin directory
  2. Received error: Cannot copy ../tabby-agent/dist/cli.js: the file doesn't exist
  3. Ran pnpm preupgrade-agent to build the tabby-agent
  4. The cli.js file was still not generated in the expected location

Build output

After running pnpm preupgrade-agent, the following build output was observed:

[LSP-PROTOCOL] DTS ⚡️ Build success in 1015ms
[LSP-PROTOCOL] DTS dist/protocol.d.ts 25.47 KB
[LSP-BROWSER] ESM dist/browser/index.mjs     661.85 KB
[LSP-BROWSER] ESM dist/browser/index.mjs.map 2.78 MB
[LSP-BROWSER] ESM ⚡️ Build success in 2721ms
[LSP-NODE] CJS dist/node/fsevents-X6WP4TKM.node 159.79 KB
[LSP-NODE] CJS dist/node/index.js               1.40 MB
[LSP-NODE] CJS dist/node/index.js.map           5.65 MB
[LSP-NODE] CJS ⚡️ Build success in 2718ms
[LSP-PROTOCOL] CJS dist/protocol.js 6.16 KB
[LSP-PROTOCOL] CJS ⚡️ Build success in 16ms
[LSP-PROTOCOL] DTS Build start

Information about your GPU

Apple Metal

Additional context

  • The expected cli.js file is not present in the dist directory after the build process.
  • The build process appears to complete successfully, but doesn't generate the required cli.js file.
  • This issue is preventing the successful update of the agent in the Tabby Vim plugin.

Environment

  • Operating System: MacOs
  • Vim version: 9.0.2142
  • Node.js version: v21.7.1
  • pnpm version: 9.1.0

Questions

  1. Is there a specific reason why the cli.js file is not being generated during the build process?
  2. Are there any additional steps or configuration needed to ensure the cli.js file is created?
  3. Is there an alternative method to update the agent in the Tabby Vim plugin?

or should I directly PR to tabby-vim repo?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions