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

Fix Issue #123 - File Already exists #157

Merged
merged 2 commits into from
Apr 21, 2019
Merged

Conversation

Karthik2007
Copy link
Collaborator

As PSIDirectory add method is case Insensitive, It does not accept the same name file. Hence the crash.

Copy link
Owner

@wuseal wuseal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wuseal wuseal merged commit 3a11e8c into wuseal:master Apr 21, 2019
wuseal pushed a commit that referenced this pull request 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 pull request 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 pull request 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 pull request 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 pull request Sep 20, 2021
wuseal pushed a commit that referenced this pull request 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants