jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.47k stars 4.02k forks source link

Bug: Generator tries to download web packages when selected no client #18018

Closed shresthaujjwal closed 2 years ago

shresthaujjwal commented 2 years ago
Overview of the issue

Generator tries to download frontend packages when selecting no client and it fails with warning

Reproduce the error
➜  jhipster-7-7 jhipster
INFO! Using bundled JHipster
                            https://www.jhipster.tech
Welcome to JHipster v7.7.0

Application files will be generated in folder: _______________________________________________________________________________________________________________

  Documentation for creating an application is at https://www.jhipster.tech/creating-an-app/
  If you find JHipster useful, consider sponsoring the project at https://opencollective.com/generator-jhipster
 _______________________________________________________________________________________________________________

? Which *type* of application would you like to create? Monolithic application (recommended for simple projects)
? What is the base name of your application? jhipster
? Do you want to make it reactive with Spring WebFlux? No
? What is your default Java package name? com.jhipster
? Which *type* of authentication would you like to use? HTTP Session Authentication (stateful, default Spring Security mechanism)
? Which *type* of database would you like to use? SQL (H2, PostgreSQL, MySQL, MariaDB, Oracle, MSSQL)
? Which *production* database would you like to use? MySQL
? Which *development* database would you like to use? MySQL
? Which cache do you want to use? (Spring cache abstraction) No cache - Warning, when using an SQL database, this will disable the Hibernate 2nd level cache!
? Would you like to use Maven or Gradle for building the backend? Maven
? Do you want to use the JHipster Registry to configure, monitor and scale your application? No
? Which other technologies would you like to use? WebSockets using Spring Websocket
? Which *Framework* would you like to use for the client? No client
WARNING! Could not fetch bootswatch themes from API. Using default ones.
? Would you like to enable internationalization support? No
? Please choose the native language of the application English
? Besides JUnit and Jest, which testing frameworks would you like to use?
? Would you like to install other generators from the JHipster Marketplace? No

WARNING! Could not fetch bootswatch themes from API. Using default ones.

JHipster Version(s)

7.7.0

mshima commented 2 years ago

Need to add this.cancelCancellableTasks(); after https://github.com/jhipster/generator-jhipster/blob/154259b7ca50ef218176c92223c3d2d8af611bdd/generators/client/prompts.js#L77

To halt client generator.