Strange issue in Eclipse about Chinese character - eclipse

platform:opensuse leap 42.2 KDE
Eclipse:Version: Oxygen Release (4.7.0) UTF-8
xxx#linux-bq5s:~> java -showversion
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
I use Java write a simple code, the code is fine since I can run it in a special way (shows in the image), so don't focus too much on the code.
I put in the word "高数" ,but as you can see, it returned something else, but it's not done yet, look at the second picture.
I copied the word "高数" in input filed at somewhere else that I typed in, and I paste in the Eclipse input filed and enter, it returned correct.
I have changed another Input Method, but nothing changed.

I run the code in terminal, and input normally, and it seems alright, so I think the problem is in the Eclipse
xzyx#linux-bq5s:~/桌面> java User
请输入指令:1-按书名选择;2-按序号选择
1
请输入书名
高数
您已选择:高数
xzyx#linux-bq5s:~/桌面> java User
请输入指令:1-按书名选择;2-按序号选择
1
请输入书名
电子
您已选择:电子
In Eclipse, when I add a table before input the charater "高数", the code could work correct, I think there is something wrong with Eclipse's input field.

Related

sql developer sqldeveloper-21.2.1.204.1703-x64 is crashing - Error 126

sql developer version (sqldeveloper-21.2.1.204.1703-x64) of sqldeveloper.exe is crashing with this error:
LoadLibrary failed with error 126: The specified module could not be found.
The error happens every single time using the program for about one minute or so.
(Note: Some people have mentioned to change device manager settings/display settings. I do not have access to do that and have been told that I cannot change those settings)
I have been running "jstack.exe" to see if I get some debug information but it does not show anything relevant to that error.
Any ideas?
Details
Java Version (This is the version that came with sqldeveloper)
java version "1.8.0_291"
Java(TM) SE Runtime Environment (build 1.8.0_291-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.291-b09, mixed mode)
Windows Version:
Screen Shots:
The actual error message:
Running it directly from command prompt, after clicking on "Ok" in above message, just returns back:
Thank you for your suggestion but I was not allowed to install another version of Java on this machine. This seems to me like a bug and the program should be fixed, not circumventing by adding more software onto your system. It should work out of the box as soon as I download it.
I have now found a solution, the solution is I will use TOAD for now until Oracle can get their act together.

Why nothing happened after selecting "Convert operators to Unicode" in Comma?

After I select "Convert operators to Unicode" in Comma, and enter the following code:
my #array = 1,3,5,7,9;
say #array >>+>> 3;
>>+>> should be converted to »+», but nothing happend.
This is the version of Comma:
Comma 2021.01(Community Edition)
Build #CT-202.6948.81, build on January 29, 2021
Runtime version: 1.8.0_261-bb12 x86_64
VM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation.
In the "Scheme:" combobox you see the "Default (IDE)" value, which means you are currently editing default setting scheme for the IDE. However, it is an IntelliJ thing that this scheme does not automatically equal to your current project settings (which sometimes surprises users).
If you switch it to "Project (Project)" it is highly likely the settings will differ (no Unicode editing, as it is turned off by default), so you enable it for the current project scheme and it should work out, otherwise please report, that would most likely be a bug.

Cannot disable CompactStrings Java 9 using Netbeans

I am trying to disable the CompactStrings feature of Java 9 using the VM option: -XX:-CompactStrings, but it does not work.
When I tried to debug my application, the COMPACT_STRINGS variable in String class is always true (with or without the VM option)
I have the latest version of Java 9: jdk-9+181
And the Netbeans IDE Build 201709070001
I tried various options to set the VM option and none of them works.
What I tried is:
setting the VM option in app.conf, setting it in project.properties, running netbeans by ./netbeans -XX:-CompactStrings, setting the JVM option in Project->Properties->Run->VM Options
Is this a bug in Netbeans? Or am I doing something wrong?
I tried to reproduce your problem using a trivial "Hello World" Java application. However, toggling the CompactStrings feature in the project properties settings worked fine for me, and caused COMPACT_STRINGS to be set appropriately, so this is not a bug in NetBeans.
Although I am using the same version of Java (181) as you, I have a more recent Dev Build of NetBeans (Build 201709220002), and there are several discrepancies between my project properties screen and yours. For example, mine shows the Runtime Platform field but yours does not:
Something else to check is that you really do have the environment you expect. I find it easy to mess things up when multiple versions of Java and Netbeans are installed.
This is what I see when I do Help -> About:
If your environment looks fine then I can only suggest that you download the latest DEV Build of NetBeans and try again.

How to make completion works at first time in PhpStorm 2016.2

I'm using PhpStorm 2016.2 and my code completion does not seem to work properly. When typing $this->assertCo
it suggest only function names that are up to third level ancestors of my class. But when I use Ctrl+Space it suggest correct items.
This is my class diagram:
and missing suggestions are in PHPUnit_Framework_Assert class.
How can I make it work without using Ctrl+Space every time?
PhpStorm and OpenJDK info:
PhpStorm 2016.2
Build #PS-162.1121.38, built on July 12, 2016
JRE: 1.8.0_76-release-b216 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Reason for current behaviour: it was asked by users (WI-9403) to hide static methods when completing methods using this->.
PHPUnit apparently has all assertXXX methods done as static although recommends accessing them via $this-> (same way how it's done in JUnit -- the original tool where PHPUnit devs took inspiration from).
How can I make it work without using Ctrl+Space every time?
Right at the moment -- no way.
But in 2016.2.1 it will work as before for PHPUnit methods/inside PHPUnit test files (WI-32530 -- already implemented).
You may also consider voting for https://youtrack.jetbrains.com/issue/WI-32713 -- to have such behaviour completely optional (additional setting) even outside of PHPUnit tests.

Eclipse (Mars) keeps closing, no warning error file created

I am doing my end of year project for uni and eclipse has started closing down without warning which is causing me to lose some work every time. I have been working on this project for the past two weeks with no issues until today!
I am on windows 7, Version: Mars.2 Release (4.5.2) Build id: 20160218-0600 I have changed my work space as I read this could be corrupt however I am still having the problem. I need to get my project finished by Friday which is an applet so was really hoping someone could shed a bit light on what the problem could be. Many Thanks!
It has crashed four times in the past hour and it creates a log file called hs_errpid(random number here: 7248).txt which contains a lot text which I fully don't understand. The start of it is as follows:
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006d5dd977, pid=7248, tid=6088
JRE version: Java(TM) SE Runtime Environment (8.0_91-b14) (build 1.8.0_91-b14)
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.91-b14 mixed mode windows-amd64 Compressed oops)
Problematic frame:
C 0x000000006d5dd977
Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
If you would like to submit a bug report, please visit:
http://bugreport.java.com/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
p.s I am using sqlite and had to download a Jar for it to work called sqlite-jdbc-3.8.11.2.jar and also JCalendar.-1.4.jar