Git Product home page Git Product logo

Comments (6)

blabno avatar blabno commented on August 14, 2024

What do you mean by false changes?

from pom-sorter.

mikhailknyazev avatar mikhailknyazev commented on August 14, 2024

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.

BorzdeG avatar BorzdeG commented on August 14, 2024
  1. 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.

mikhailknyazev avatar mikhailknyazev commented on August 14, 2024
  1. We do not sort this file.
  2. 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.

blabno avatar blabno commented on August 14, 2024

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.

mikhailknyazev avatar mikhailknyazev commented on August 14, 2024

What do you think about following?:

  1. Make "pl.itcrowd.pom_sorter.PomSorter.TagSortingSetting" Comparable (using TagSortingSetting.name)
  2. Sort the passed collection in "pl.itcrowd.pom_sorter.PomSorter.State.State" constructor
    (to return the appropriately via com.intellij.openapi.components.PersistentStateComponent#getState())
  3. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.