### Egor's blog

By Egor, 10 years ago, translation,

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

UPD: CodeChef generation fixed

• +2

 » 10 years ago, # |   0 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.
 » 10 years ago, # |   0 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)
•  » » 10 years ago, # ^ |   +5 Had you added plug-in file to classpath as described in manual?
•  » » » 10 years ago, # ^ |   0 Thank you for reply. I thought I did. I used File>Project Structure>Modules>Dependencies>add>Library>Java and I chose chelper2.4.jar
•  » » » » 10 years ago, # ^ |   0 And it still didn't work.
•  » » » » » 10 years ago, # ^ |   0 Sorry for late reply, was a bit busy latelyCould you please provide screenshot of dependecies tab?
•  » » » » » » 10 years ago, # ^ | ← Rev. 2 →   0 visitlink if you can't see the picture
•  » » » » » » » 10 years ago, # ^ |   +5 Sorry, all I can see is some ieroglyphs, exclamation mark in speech bubble and "hi.baidu.com"
•  » » » » » » » 10 years ago, # ^ |   +5 It is still the same even after visiting that link, probably some issues with Chinesse firewall?
•  » » » » » » » » 10 years ago, # ^ |   0 Sorry for that. Maybe will work
•  » » » » » » » » » 10 years ago, # ^ |   0 Is it same with Java 1.6? I have about the same configuration, but no warning about unused library.
•  » » » » » » » » » 10 years ago, # ^ |   0 It's OK now. Thank you.
 » 10 years ago, # |   0 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 ...
•  » » 10 years ago, # ^ |   +8 I do not know of any rule that forbids using itYou 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)
•  » » » 10 years ago, # ^ | ← Rev. 2 →   -11 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
•  » » » » 10 years ago, # ^ |   +8 Input/output files should be in project rootThat is very strang you have problems with Main.java. There should be Main class inside with main method. Could you please make a screenshot?
•  » » » » » 10 years ago, # ^ |   +2 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 ???
•  » » » » » » 10 years ago, # ^ |   +8 No need to do this for sure. I defenately do not do this, but I have separate module for Main.java
•  » » » » » » » 10 years ago, # ^ |   0 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 ...
•  » » » » » » » » 10 years ago, # ^ |   +8 That's ok — Main.class is class file, not java file, and all class files are generated in out
•  » » » » » » » » » 10 years ago, # ^ |   0 Please look at my screen shots before and after creating the class files.
•  » » » » » » » » » 10 years ago, # ^ |   +8 You better run Main.java from idea by, for example, right clicking on Main.java and selecting "Run 'Main.main()'"
•  » » » » » » » » » 10 years ago, # ^ |   0 Ok.thanks ..Thats certainly a better way
•  » » » 10 years ago, # ^ | ← Rev. 2 →   0 Done ..thanks :)
 » 9 years ago, # |   0 The parser was not able to get the test cases for problem C in Round #123.. Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 at net.egork.chelper.util.EncodingUtilities.decodeTest(EncodingUtilities.java:49) at net.egork.chelper.tester.Tester.decode(Tester.java:234) at net.egork.chelper.tester.Tester.test(Tester.java:36) at net.egork.chelper.tester.Tester.main(Tester.java:21)
•  » » 9 years ago, # ^ |   0 I'll investigate
•  » » 9 years ago, # ^ |   0 Strange. I have also used CHelper but it was ok parsing task C.
 » 9 years ago, # |   -10 Seems like Codechef Cook Off's url has changed because the plugin did not parse problems last cook off .. What's to be done ??
•  » » 9 years ago, # ^ |   +5 Yes, it seems so. I will release fix as quick as I would have some free time
•  » » » 9 years ago, # ^ |   0 Will CHelper be autoupdated or no?
•  » » » » 9 years ago, # ^ |   0 Unfotanetelly, no
 » 9 years ago, # |   0 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.
•  » » 9 years ago, # ^ |   0 You can always do it by clicking stop button (red square)
•  » » » 9 years ago, # ^ |   0 today had this problem... while solving problem A, IDEA became unresponsible... so could not even click that red button.
•  » » » » 9 years ago, # ^ |   0 I'm not sure Timer would response then (as it is in separate thread)
•  » » » » » 9 years ago, # ^ |   0 Maybe you know any methods for "killing" such tasks except rebooting?Thx.
•  » » » » » » 9 years ago, # ^ |   0 For me Idea always eventualy stop hanging
 » 9 years ago, # |   0 The parser is not working for me in Codechef July Long contest..My problems are not being created.. Please fix this problem..
•  » » 9 years ago, # ^ |   0 This is known problem and will be fixed as soon as I willhave time
 » 9 years ago, # |   +1 Version 2.41 with CodeChef fix released
•  » » 9 years ago, # ^ |   0 Thanks for the quick work :)
 » 9 years ago, # |   0 how to use CHelper in ubuntu?
•  » » 9 years ago, # ^ |   +3 Install IntelliJ IDEA and follow instructions above. I am using it under Ubuntu — works fine.
 » 9 years ago, # |   0 After archiving a task, the month number is incorrect. Calendar.getInstance().get(Calendar.MONTH) returns month number base on 0.
•  » » 9 years ago, # ^ |   0 Yes. I'll fix this in next version, but as this is used for unit test purposes it is not very important bug
•  » » » 9 years ago, # ^ |   0 thanks
 » 9 years ago, # | ← Rev. 2 →   0 SRM 187 — Div 1 L1While 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 — schmelshifIt's a bug, right?
 » 8 years ago, # | ← Rev. 2 →   0 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.
•  » » 7 years ago, # ^ | ← Rev. 4 →   0 It's working for me i just changed the Chelper dependency scope from "Provided" to "Compile"
•  » » » 5 years ago, # ^ |   0 Could you mention how you did that?
•  » » » » 5 years ago, # ^ |   +1 (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.