Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folder .jsontokotlin in $HOME #139

Closed
IRus opened this issue Apr 13, 2019 · 1 comment
Closed

Folder .jsontokotlin in $HOME #139

IRus opened this issue Apr 13, 2019 · 1 comment

Comments

@IRus
Copy link
Contributor

IRus commented Apr 13, 2019

Since files created in user home looks like some sort of cache/logs, it's much better to use appropriate folder (at least on linux, not sure about other OS): $XDG_CACHE_HOME.

On macOs ~/Library/Caches/ used for same purpose.

@IRus IRus changed the title .jsontokotlin in $HOME Folder .jsontokotlin in $HOME Apr 13, 2019
@kezhenxu94
Copy link
Collaborator

Since files created in user home looks like some sort of cache/logs, it's much better to use appropriate folder (at least on linux, not sure about other OS): $XDG_CACHE_HOME.

On macOs ~/Library/Caches/ used for same purpose.

Seems reasonable!! Thanks for your suggestion, contributions are always welcome 😄

@wuseal wuseal closed this as completed in 1f54304 Apr 15, 2019
wuseal pushed a commit that referenced this issue Apr 20, 2019
* Set theme jekyll-theme-cayman

* Add acknowledgement to JetBrains

* refactored 'settings' to 'advanced'

* Fix typo in README.md

* fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error

* add local.properties to .gitignore

* add test

* add issue test

* Rename test method name in Issue121Test

