GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — lint,fmt: Deprecate the wrapper bin for stable IDE support · Issue #1557 · voidzero-dev/vite-plus

lint,fmt: Deprecate the wrapper bin for stable IDE support #1557

New issue
Copy link
New issue
Copy link
Closed
#2672
Closed
lint,fmt: Deprecate the wrapper bin for stable IDE support#1557
#2672
Copy link
Assignees
fengmk2leaysgur
Milestone
RC

Description

@leaysgur
leaysgur
opened on May 12, 2026
Issue body actions

Currently, lint|fmt IDE support for Vite+ is implemented as follows:

  • When the vite-plus package is installed locally, the package manager places bin/oxlint|fmt
    • These are special binaries with vite.config.ts support enabled, distinct from the standard oxlint|fmt binaries
  • Individual editor extensions then reference these binaries and launch --lsp
    • The discovery process for these binaries should remain the same as in non-Vite+ projects

However, some issues have also come to light.

  • When using npm or yarn as the package manager, the custom binary is not installed at all!
    • vite-plus bins conflict with oxfmt and oxlint bins #1482
    • pnpm and bun works
  • Installing oxlint|fmt separately overwrites the custom binary
    • IMO: This should be triaged as a separate issue, since this overrides vp lint|fmt too
  • When you try to setup editor by yourself, it's unclear to know what should be used
    • lint,fmt: Non LSP aware editor support #979
  • The priority of the method VSCode extension uses to search the bin/ was lower than that of require.resolve(), causing it to fail to locate the custom binary when other workspaces were open
    • Fixed by: fix(vite-plus): search for node_modules/.bin before resolving to native package oxc-project/oxc-vscode#223

Proposed solution

Following our team meeting, we would like to proceed as follows.

  • Deprecate the wrapper binary
  • Editors that support LSP should use vp lint|fmt --lsp instead
  • Editors that do not use LSP should use commands like vp fmt --stdin-filepath

Tasks

  • Stop writing VITE+... header message to stdout for these usecases @fengmk2
    • vp lint --lsp
    • vp fmt --lsp, vp fmt --stdin-filepath
  • Define a standardized way to determine "whether a project is a Vite+ project or not" @fengmk2
    • docs(rfc): Vite+ Project Detection for Editor Extensions #1614
  • Update editor extensions to detect Vite+ project and use vp lint|fmt --lsp
    • feat: support Vite+ detection and per-tool source selection oxc-project/oxc-vscode#384
    • feat: support Vite+ detection and per-tool sources oxc-project/oxc-zed#259
    • feat: support Vite+ detection and per-tool sources oxc-project/oxc-intellij-plugin#583
    • feat: support Vite+ detection and per-tool source selection oxc-project/coc-oxc#247
  • Remove wrapper bin
    • fix(cli): remove oxlint and oxfmt bin wrappers #2672
  • Update docs?
Reacted by Max
Reacted by JongKyung Lee , Nicolas Stepien and Alexander Chehovskii

Activity

