[email protected] C:\Users\XX\Desktop\Dev\prototype
`-- [email protected]
##### **JHipster configuration, a `.yo-rc.json` file generated in the root folde
r**
<details>
<summary>.yo-rc.json file</summary>
<pre>
{
"generator-jhipster": {
"promptValues": {
"packageName": "com.XX.proto",
"nativeLanguage": "fr"
},
"jhipsterVersion": "4.14.1",
"baseName": "prototype",
"packageName": "com.XX.proto",
"packageFolder": "com/XX/proto",
"serverPort": "8080",
"authenticationType": "session",
"cacheProvider": "ehcache",
"enableHibernateCache": false,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "h2Memory",
"prodDatabaseType": "mysql",
"searchEngine": false,
"messageBroker": false,
"serviceDiscoveryType": false,
"buildTool": "maven",
"enableSocialSignIn": false,
"enableSwaggerCodegen": false,
"rememberMeKey": "replaced-by-jhipster-info",
"clientFramework": "angularX",
"useSass": false,
"clientPackageManager": "yarn",
"applicationType": "monolith",
"testFrameworks": [],
"jhiPrefix": "jhi",
"enableTranslation": true,
"nativeLanguage": "fr",
"languages": [
"fr"
]
}
}
</pre>
</details>
##### **JDL for the Entity configuration(s) `entityName.json` files generated in
the `.jhipster` directory**
<details>
<summary>JDL entity definitions</summary>
<pre>
entity PolygonCollection (polygon_collection) {
name String,
reserved Boolean required,
subZone Subzone,
description String,
creationDate ZonedDateTime required
}
entity Style (style) {
fillOpacity Double,
color String maxlength(20),
weight Double,
fillColor String maxlength(20),
stroke Boolean
}
entity ProjectCollection (project_collection) {
polyname String
}
entity Polygon (polygon) {
object String required
}
entity Zones (zones) {
status Status required
}
entity Ne_raster (ne_raster) {
object ImageBlob
}
entity Ne_object (ne_object) {
object String
}
enum Subzone {
NORD,
SUD,
EST,
OUEST,
CENTRE
}
enum Status {
SUBMITTED,
PROGRESS,
APPROVED
}
relationship OneToMany {
PolygonCollection{projectCollection} to ProjectCollection{polygonCollection},
Style{projectCollection} to ProjectCollection{style},
Zones{projectCollection} to ProjectCollection{zones},
Polygon{projectCollection} to ProjectCollection{polygon}
}
</pre>
</details>
##### **Environment and Tools**
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
git version 2.16.0.windows.2
node: v8.10.0
npm: 5.6.0
bower: 1.8.2
gulp:
[14:30:10] CLI version 2.0.1
yeoman: 2.0.1
yarn: 1.3.2
The entity Ne_object is being updated.
events.js:183
throw er; // Unhandled 'error' event
^
Error: EPERM: operation not permitted, rename 'C:\Users\XXXX\.config\configs
tore\insight-generator-jhipster.json.1811486357' -> 'C:\Users\XXXX\.config\c
onfigstore\insight-generator-jhipster.json'
at Object.fs.renameSync (fs.js:766:18)
at Function.writeFileSync [as sync] (C:\Users\XXXX\Desktop\Dev\prototype
\node_modules\write-file-atomic\index.js:124:8)
at Configstore.set (C:\Users\XXXX\Desktop\Dev\prototype\node_modules\con
figstore\index.js:62:21)
at new Configstore (C:\Users\XXXX\Desktop\Dev\prototype\node_modules\con
figstore\index.js:27:11)
at new Insight (C:\Users\XXXX\Desktop\Dev\prototype\node_modules\insight
\lib\index.js:38:34)
at module.exports.insight (C:\Users\XXXX\Desktop\Dev\prototype\node_modu
les\generator-jhipster\generators\generator-base-private.js:265:25)
at module.exports.insight (C:\Users\XXXX\Desktop\Dev\prototype\node_modu
les\generator-jhipster\generators\entity\index.js:679:38)
at Object.<anonymous> (C:\Users\XXXX\Desktop\Dev\prototype\node_modules\
yeoman-generator\lib\index.js:399:25)
at C:\Users\XXXX\Desktop\Dev\prototype\node_modules\run-async\index.js:2
5:25
at new Promise (<anonymous>)
C:\Users\XXXX\Desktop\Dev\prototype>`
Do you think it is related to jhipster or the relationship is not correct.
Please follow the guidelines and use jhispter info so we can reproduce, we just can't work like that
This ticket has been closed as the guidelines are not followed.
Tickets must follow our Guidelines, as mentioned in:
We have also created a template on the "create a new ticket" page to help you follow those guidelines.
If this is indeed a JHipster bug, please open a new issue with proper details or update this issue with all details and request to reopen.
Issues opened without proper details will be closed without explanation.
If you have a question please use Stack Overflow, and tag the question with jhipster. This helps the project to keep the issue tracker clean. Also, Stack Overflow will give your question a larger audience:
Here it is, I'm quit sure its a bug with jhipster, because I've tried to generate entities from the blog jhipster sample. and its producing same error.
reopening since info is provided now
your error is weird, are you sure you have permissions to that directory?
This reminds me of other issues involving renaming files asynchronously on Windows, some of them were due to user's antivirus.
Yes I have full permissions, since I created the project. however, I'm under coorporate firewall and anti virus
Oh yes that's a typical Windows + antivirus issue. Best solution for you is probably to use start.jhipster.tech
I'm closing this because we can't do anything about it, your error is:
Error: EPERM: operation not permitted, rename 'C:\Users\XXXX\.config\configs
tore\insight-generator-jhipster.json.1811486357'
So either you don't have the rights to write that file, or your antivirus prevents it - whatever the cause, you need a "clean" working environment.
Some solutions for you:
Another solution is to generate the app with a "clean" computer, and put it on an USB stick or commit it to your Git repo. Once it's generated, no problem anymore.
Thank you, it was very helpful
BTW https://start.jhipster.tech/#/ should hopefully by open sourced soon, so if your company needs it, you will be able to host it internally, which will solve your issues