Intellij and Pycharm annotate showing a fixed wrong date - java

I am facing a quite bizarre situation regarding Intellij IDEA and Pycharm annotate (git blame) functionality.
Late last year I decided to install different JDKs on my MacOS Mojave (version 10.14.6) for development purposes. It seemingly messed up things quite bit, so I spent some time trying to "undo" (i.e., removing) the JDKs and jEnv. I am able to start and use IntelliJ IDEA and PyCharm (in fact, I never lost the ability to start and use them), but both programs now show a wrong fixed date (10/01/2019) for all the lines when I click on "Annotate" option of every versioned file no matter how old or new is the line. If I use git blame on the command line I see the correct dates of each file's lines. Downloading and installing the newest version of Intellij IDEA didn't help to solve the issue. Please, anyone could help me restore the default behaviour?
The default java version is below:
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
git blame on CLI:
Annotate option in Intellij IDEA:
The default java version is:
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
The git version is:
git version 2.21.1 (Apple Git-122.3)
The Intellij IDEA and PyCharm versions are:
IntelliJ IDEA 2020.3.1 (Community Edition)
Build #IC-203.6682.168, built on December 29, 2020
Runtime version: 11.0.9.1+11-b1145.63 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.14.6
GC: ParNew, ConcurrentMarkSweep
Memory: 990M
Cores: 4
Registry: editor.distraction.free.mode=true
Non-Bundled Plugins: DBN
PyCharm 2019.3.4 (Community Edition)
Build #PC-193.6911.25, built on March 18, 2020
Runtime version: 11.0.6+8-b520.43 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.6
GC: ParNew, ConcurrentMarkSweep
Memory: 990M
Cores: 4
Registry:
Non-Bundled Plugins: com.alayouni.ansiHighlight, com.intellij.ideolog

Try to right click on the annotations in Intellij -> Options -> Show Commit Timestamp.

Related

IntelliJ won't recognize JDK on Ubuntu

I installed openjdk using the command:
sudo apt install openjdk-11-jre-headless
java -version command correctly displays the installed package
openjdk 11.0.15 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1)
OpenJDK 64-Bit Server VM (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1, mixed mode, sharing)
However, when I open the IntelliJ IDEA environment, and want to run the first project, the environment does not detect the sdk
Should I configure something else beforehand, I haven't had much experience with Ubuntu before, for comparison in windows using the command -java version I get this message: completely different from what I get on ubuntu and everything works fine
java version "17" 2021-09-14 LTS
Java(TM) SE Runtime Environment (build 17+35-LTS-2724)
Java HotSpot(TM) 64-Bit Server VM (build 17+35-LTS-2724, mixed mode, sharing)
That's because you've installed JRE instead of JDK.
see: What is the difference between JDK and JRE?
Just try sudo apt install openjdk-17-jdk

ZGC not supported with OpenJDK 11 and macOS?

I'm trying to run a spring boot application with ZGC Garbage Collector, with following JVM options passed in build.gradle:
bootRun {
jvmArgs = ["-XX:+UnlockExperimentalVMOptions", "-XX:+UseZGC", "-Xlog:gc*"]
}
While running an app (gradle bootRun) I'm getting following error:
> Task :bootRun FAILED
Error occurred during initialization of VM
Option -XX:+UseZGC not supported
java -version:
openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.6+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.6+10, mixed mode)
I'm running 10.15.2 (19C57) version of macOS (Catalina) if that helps. Is it only macOS issue?
You can find the details over the supported platforms under the ZGC wiki.
So as it seems like, you would have to move to JDK-14 to be able to use it with macOS.

How can I fix an error with IBus in Ubuntu 15.10

Installed:
Ubuntu 15.10 x64
Kernel: 4.2.0-18-generic
IBus 1.5.11
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
IntelliJ IDEA 15
Hello guys. I've got a problem with IntelliJ IDEA 15 in Ubuntu 15.10. when I'm using IntelliJ IDEA, sometimes I can't use hotkeys (for example: ctrl+v, ctrl+a and etc.) in IntelliJ. I've seen a notification about IBus in IDE, I'd followed by instructions to fix that, but it didn't solve a problem, I've added "export IBUS_ENABLE_SYNC_MODE=1" to my ~/.profile, but it doesn't work.

Install Myeclipse shows a java error

When I install myeclipse, it shows "needs java SE6 Environment",
How do I resolve this problem?
I have already installed jdk1.7 in my OS X Yosemite.
/Users/**** $ java -version
java version "1.7.0_75"
Java(TM) SE Runtime Environment (build 1.7.0_75-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode)
This is a problem with the online installer, which is a 32-bit application while Java 7 on OS X is 64-bit only.
You have two solutions : you can just download the offline installer, which should work fine, according to this support thread.
If this doesn't work, you'll have to install Java 6, which you can find here.
This was a problem with earlier installers. All current installers will not have this problem. Please download the latest release.

Netbeans 8.0.1 with Java 8u25 on Mac OS X Yosemite retina BLURRY

I just upgraded the Mac OS, the older Netbeans 7.3 started firing errors. After upgrading both Java and Netbeans to latest versions, everything works except Netbeans seems blurry. I had this error before but now it is supposed to be resolved with the latest version of both. Not sure what is going on. I'm including the versions here:
Product Version: NetBeans IDE 8.0.1 (Build 201408251540)
Updates: NetBeans IDE is updated to version NetBeans 8.0.1 Patch 1.1
Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Mac OS X version 10.10 running on x86_64; UTF-8; en_US (nb)
The solution was to install JDK 8u25 for mac. The JRE is not enough to run Netbeans, so it essentially was using the old JRE which did not support retina well.
Here is the link: JDK 8u25 Download
The way to test if you have the right version is by running this in the command line:
java -version
You should see this back:
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

Categories