Giter Club home page Giter Club logo

Comments (9)

lisaguthrie avatar lisaguthrie commented on August 27, 2024

Thanks for reporting this issue. Our dev team is looking into it.

from dev-spaces.

YuzorMa avatar YuzorMa commented on August 27, 2024

When you run with the '--keep-alive' flag, azds relies on a long-running background process to keep the ports and synchronization working. This works from within Visual Studio or VS Code because those applications run the background task for you.

Are you running from within VSCode? What scenario are you trying to achieve?

from dev-spaces.

timjroberts-inty avatar timjroberts-inty commented on August 27, 2024

Yes, I've run the Prepare Dev Spaces command from within VS Code, and I can see that it creates a launch.json and a tasks.json file. I can also see that the tasks.json file contains a pre-launch task to run azds up with the keep alive and await exec options. Is that the long running process you talk about? Or is there another process.

from dev-spaces.

YuzorMa avatar YuzorMa commented on August 27, 2024

There is another process that is launched automatically by the Dev Spaces VS Code extension. The pre-launch task '--keep-alive' flag actually tells azds to use the background process as well. If that background task is not running, then the whole thing fails - which is what you are seeing.

We have found a bug where the background process may be exiting early if no controller has been selected before launching VS Code. We are working on a fix for that bug, but can you try the following workaround:

  1. Close all VS Code instances
  2. Use the az CLI to select a controller (az aks use-dev-spaces)
  3. Launch VS Code again

from dev-spaces.

sushilraje avatar sushilraje commented on August 27, 2024

I faced the exact same error. Also, I followed the steps mentioned in the previous comment, but it doesn't work.

I also tried removing the --keep-alive flag, but doesn't help. Any ideas on what might be happening?

OS: mac

from dev-spaces.

YuzorMa avatar YuzorMa commented on August 27, 2024

@sushilraje What version of the AZDS CLI are you using? Just in case it's related to the issue above, after you close all VS Code instances, can you make sure that there are no remaining azds processes running? Then proceed with steps 2 and 3.

from dev-spaces.

sushilraje avatar sushilraje commented on August 27, 2024

What version of the AZDS CLI are you using?

I am running the azds with foll. version 0.1.20180919.5.

Just in case it's related to the issue above, after you close all VS Code instances, can you make sure that there are no remaining azds processes running? Then proceed with steps 2 and 3.

Will give it a try and get back

from dev-spaces.

spboyer avatar spboyer commented on August 27, 2024

This is still an issue, just replicated using the .NET Core walk through. Repair steps from @YuzorMa do not fix this. Can we get some focus on this issue?

from dev-spaces.

philon-msft avatar philon-msft commented on August 27, 2024

Apparently this can be caused by a bug in an older version of the AZDS CLI. @spboyer was able to fix the issue by running "az aks use-dev-spaces --update" to install the latest CLI.

from dev-spaces.

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.