GithubHelp home page GithubHelp logo

Comments (10)

LoTwT avatar LoTwT commented on June 10, 2024 2

After looking around the codebase of launch-editor-middleware, I find that the command to open VSCode on macOS is code. It means that developers must install the command code in PATH. Unfortunately, I didn't set it well.

How to set:

  • open a VSCode
  • use Shift + Command + P open All Commands panel
  • input Shell Command: Install 'code' command in PATH and select
  • install successfully

After setting it, I successfully open the target file in the VSCode.

Hi, @titibudala . Could you try the above solution? 😊

from devtools-next.

LoTwT avatar LoTwT commented on June 10, 2024 1

Unfortunately, I can't reproduce this issue, so we need your help to test it. The capabilities of our openInEditor feature are supported by Vite built-in.

Can you test this Vite feature? That will help us to find out if this is an upstream issue. Thank you.

Thanks.

I tried the URL http://localhost:5173/__open-in-editor?file=package.json manually. It comes into the same error. I will try to find the problem myself locally.

from devtools-next.

webfansplz avatar webfansplz commented on June 10, 2024 1

I'll mention it in the document, also be related to #125

from devtools-next.

titibudala avatar titibudala commented on June 10, 2024 1

Yesss! That was it @LoTwT, thank you! 🫡

from devtools-next.

alexzhang1030 avatar alexzhang1030 commented on June 10, 2024

/cc @webfansplz Does package.json should be here?

from devtools-next.

webfansplz avatar webfansplz commented on June 10, 2024

/cc @webfansplz Does package.json should be here?

Yeah, I think it makes sense to show it.

from devtools-next.

titibudala avatar titibudala commented on June 10, 2024

Same configuration (mostly) and same issue as @LoTwT

Alt Text

from devtools-next.

alexzhang1030 avatar alexzhang1030 commented on June 10, 2024

@LoTwT Can you show your real file path and the incorrect file path of the assets page? You can hover the file path row to get the details.

from devtools-next.

LoTwT avatar LoTwT commented on June 10, 2024

@LoTwT Can you show your real file path and the incorrect file path of the assets page? You can hover the file path row to get the details.

The filepath on the assets page:

image

The filepath copied in VSCode: /Users/caoyujie/codes/vite-assets/package.json.

They are the same indeed.

from devtools-next.

alexzhang1030 avatar alexzhang1030 commented on June 10, 2024

Unfortunately, I can't reproduce this issue, so we need your help to test it. The capabilities of our openInEditor feature are supported by Vite built-in.

Can you test this Vite feature? That will help us to find out if this is an upstream issue. Thank you.

from devtools-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.