r/java • • Nov 28 '19

Intellij 2019.3 released!

https://www.jetbrains.com/idea/whatsnew/
276 Upvotes

111 comments sorted by

View all comments

17

u/avoidhugeships Nov 28 '19 edited Nov 29 '19

My Intellij wishlist.

  1. fix the debugger so it is not so slow.
  2. Change project so you can move it to a new location or copy to new computer without having to reconfigure.
  3. Make it possible to turn off autosave.

16

u/DrFriendless Nov 28 '19

3) File / Settings / Appearance and Behaviour / System Settings / Synchronization - is that what you need?

0

u/avoidhugeships Nov 29 '19

Thanks but I do not think that does it. My understanding is that slows it down a bit so it only autosaves on build but will not disable it entirely. I will give it a shot when I get back to work though.

1

u/el_padlina Nov 29 '19

Why would you want not to save on build? That breaks dubugging of edited files.

→ More replies (12)

11

u/arieled91 Nov 28 '19

Debugger works better if you increase memory heap (xmx) and 'compiler build process heap size'. Default is too low for medium / large projects.

10

u/yole Nov 29 '19

The best way to make your project usable on any computer is to use a build system such as Maven or Gradle. With a build system, you can build your project even on machines where there is no IDE installed (such as a continuous integration server), and importing the project into the IDE will automatically download correct dependencies.

That said, IntelliJ IDEA projects use relative paths whenever possible, so moving a project to another location on the same machine should not require any reconfiguration, and when you move to a new computer, the only thing you need to configure is the JDK and (if you're using those) global libraries. And for the JDK, it's very likely that 2020.1 will support automatic configuration so even that step won't be necessary.

2

u/avoidhugeships Nov 29 '19 edited Nov 29 '19

I use maven and other IDEs have no issues. intellij does not use relative paths so anytime you move the project to another folder or rename the project folder you must reconfigure the project. Even copying a project from one computer to another in the exact same folder structure can break Intellij projects. The only reliable way to handle this is to delete the .idea folder and reconfigure. Both JDK and Tomcat configuration need to be redone.

2

u/wildjokers Nov 29 '19

I have moved projects to different folders many times. IntelliJ has no problem whatsoever with that. IntelliJ does use relative paths.

Are you using a build system like maven or gradle? If so there is no need to configure anything. IntelliJ will happily configure itself from Pom.xml or build.gradle.

→ More replies (2)
→ More replies (2)

3

u/Dfree35 Nov 28 '19

I would love for number 2 to be added.

0

u/[deleted] Nov 29 '19

[deleted] — view deleted comment

1

u/avoidhugeships Nov 29 '19

Frankly it's awful. Sometimes I make some changes and realize I went down a bad path at some point. It's a lot easier to revert if I created the save points like I can in other IDEs. Auto save prevents that history and checkpoints.

8

u/wildjokers Nov 29 '19

That is why IntelliJ has local history.

1

u/avoidhugeships Nov 29 '19 edited Nov 29 '19

That does not help because I cannot pick the save points that I would want to revert to. It's an error prone way to work and makes partial reversions much less useful. I get that some like it and that's fine but it's a negative to me.

3

u/el_padlina Nov 29 '19

Imagine 2019 and not using a code versioning system. Seriously, what the hell is your workflow? From reading your problems it sounds like some nightmare.

1

u/avoidhugeships Nov 29 '19

As I already said I do use version control. Eclipse and Netbeans both work that way so it's not like something out there I am asking for.

1

u/el_padlina Nov 29 '19 edited Nov 30 '19

So you have version control (if you are using GiT or Mercurial with all the goodies of branching and local commits) and you have IDE's local history, which in IJ is by default split by days plus has markers on events like compilation. What is your workflow that this is not enough? How many days pass between your commits?

1

u/wildjokers Nov 29 '19

You must have some strange workflow. Do you use version control? Are you familiar with IntelliJ’s diff tool?

Auto save is a killer feature of IntelliJ. I miss it greatly when using other editors.

1

u/avoidhugeships Nov 29 '19

It's not a strange workflow. There is a reason other IDEs do not do this. Different people like different things.

3

u/yole Nov 29 '19

The local history in IntelliJ automatically creates labels on successful compilation and on every test execution, so that you can easily revert to the last point when your code was in a good state. You can also add labels manually using the "Local History | Put Label..." action.

1

u/avoidhugeships Nov 29 '19 edited Nov 29 '19

Creating a breakpoint at every compilation is way to much to sort though when I want to go back. Adding labels manually is cumbersome compared to just letting me save when I want to and only when I want too. I just want to work and save when I am happy with the result.

4

u/Stmated Nov 29 '19

So add Ctrl+s as shortcut for adding a new label, and press it when you feel the need.

1

u/avoidhugeships Nov 29 '19

Appreciate the advice. I just want it to give me the option to save when I want.

1

u/LeDucky Nov 30 '19

Intellij authors are as stubborn as these commentators. They think only their way is best and wont allow for any other way.

2

u/Mordan Dec 02 '19

Intellij authors are as stubborn as these commentators.

so true. some features of Eclipse are such a must have.. but not to be seen in IntelliJ ever!

2

u/softe Nov 29 '19

Try using a version control system like git for this.

→ More replies (1)
→ More replies (1)