Next
  1. leaysgur commented on May 12, 2026

    @leaysgur
    leaysgur
    on May 12, 2026
    ContributorAuthor
    More actions

    @fengmk2 Are we getting this right?

    @Sysix @nrayburn-tech Any thoughts on this?

  2. fengmk2 commented on May 12, 2026

    @fengmk2
    fengmk2
    on May 12, 2026
    Member
    More actions

    @leaysgur LGTM 💯

    You can directly assign me any tasks that need help.

    Reacted by Yuji Sugiura
  3. fengmk2
    assigned
    fengmk2
    and
    leaysgur
    on May 12, 2026
  4. Sysix commented on May 12, 2026

    @Sysix
    Sysix
    on May 12, 2026
    More actions

    Editors that support LSP should use vp lint|fmt --lsp instead

    Instead of node node_modules/.bin/oxlint, should we target node node_modules/.bin/vp?

    Running vp natively could be tricky on VS Code extension. Currently, there are problems detecting node with some non-standard setups, like mise and nvm. Running VS Code via CLI or via GUI can change the context too (oxc-project/oxc-vscode#255).

  5. leaysgur commented on May 13, 2026

    @leaysgur
    leaysgur
    on May 13, 2026
    ContributorAuthor
    More actions

    Instead of node node_modules/.bin/oxlint, should we target node node_modules/.bin/vp?

    That is my understanding. So, we need to resolve node and oxlint|fmt|vp separately, right?

    EDIT: One more question, what was the motivation to resolve node itself instead of leaving it to shebang in bin?

    @fengmk2 Please let me know if you have any thoughts on this. Also, it looks like we need to define a standardized way to determine "whether a project is a Vite+ project or not".

  6. nrayburn-tech commented on May 13, 2026

    @nrayburn-tech
    nrayburn-tech
    on May 13, 2026
    More actions

    No major concerns from me.
    IntelliJ doesn’t have the same user base as VS Code, so it doesn’t support as many variations as Sysix has to try and figure out.
    The Zed extension API is very limited which is always a concern if anything new needs to be introduced, but I don’t think this change should be a problem there.

    For your question about whether a project is a Vite+ project or not, what context are you trying to answer that in? The existence of the package in the package.json file tells us that a project is Vite+ (some nuance here with different package managers and transitive dependencies, but nothing special). This isn’t typically an issue to solve at the plugin level, but maybe you’re trying to get that information in a different context so that’s not always helpful.

  7. leaysgur commented on May 13, 2026

    @leaysgur
    leaysgur
    on May 13, 2026
    ContributorAuthor
    More actions

    Thank you!

    The reason I brought up the Vite+ project detection was due to these questions:

    • It's up to the user to decide which directory in a repo as the LSP workspace, indeterminate
    • Even if there is a package.json in that directory, we don't know if it's the root package.json or not
    • Even if we search-up for a package.json, what would be considered the "root marker"?
    • Or require.resolve('vite-plus') or something?

    If these aren't actually issues, then my concerns were unfounded. 🙈

  8. nrayburn-tech commented on May 13, 2026

    @nrayburn-tech
    nrayburn-tech
    on May 13, 2026
    More actions

    I see. I do think those can be problems, but I assume (big assumption) they’re solved already within the plugins. The same issues exist for Oxfmt/Oxlint that now exists for Vite+. Each plugin could be solving this completely differently though, which could provide a slightly different experience.

    Reacted by Yuji Sugiura
  9. fengmk2 commented on May 13, 2026

    @fengmk2
    fengmk2
    on May 13, 2026
    Member
    More actions

    It looks like we need to define a standardized way to determine "whether a project is a Vite+ project or not"

    @leaysgur Let me think about this question. I will provide a standard solution. I understand that not only the oxc extension needs this logic handling, but Vite+ itself also needs this in it's migrate command.

  10. leaysgur commented on May 13, 2026

    @leaysgur
    leaysgur
    on May 13, 2026
    ContributorAuthor
    More actions

    Thank you, please!
    Also, may I ask you to handle VITE+ ... message fixes? 🙏🏻

    Reacted by MK (fengmk2)
  11. fengmk2 commented on May 13, 2026

    @fengmk2
    fengmk2
    on May 13, 2026
    Member
    More actions

    Thank you, please! Also, may I ask you to handle VITE+ ... message fixes? 🙏🏻

    Sure, I will handle it too.

    Reacted by Yuji Sugiura
  12. Sysix commented on May 13, 2026

    @Sysix
    Sysix
    on May 13, 2026
    More actions

    That is my understanding. So, we need to resolve node and oxlint|fmt|vp separately, right?

    Yes. The oxlint/fmt/vp part is easy. The node or vp will be difficult. I learned this week that VS Code (electron app) are loading different envs. Maybe something like oxc-project/oxc-vscode#261 will help 🤞

    EDIT: One more question, what was the motivation to resolve node itself instead of leaving it to shebang in bin?

    Can't remember the right reason, but every platform does handle things differently + the shell problems below:

    Little summary from ChatGPT 🤖:

    A few historical accidents stacked together:

    • terminals existed before GUIs
    • remote logins existed before desktop sessions
    • shells were originally for humans, not app environments
    • every shell added its own startup semantics
    • distros and OS vendors patched behavior differently
    • developer tools started abusing shell init files as plugin systems

    So now:

    • GUI apps inherit one environment
    • terminals synthesize another
    • shells mutate state dynamically
    • toolchains inject themselves into startup scripts
    • Electron apps sit awkwardly between desktop app and terminal app
  13. leaysgur commented on May 13, 2026

    @leaysgur
    leaysgur
    on May 13, 2026
    ContributorAuthor
    More actions

    Got it, thanks. 🥹

    Anyway, I'll let both of you know here once the preliminary tasks (by MK) are complete.

    Reacted by Alexander S.
  14. fengmk2
    marked this as blocking on May 14, 2026
    • follow-up: migrate users toward lazyPlugins to avoid eager plugin side effects #1580
  15. 22 remaining items

  16. fengmk2
    added a commit that references this issue on May 18, 2026

    docs(rfc): expose installed vite-plus version for LSP gating

    351309b
  17. fengmk2 commented on May 18, 2026

    @fengmk2
    fengmk2
    on May 18, 2026
    Member
    More actions

    @Sysix @nrayburn-tech https://github.com/voidzero-dev/vite-plus/pull/1614/changes a standardized way to determine "whether a project is a Vite+ project or not" RFC, please help review and provide any feedback or suggestions. 💌

  18. fengmk2
    added this to the Beta milestone on May 18, 2026
  19. fengmk2
    added 4 commits that reference this issue on May 19, 2026

    fix(cli): suppress VITE+ header for lint/fmt LSP and stdin flows (#1619)

    65f850b

    docs(rfc): add "Vite+ Project Detection for Editor Extensions"

    5159291

    docs(rfc): correct marker non-targets — .vite-hooks is real, .vp-root…

    192c196

    docs(rfc): expose installed vite-plus version for LSP gating

    2eae28b
  20. Stanzilla commented on May 20, 2026

    @Stanzilla
    Stanzilla
    on May 20, 2026
    More actions

    I'd rather see the project move this direction oxc-project/oxc#22539 to avoid all this extra headache

    Reacted by mikkelal
  21. fengmk2
    modified the milestones: Beta, RC on Jul 6, 2026
  22. fengmk2
    marked this as blocking on Sep 11, 2026
    • vite-plus bins conflict with oxfmt and oxlint bins #1482
  23. leaysgur commented on Sep 17, 2026

    @leaysgur
    leaysgur
    on Sep 17, 2026
    ContributorAuthor
    More actions

    @fengmk2 @Sysix @nrayburn-tech
    I hesitated to write essentially the same thing across four separate IDE PRs, and since everyone involved is gathered here, I'll leave my comment here instead.

    (Resolving this issue is also necessary for the upcoming VP 1.0 release, so I'd really appreciate your help... meaning it would be a huge help if you could review PRs. 🙏🏻 (though of course, after your vacation!))


    First of all, in the current PR, nested config support is forcibly disabled on each IDE side, but I'm thinking we should do it collectively for both CLI and LSP on the Oxapps side.

    As for the unified behavior in VP mode, it will only use root find-up, which applies to both CLI and LSP usage.

    This will also help #2698

    NOTE:

    • Oxapps do not have the concept of a project root, so some edge cases may still exist
      • If no config found even in project root?
    • There is still the risk (known issue) that if a config file containing .lint|fmt is placed somewhere other than the project root
      • and it is detected as the root depending on the CLI's CWD or the LSP workspace, that config file will be used
    • Moving away from specifying -c in the CLI to align the behaviors of the CLI and LSP is a separate topic

    PRs for IntelliJ and VSCode partially include changes (with different approaches) to prevent the VP mode LSP and the standard LSP from conflicting.
    My understanding is that this only partially resolves the issue previously reported for VSCode as oxc-project/oxc-vscode#145.
    (Zed and CoC are structurally unaffected by this issue in the first place.)

    While we need to decide whether to introduce the complete implementation at this stage, I think we at least need to reach a consensus on the direction?

    In VS Code, features like SaveAll and the Problems panel could still end up running with the wrong LSP, and the intended config files won't even be recognized in the first place.


    UPDATE:

    • The previous PRs are a bit large, and there is less time than expected until the v1-rc release date
    • v1-rc, with the bin wrapper removed, has already been released, which is affecting early adopters who updated quickly
      • Formatter never starts in Vite+ projects: extension looks for node_modules/.bin/oxfmt, which Vite+ 1.0 no longer installs oxc-project/oxc-vscode#401
      • Failed to run oxlint. Click to show error. in Zed Editor oxc-project/oxc-zed#266

    For these reasons, I am planning to recreate a PR with a minimal scope and merge relatively soon.

    Reacted by MK (fengmk2)
  24. fengmk2
    closed this as completedin #2672on Sep 21, 2026
  25. fengmk2
    added a commit that references this issue on Sep 21, 2026

    fix(cli): remove oxlint and oxfmt bin wrappers (#2672)

    This issue will close once commit 476ee7c is merged into the 'main' branch.
    476ee7c
  26. graphite-app
    added a commit that references this issue on Sep 21, 2026

    feat(oxlint,oxfmt): do not discover nested config in Vite+ mode (#26763)

    415b742
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @fengmk2
    fengmk2
  • @leaysgur
    leaysgur

Labels

No labels
No labels

Type

No type

Fields

Priority

High

Projects

No projects

    Milestone

    • RC

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.