Comments (6)
What do you mean by false changes?
from pom-sorter.
We have the misc.xml under VCS control, so when "Pom sorter" (indirectly) changes order of elements IDEA shows that misc.xml has been changed. It has chnaged physically, but logically it is the same set of settings.
from pom-sorter.
- Why do you sort ".Idea\misc.xml"? why bother catalog ".idea" to put VCS?
2), and yes, the problem is not with the PomSorter, but with the VCS in IDEA - try to manually swap the 2 tag and see.
from pom-sorter.
- We do not sort this file.
- As with any file under VCS control IDEA shows the physical changes.
Hence, a proposal for "Pom sorter": if nothing changes in the project then do NOT change order of elements.
from pom-sorter.
I guess it's because State values are loaded from HashMap.values() which does not guarantee order.
Mikhail, could you change HashMap to TreeMap and see if problem gets solved?
from pom-sorter.
What do you think about following?:
- Make "pl.itcrowd.pom_sorter.PomSorter.TagSortingSetting" Comparable (using TagSortingSetting.name)
- Sort the passed collection in "pl.itcrowd.pom_sorter.PomSorter.State.State" constructor
(to return the appropriately via com.intellij.openapi.components.PersistentStateComponent#getState()) - Do you think this list should be sorted as well? : "pl.itcrowd.pom_sorter.PomSorter.TagSortingSetting.order"
Please make the above changes if correct and issue new plugin version.
from pom-sorter.
Related Issues (20)
- Sort order like in maven.xsd
- sort comment HOT 2
- Allow sorting tags by attribute values HOT 1
- Blank lines HOT 5
- java.lang.NoSuchMethodError: com.intellij.psi.XmlElementFactory.createTagFromText HOT 5
- PomSorter error when running IntelliJ with Java6 HOT 5
- duplication or and tag CDATA HOT 1
- Error with IntelliJ Ultimate 133.696 HOT 6
- Deletes the contents of the section "dependencies" HOT 2
- 1.0.11
- No sort of ant tasks by default
- Almost completely removed after sorting section dependencies.
- Settings screen has no labels next to options HOT 1
- Expending children of not sorted tag HOT 1
- Sorting should be done asynchronously HOT 1
- not open settings page HOT 4
- add "null" from empty comments HOT 1
- default sorting from section "pluginRepository" HOT 1
- Folding sections HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pom-sorter.