* [Fix] disable gson html escaping to fix format error (#137)

* disable html escaping to fix format error

* fix typo

* add gradle.properties to git ignore

* add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test

* Fix #139 Folder .jsontokotlin in $HOME (#141)

Added additional class to provide cache directory.
It used directly, because not approach for IoC presented here.

* Change Action tip #135 (#145)

Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON"
wuseal pushed a commit that referenced this issue Apr 21, 2019
* Set theme jekyll-theme-cayman

* Add acknowledgement to JetBrains

* refactored 'settings' to 'advanced'

* Fix typo in README.md

* fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error

* add local.properties to .gitignore

* add test

* add issue test

* Rename test method name in Issue121Test

* [Fix] disable gson html escaping to fix format error (#137)

* disable html escaping to fix format error

* fix typo

* add gradle.properties to git ignore

* add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test

* Fix #139 Folder .jsontokotlin in $HOME (#141)

Added additional class to provide cache directory.
It used directly, because not approach for IoC presented here.

* Change Action tip #135 (#145)

Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON"

* Fix Issue #123 - File Already exists (#157)
wuseal pushed a commit that referenced this issue Apr 22, 2019
* Set theme jekyll-theme-cayman

* Add acknowledgement to JetBrains

* refactored 'settings' to 'advanced'

* Fix typo in README.md

* fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error

* add local.properties to .gitignore

* add test

* add issue test

* Rename test method name in Issue121Test

* [Fix] disable gson html escaping to fix format error (#137)

* disable html escaping to fix format error

* fix typo

* add gradle.properties to git ignore

* add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test

* Fix #139 Folder .jsontokotlin in $HOME (#141)

Added additional class to provide cache directory.
It used directly, because not approach for IoC presented here.

* Change Action tip #135 (#145)

Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON"

* Fix Issue #123 - File Already exists (#157)

* Update changelog
wuseal pushed a commit that referenced this issue Apr 25, 2019
* upgrade version to 3.1.0-EAP

* Move adding property Annotation function implement into interceptor.

* move init with default value function into interceptor

* move isPropertyVar config function into interceptor

* move order by alphabetical config function into interceptor

* move property nullable or not  config function into interceptor

* adjust unit test to make it to test pass, now only one still not be pass, will fix later

* fix unit test failed case

* Fixed issue #119

* Optimize the way to get PsiDirectory

* re-optimize the way to get PsiDirectory

* Optimize method addProperty

* Optimize getPrimitiveType and getArrayType methods

* Optimize adjustPropertyNameForGettingArrayChildType method

* replace "if statement" with "take if"

* Optimize removeDuplicateClassCode method

* Simplify "generateSingleDataClassFile" method

* Optimize "appendCodeMember" method

* re-Optimize "adjustPropertyNameForGettingArrayChildType" method

* 3.2.0 optimize/code optimize (#138)

* Optimize some recursive methods with "tailrec"

* add String.containsAnyOf(List) method

* Optimize method couldGetAndReuseClassNameInCurrentEditFileForInsertCode

* Optimize http request

* make up send data function logic when send failed

* 3.2.0 (#151)

* Set theme jekyll-theme-cayman

* Add acknowledgement to JetBrains

* refactored 'settings' to 'advanced'

* Fix typo in README.md

* fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error

* add local.properties to .gitignore

* add test

* add issue test

* Rename test method name in Issue121Test

* [Fix] disable gson html escaping to fix format error (#137)

* disable html escaping to fix format error

* fix typo

* add gradle.properties to git ignore

* add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test

* Fix #139 Folder .jsontokotlin in $HOME (#141)

Added additional class to provide cache directory.
It used directly, because not approach for IoC presented here.

* Change Action tip #135 (#145)

Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON"

* [GH-108] Generate Kotlin classes from JSON Schema (#126)

* support generating class from JsonSchema

* Sync

*     support generating class from JsonSchema

* Sync

* Remove checking properties order

* Add unit test

* Support array

* Add more UT

* Update Kotlin version

* Fix UT

* Fix UT

* Add UT

* Reduce stacktrace

* Default value

* Simpify type name

* Default value

* Fix CI

* fix issue #122:just catch UnSupportJsonException like MakeKotlinClassAction do. (#154)

* Polish code and remove deprecated plugin.id (#155)

* 3.2.0 (#159)

* Set theme jekyll-theme-cayman

* Add acknowledgement to JetBrains

* refactored 'settings' to 'advanced'

* Fix typo in README.md

* fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error

* add local.properties to .gitignore

* add test

* add issue test

* Rename test method name in Issue121Test

* [Fix] disable gson html escaping to fix format error (#137)

* disable html escaping to fix format error

* fix typo

* add gradle.properties to git ignore

* add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test

* Fix #139 Folder .jsontokotlin in $HOME (#141)

Added additional class to provide cache directory.
It used directly, because not approach for IoC presented here.

* Change Action tip #135 (#145)

Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON"

* Fix Issue #123 - File Already exists (#157)

* Update changelog

* Update version
wuseal pushed a commit that referenced this issue Apr 26, 2019
* Set theme jekyll-theme-cayman

* Add acknowledgement to JetBrains

* refactored 'settings' to 'advanced'

* Fix typo in README.md

* fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error

* add local.properties to .gitignore

* add test

* add issue test

* Rename test method name in Issue121Test

* [Fix] disable gson html escaping to fix format error (#137)

* disable html escaping to fix format error

* fix typo

* add gradle.properties to git ignore

* add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test

* Fix #139 Folder .jsontokotlin in $HOME (#141)

Added additional class to provide cache directory.
It used directly, because not approach for IoC presented here.

* Change Action tip #135 (#145)

Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON"

* Fix Issue #123 - File Already exists (#157)

* 3.2.0 is released, merge it back to master branch (#160)

* upgrade version to 3.1.0-EAP

* Move adding property Annotation function implement into interceptor.

* move init with default value function into interceptor

* move isPropertyVar config function into interceptor

* move order by alphabetical config function into interceptor

* move property nullable or not  config function into interceptor

* adjust unit test to make it to test pass, now only one still not be pass, will fix later

* fix unit test failed case

* Fixed issue #119

* Optimize the way to get PsiDirectory

* re-optimize the way to get PsiDirectory

* Optimize method addProperty

* Optimize getPrimitiveType and getArrayType methods

* Optimize adjustPropertyNameForGettingArrayChildType method

* replace "if statement" with "take if"

* Optimize removeDuplicateClassCode method

* Simplify "generateSingleDataClassFile" method

* Optimize "appendCodeMember" method

* re-Optimize "adjustPropertyNameForGettingArrayChildType" method

* 3.2.0 optimize/code optimize (#138)

* Optimize some recursive methods with "tailrec"

* add String.containsAnyOf(List) method

* Optimize method couldGetAndReuseClassNameInCurrentEditFileForInsertCode

* Optimize http request

* make up send data function logic when send failed

* 3.2.0 (#151)

* Set theme jekyll-theme-cayman

* Add acknowledgement to JetBrains

* refactored 'settings' to 'advanced'

* Fix typo in README.md

* fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error

* add local.properties to .gitignore

* add test

* add issue test

* Rename test method name in Issue121Test

* [Fix] disable gson html escaping to fix format error (#137)

* disable html escaping to fix format error

* fix typo

* add gradle.properties to git ignore

* add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test

* Fix #139 Folder .jsontokotlin in $HOME (#141)

Added additional class to provide cache directory.
It used directly, because not approach for IoC presented here.

* Change Action tip #135 (#145)

Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON"

* [GH-108] Generate Kotlin classes from JSON Schema (#126)

* support generating class from JsonSchema

* Sync

*     support generating class from JsonSchema

* Sync

* Remove checking properties order

* Add unit test

* Support array

* Add more UT

* Update Kotlin version

* Fix UT

* Fix UT

* Add UT

* Reduce stacktrace

* Default value

* Simpify type name

* Default value

* Fix CI

* fix issue #122:just catch UnSupportJsonException like MakeKotlinClassAction do. (#154)

* Polish code and remove deprecated plugin.id (#155)

* 3.2.0 (#159)

* Set theme jekyll-theme-cayman

* Add acknowledgement to JetBrains

* refactored 'settings' to 'advanced'

* Fix typo in README.md

* fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error

* add local.properties to .gitignore

* add test

* add issue test

* Rename test method name in Issue121Test

* [Fix] disable gson html escaping to fix format error (#137)

* disable html escaping to fix format error

* fix typo

* add gradle.properties to git ignore

* add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test

* Fix #139 Folder .jsontokotlin in $HOME (#141)

Added additional class to provide cache directory.
It used directly, because not approach for IoC presented here.

* Change Action tip #135 (#145)

Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON"

* Fix Issue #123 - File Already exists (#157)

* Update changelog

* Update version
wuseal pushed a commit that referenced this issue Sep 20, 2021
Added additional class to provide cache directory.
It used directly, because not approach for IoC presented here.
wuseal pushed a commit that referenced this issue Sep 20, 2021
* upgrade version to 3.1.0-EAP

* Move adding property Annotation function implement into interceptor.

* move init with default value function into interceptor

* move isPropertyVar config function into interceptor

* move order by alphabetical config function into interceptor

* move property nullable or not  config function into interceptor

* adjust unit test to make it to test pass, now only one still not be pass, will fix later

* fix unit test failed case

* Fixed issue #119

* Optimize the way to get PsiDirectory

* re-optimize the way to get PsiDirectory

* Optimize method addProperty

* Optimize getPrimitiveType and getArrayType methods

* Optimize adjustPropertyNameForGettingArrayChildType method

* replace "if statement" with "take if"

* Optimize removeDuplicateClassCode method

* Simplify "generateSingleDataClassFile" method

* Optimize "appendCodeMember" method

* re-Optimize "adjustPropertyNameForGettingArrayChildType" method

* 3.2.0 optimize/code optimize (#138)

* Optimize some recursive methods with "tailrec"

* add String.containsAnyOf(List) method

* Optimize method couldGetAndReuseClassNameInCurrentEditFileForInsertCode

* Optimize http request

* make up send data function logic when send failed

* 3.2.0 (#151)

* Set theme jekyll-theme-cayman

* Add acknowledgement to JetBrains

* refactored 'settings' to 'advanced'

* Fix typo in README.md

* fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error

* add local.properties to .gitignore

* add test

* add issue test

* Rename test method name in Issue121Test

* [Fix] disable gson html escaping to fix format error (#137)

* disable html escaping to fix format error

* fix typo

* add gradle.properties to git ignore

* add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test

* Fix #139 Folder .jsontokotlin in $HOME (#141)

Added additional class to provide cache directory.
It used directly, because not approach for IoC presented here.

* Change Action tip #135 (#145)

Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON"

* [GH-108] Generate Kotlin classes from JSON Schema (#126)

* support generating class from JsonSchema

* Sync

*     support generating class from JsonSchema

* Sync

* Remove checking properties order

* Add unit test

* Support array

* Add more UT

* Update Kotlin version

* Fix UT

* Fix UT

* Add UT

* Reduce stacktrace

* Default value

* Simpify type name

* Default value

* Fix CI

* fix issue #122:just catch UnSupportJsonException like MakeKotlinClassAction do. (#154)

* Polish code and remove deprecated plugin.id (#155)

* 3.2.0 (#159)

* Set theme jekyll-theme-cayman

* Add acknowledgement to JetBrains

* refactored 'settings' to 'advanced'

* Fix typo in README.md

* fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error

* add local.properties to .gitignore

* add test

* add issue test

* Rename test method name in Issue121Test

* [Fix] disable gson html escaping to fix format error (#137)

* disable html escaping to fix format error

* fix typo

* add gradle.properties to git ignore

* add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test

* Fix #139 Folder .jsontokotlin in $HOME (#141)

Added additional class to provide cache directory.
It used directly, because not approach for IoC presented here.

* Change Action tip #135 (#145)

Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON"

* Fix Issue #123 - File Already exists (#157)

* Update changelog

* Update version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants