You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I generated my microservice project by execute jhipster jdl .\original-microservice-ecommerce-store-4-apps.jdl --auto-crlf, then it would arise the following errors.
ERROR! An error occured while running jhipster:bootstrap#commitPrettierConfig
ERROR! ERROR! D:\workspace\ms-ecommerce-store is not inside a git repository
Error: D:\workspace\ms-ecommerce-store is not inside a git repository
at autoCrlfTransform (file:///C:/Users/flyli/AppData/Roaming/nvm/v20.17.0/node_modules/generator-jhipster/dist/generators/bootstrap/support/auto-crlf-transform.js:56:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BootstrapGenerator.commitSharedFs (file:///C:/Users/flyli/AppData/Roaming/nvm/v20.17.0/node_modules/generator-jhipster/dist/generators/bootstrap/generator.js:173:37)
at async BootstrapGenerator.commitPrettierConfig (file:///C:/Users/flyli/AppData/Roaming/nvm/v20.17.0/node_modules/generator-jhipster/dist/generators/bootstrap/generator.js:137:9)
at async BootstrapGenerator.method (file:///C:/Users/flyli/AppData/Roaming/nvm/v20.17.0/node_modules/generator-jhipster/dist/generators/bootstrap/generator.js:128:17)
at async BootstrapGenerator.executeTask (file:///C:/Users/flyli/AppData/Roaming/nvm/v20.17.0/node_modules/generator-jhipster/node_modules/yeoman-generator/dist/actions/lifecycle.js:258:13)
at async runLoop.add.once (file:///C:/Users/flyli/AppData/Roaming/nvm/v20.17.0/node_modules/generator-jhipster/node_modules/yeoman-environment/dist/environment-base.js:395:17)
I modified the jdl file as usually, and executed jhipster jdl .\modified-microservice-ecommerce-store-4-apps.jdl --auto-crlf, then I found my new entity couldn't be generated.
Motivation for or Use Case
modifying the regular entities.
Reproduce the error
create a new folder and copy the two attachments into this new folder.
Overview of the issue
modified-microservice-ecommerce-store-4-apps.txt
original-microservice-ecommerce-store-4-apps.txt
I generated my microservice project by execute
jhipster jdl .\original-microservice-ecommerce-store-4-apps.jdl --auto-crlf
, then it would arise the following errors.I modified the jdl file as usually, and executed
jhipster jdl .\modified-microservice-ecommerce-store-4-apps.jdl --auto-crlf
, then I found my new entity couldn't be generated.Motivation for or Use Case
modifying the regular entities.
Reproduce the error
jhipster jdl .\original-microservice-ecommerce-store-4-apps.jdl --auto-crlf
jhipster jdl .\modified-microservice-ecommerce-store-4-apps.jdl --auto-crlf
Related issues
Suggest a Fix
After I execute
git init
for the root folder, error disappeared and everything works.JHipster Version(s)
v8.7.3
JHipster configuration
██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║
╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗
╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝
https://www.jhipster.tech
Welcome to JHipster v8.7.3
Welcome to the JHipster Information Sub-Generator
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
Environment and Tools
openjdk version "17.0.12" 2024-07-16 LTS
OpenJDK Runtime Environment Corretto-17.0.12.7.1 (build 17.0.12+7-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.12.7.1 (build 17.0.12+7-LTS, mixed mode, sharing)
git version 2.45.1.windows.1
node: v20.18.0
npm: 10.8.2
Docker version 27.1.1, build 6312585
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Congratulations, JHipster execution is complete!
If you find JHipster useful consider sponsoring the project https://www.jhipster.tech/sponsors/
Thanks for using JHipster!
Browsers and Operating System
Edition Windows 11 Pro
Version 23H2
Installed on 8/19/2024
OS build 22631.4391
Experience Windows Feature Experience Pack 1000.22700.1047.0
The text was updated successfully, but these errors were encountered: