generator-jhipster: "jhipster upgrade" not working properly

As we have basically 4 duplicate tickets on the JHipster upgrade sub-generator, I’m closing #5881 #5869 #5811 #5649 in favor of this new “meta ticket”.

It’s basically all the same issue: on some systems, the upgrade sub-generator cannot update the JHipster version. Typically, this is because it doesn’t have the right to do. Then, there are various other issues depending on how it was installed.

This is why this failing for a lot of people, with different error messages depending on their own configuration and how they installed JHipster. And we can’t always reproduce as it depends on our own setup.

This was mostly triggered by the use of Yarn: this adds one more installation mechanism, and it depends on how Yarn was installed.

There is also the issue of people upgrading their JHipster version globally, and then the sub-generator gets stuck with that global version.

-> I’m not sure this is true for everyone, so here is how to test this: say you are using JHipster 4.5.1, do a “jhipster upgrade”. You will have a commit telling the application was re-generated with JHipster 4.5.1 (in the commit message). Have a look in the commit, if it’s in fact generated with JHipster 4.5.2 (you can see it in package.json), then you have the issue of a global JHipster installation that you can’t modify

This is so complex, and doing an upgrade isn’t such a big deal to do manually, that I’m considering removing this sub-generator (cc @lordlothar99 as you coded this originally).

We just don’t have the time to work on this -> would someone be interested in taking this ticket?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 34 (29 by maintainers)

Most upvoted comments

Agree 100% with you. But I would really hate to remove this but then if we cannot maintain it we dont have a choice. Since we now have a CLI we have more freedom now so if someone is interested to fix this or find a simpler solution that would be great. Ofcourse there are many ways in which we can make it work but we just dont have the time to spend on it

I’ve used this sub generator quite a bit and it’s made it easy for me to easily maintain tutorials over several months, rather than having to re-write them for the latest release.

I haven’t experienced an issue where the JHipster version can’t be upgraded. Does that only happen on particular operating systems? I haven’t seen it on macOS Sierra.