Skip to content

vite 7.1.0 can't open files from error overlay #20563

@dominikg

Description

@dominikg

Describe the bug

__openInEditor middleware returns 500 error when clicking on error overlay links

Reproduction

https://stackblitz.com/edit/vitejs-vite-kw63yxez?file=src%2Fcounter.js,package.json,src%2Fmain.js&terminal=dev

Steps to reproduce

run npm i && npm run dev
open the dev server
edit counter.js so that it causes an error.
open the network debugger
click on the teal file link to counter.js in the error overlay
observe that the call to __openFileInEditor receives a 500 response

System Info

stackblitz

Used Package Manager

npm

Logs

This also affects plugins/frameworks calling __openFileInEditor for their own functionality, eg svelte-inspector.

downstream issue sveltejs/vite-plugin-svelte#1190

caused by update of launch-editor containing code that expects a full file:// url
https://github.com/yyx990803/launch-editor/pull/95/files#diff-dcbfbcbcd74f87cc32c59171c1ed004bb0f64a31a83e3a3b51c770e1201a547cR24

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    feat: devdev serverp3-downstream-blockerBlocking the downstream ecosystem to work properly (priority)regressionThe issue only appears after a new release

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions