GithubHelp home page GithubHelp logo

Comments (4)

KyleAMathews avatar KyleAMathews commented on August 26, 2024

Oh just noticed this also broke the develop server which was also running. Which is probably something we need to fix as we could probably detect this and die and restart (maybe?).

from guppy.

joshwcomeau avatar joshwcomeau commented on August 26, 2024

Hi Kyle! Thanks for checking Guppy out, glad you enjoyed it :D It's still super early days, but I'm excited to see where it goes from here.

There's some general weirdness with trying to do things while deps are installing (tracked in #33). My current not-very-great solution is to disable all dependency actions while one is in progress (since yeah trying to install a dependency while one is already installing will fail, as the package.json is currently write-locked). I could extend that solution to disable tasks while dependencies are installing.

It's very odd that it crashed the dev server! I don't remember running into that. I'll see if I can reproduce and follow-up if I can't for more info.

from guppy.

joshwcomeau avatar joshwcomeau commented on August 26, 2024

Alright, finally had some time to dig into this!

I wasn't able to reproduce this error. I tried the following:

  • Create a new Gatsby project
  • Start the development server
  • Start installing a new dependency (hello)
  • While it was installing, start a build

I repeated this a couple times with different dependencies (redux, lodash), as well as tried other things like formatting, and stopping/starting the dev server during installation.

@KyleAMathews if you can reproduce, can you share what the build failure + dev server crash were? For the dev server crash, I think we should be able to intercept that error and trigger a restart. For the build failure, we can just append additional error logs, something like "This may have failed because a dependency install was in progress. Please try again once the dependency installation has completed".

from guppy.

joshwcomeau avatar joshwcomeau commented on August 26, 2024

Ah, so I was actually able to replicate the build failure:

screen shot 2018-09-14 at 8 02 31 pm

It's disguised as a success, so I probably didn't notice it in my earlier testing.

It should be an easy fix; disable builds while there's an active dependency queue for the project. Will tackle shortly.

(have not been able to replicate the dev-server crash 🤔)

from guppy.

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.