Egor's blog

By Egor, 10 years ago, translation, In English

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

 
 
 
 
  • Vote: I like it
  • +2
  • Vote: I do not like it

»
10 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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, # |
  Vote: I like it 0 Vote: I do not like it

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, # ^ |
      Vote: I like it +5 Vote: I do not like it

    Had you added plug-in file to classpath as described in manual?

    • »
      »
      »
      10 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      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, # ^ |
          Vote: I like it 0 Vote: I do not like it

        And it still didn't work.

        • »
          »
          »
          »
          »
          10 years ago, # ^ |
            Vote: I like it 0 Vote: I do not like it

          Sorry for late reply, was a bit busy lately

          Could you please provide screenshot of dependecies tab?

          • »
            »
            »
            »
            »
            »
            10 years ago, # ^ |
            Rev. 2   Vote: I like it 0 Vote: I do not like it

             visitlink if you can't see the picture

            • »
              »
              »
              »
              »
              »
              »
              10 years ago, # ^ |
                Vote: I like it +5 Vote: I do not like it

              Sorry, all I can see is some ieroglyphs, exclamation mark in speech bubble and "hi.baidu.com"

            • »
              »
              »
              »
              »
              »
              »
              10 years ago, # ^ |
                Vote: I like it +5 Vote: I do not like it

              It is still the same even after visiting that link, probably some issues with Chinesse firewall?

              • »
                »
                »
                »
                »
                »
                »
                »
                10 years ago, # ^ |
                  Vote: I like it 0 Vote: I do not like it

                Sorry for that. Maybe  will work

                • »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  10 years ago, # ^ |
                    Vote: I like it 0 Vote: I do not like it

                  Is it same with Java 1.6? I have about the same configuration, but no warning about unused library.

                • »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  10 years ago, # ^ |
                    Vote: I like it 0 Vote: I do not like it

                  It's OK now. Thank you.

»
10 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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, # ^ |
      Vote: I like it +8 Vote: I do not like it

    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)

    • »
      »
      »
      10 years ago, # ^ |
      Rev. 2   Vote: I like it -11 Vote: I do not like it

      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, # ^ |
          Vote: I like it +8 Vote: I do not like it

        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?

        • »
          »
          »
          »
          »
          10 years ago, # ^ |
            Vote: I like it +2 Vote: I do not like it

          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, # ^ |
              Vote: I like it +8 Vote: I do not like it

            No need to do this for sure. I defenately do not do this, but I have separate module for Main.java

            • »
              »
              »
              »
              »
              »
              »
              10 years ago, # ^ |
                Vote: I like it 0 Vote: I do not like it

              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, # ^ |
                  Vote: I like it +8 Vote: I do not like it

                That's ok — Main.class is class file, not java file, and all class files are generated in out

                • »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  10 years ago, # ^ |
                    Vote: I like it 0 Vote: I do not like it

                  Please look at my screen shots before and after creating the class files.

                • »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  10 years ago, # ^ |
                    Vote: I like it +8 Vote: I do not like it

                  You better run Main.java from idea by, for example, right clicking on Main.java and selecting "Run 'Main.main()'"

                • »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  10 years ago, # ^ |
                    Vote: I like it 0 Vote: I do not like it

                  Ok.thanks ..Thats certainly a better way

    • »
      »
      »
      10 years ago, # ^ |
      Rev. 2   Vote: I like it 0 Vote: I do not like it

      Done ..thanks :)

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I'll investigate

  • »
    »
    9 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Strange. I have also used CHelper but it was ok parsing task C.

»
9 years ago, # |
  Vote: I like it -10 Vote: I do not like it

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, # ^ |
      Vote: I like it +5 Vote: I do not like it

    Yes, it seems so. I will release fix as quick as I would have some free time

    • »
      »
      »
      9 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Will CHelper be autoupdated or no?

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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, # ^ |
      Vote: I like it 0 Vote: I do not like it

    You can always do it by clicking stop button (red square)

    • »
      »
      »
      9 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      today had this problem... while solving problem A, IDEA became unresponsible... so could not even click that red button.

      • »
        »
        »
        »
        9 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        I'm not sure Timer would response then (as it is in separate thread)

        • »
          »
          »
          »
          »
          9 years ago, # ^ |
            Vote: I like it 0 Vote: I do not like it

          Maybe you know any methods for "killing" such tasks except rebooting?

          Thx.

          • »
            »
            »
            »
            »
            »
            9 years ago, # ^ |
              Vote: I like it 0 Vote: I do not like it

            For me Idea always eventualy stop hanging

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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, # ^ |
      Vote: I like it 0 Vote: I do not like it

    This is known problem and will be fixed as soon as I willhave time

»
9 years ago, # |
  Vote: I like it +1 Vote: I do not like it

Version 2.41 with CodeChef fix released

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

how to use CHelper in ubuntu?

  • »
    »
    9 years ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    Install IntelliJ IDEA and follow instructions above. I am using it under Ubuntu — works fine.

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

After archiving a task, the month number is incorrect. Calendar.getInstance().get(Calendar.MONTH) returns month number base on 0.

  • »
    »
    9 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    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, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

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?

»
8 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

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   Vote: I like it 0 Vote: I do not like it

    It's working for me i just changed the Chelper dependency scope from "Provided" to "Compile"

    • »
      »
      »
      5 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Could you mention how you did that?

      • »
        »
        »
        »
        5 years ago, # ^ |
          Vote: I like it +1 Vote: I do not like it

        (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.