skip to Main Content

I Recently brought a MacBook Air m2 for development. I am facing issue in running java code through vscode if I run the same code through terminal command then it running properly

enter image description here

3

Answers


  1. From what I have read, this is an error that is often received by Mac users. Visual Studio has stated that they will not address this issue (unless convinced). What I can suggest is to restart your computer.

    You can read from here what says visual studio and more information

    note: this problem is not caused by java

    Login or Signup to reply.
  2. This is a VS bug with mac as in the opened issue, try disabling VPN so you have the same IP address as suggested here:

    https://github.com/microsoft/vscode/issues/130111#issuecomment-918665284

    As mentioned also VS will no address the issue for now, if problem still persists maybe you can consider changing to new IDE 🙂

    Login or Signup to reply.
  3. I ran into this same issue! However, after some debugging, it turned out my loopback interface was down. To fix this, I ran

    $ sudo ifconfig lo0 alias 127.0.0.1 up
    

    See if that helps.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search