New version released because of some TopCoder parsing bugs lately (SRM 530 Div-2 Medium, SRM 531 Div-2 Easy and SRM 534 Div-1 Medium). Other features: UI: switch task to current editor and editor to current task automatically Fixed width font for tests
Download link Configuration format had not changed
UPD: CodeChef generation fixed
There still is something wrong with String[] comparison when array is empty. In TopCoder Open Round 1A 250 Test #1 — "Expected output: Execution result: [] Verdict: WA " Thanks again for the plugin.
I tried to use the plugin for a codeforces contest. But when I run the code it shows the following things: Exception in thread "main" java.lang.ClassNotFoundException: net.egork.chelper.tester.Tester at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:186) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:113)
Had you added plug-in file to classpath as described in manual?
Thank you for reply. I thought I did. I used File>Project Structure>Modules>Dependencies>add>Library>Java and I chose chelper2.4.jar
And it still didn't work.
Sorry for late reply, was a bit busy lately
Could you please provide screenshot of dependecies tab?
visitlink if you can't see the picture
Sorry, all I can see is some ieroglyphs, exclamation mark in speech bubble and "hi.baidu.com"
It is still the same even after visiting that link, probably some issues with Chinesse firewall?
Sorry for that. Maybe will work
Is it same with Java 1.6? I have about the same configuration, but no warning about unused library.
It's OK now. Thank you.
Hi Egor..Could you tell if the Chelper can be used in GCJ as well...If its legal then please tell me how to read and write to files through the plugin ...
I do not know of any rule that forbids using it
You just need first set up read/write from file (i. e. choosing custom in Inpu and Output) and thenm after testing on samples and downloading input, to run created class' main method wherever it lies (src by default)
Where do I have to keep the input file..In the src??
And when I run the Main.java file it says Error:Could find or load main class
Input/output files should be in project root
That is very strang you have problems with Main.java. There should be Main class inside with main method. Could you please make a screenshot?
Thanks Egor..I worked it out...Actually I had to compile it again using the cmd prompt to generate the Main.class file...Then when I run it its working....But do I have to do it everytime.I mean,do you people do the same thing ???
No need to do this for sure. I defenately do not do this, but I have separate module for Main.java
Maybe I have to do this because the Main.class file genearted when I run the program from IntelliJ is in the output directory and my output directory is (E:/programs/Contest/out) even when I specify the output directory as "src" in the properties file ...
That's ok — Main.class is class file, not java file, and all class files are generated in out
Please look at my screen shots before and after creating the class files.
You better run Main.java from idea by, for example, right clicking on Main.java and selecting "Run 'Main.main()'"
Ok.thanks ..Thats certainly a better way
Done ..thanks :)
The parser was not able to get the test cases for problem C in Round #123.. Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
I'll investigate
Seems like Codechef Cook Off's url has changed because the plugin did not parse problems last cook off .. What's to be done ??
Yes, it seems so. I will release fix as quick as I would have some free time
Will CHelper be autoupdated or no?
Unfotanetelly, no
Is it possible to add a new feature like TL for a new task? It will be nice to "kill" a process if its working too long.
You can always do it by clicking stop button (red square)
today had this problem... while solving problem A, IDEA became unresponsible... so could not even click that red button.
I'm not sure Timer would response then (as it is in separate thread)
Maybe you know any methods for "killing" such tasks except rebooting?
Thx.
For me Idea always eventualy stop hanging
The parser is not working for me in Codechef July Long contest..My problems are not being created.. Please fix this problem..
This is known problem and will be fixed as soon as I willhave time
Version 2.41 with CodeChef fix released
Thanks for the quick work :)
how to use CHelper in ubuntu?
Install IntelliJ IDEA and follow instructions above. I am using it under Ubuntu — works fine.
After archiving a task, the month number is incorrect. Calendar.getInstance().get(Calendar.MONTH) returns month number base on 0.
Yes. I'll fix this in next version, but as this is used for unit test purposes it is not very important bug
thanks
SRM 187 — Div 1 L1
While running my code — I got the following for test#2
Test #2: Input: if then{}; elseif schmelshif()/ Expected output: ;schmelshif Execution result: schmelshif Verdict: WA in 0.001 s.
But expected output was — schmelshif
It's a bug, right?
Hello, first thanks for the plugin. Why is the IDE console showing this message when I run a task:
"Exception in thread "main" java.lang.ClassNotFoundException: net.egork.chelper.tester.NewTester" ?
What have I to do?. Thanks again.
It's working for me i just changed the Chelper dependency scope from "Provided" to "Compile"
Could you mention how you did that?
(For CHelper Beta 4.1.6, IU 2016.3.2, Win2012) I added both .jar's from .IntelliJIdea2016.3/config/plugins/chelper/lib to the project libs and the class was finally found.