Movatterモバイル変換


[0]ホーム

URL:



Codeforces
In EnglishПо-русски
Enter |Register



→ Pay attention
→ Top rated
#UserRating
1Kevin1145143765
2tourist3757
3Benq3738
4jiangly3705
5orzdevinwang3670
6ksun483668
7Radewoosh3531
8maroonrk3443
9dXqwq3436
10Nachia3432
Countries |Cities |OrganizationsView all →
→ Top contributors
#UserContrib.
1Um_nik169
2Qingyu164
3errorgorn163
4adamant158
5cry153
6Proof_by_QED152
7Dominater069150
8TheScrasse143
8soullless143
10Arpa141
View all →
→ Find user
→ Recent actions
Detailed →

Egor's blog

By Egor,14 years ago, translation,In English
    1. Installation
    You need to download plug-in and configuration. Plug-in should go to %home_dir%\.IntelliJIdea10\config\plugins (if directory plugins is absent you need to create it), also you should include chelper.jar to class path of your project (Project Structure -> Dependencies -> Add Single Entry Module Library...). After that you need to edit configuration (see next section) and put it in project root. That's it — you are all set. For TopCoder you would need moj plugin for Arena, manual and download link is here

    2. Configuration
    As a general note, if some property in configuration represents a folder you must enter relative path from project root (using / instead of )
    inputClass - full qualified name of class used for input (like java.util.Scanner). This class should implement method next that returns String — next token from input — and it should have constructor that takes InputStream as only argument
    outputClass - full qualified name of class used for output (like java.io.PrintWriter). Ouput class shoud has constructor, that take OuputStream and one that take Writer as parameter and also method close.
    excludePackages - comma separated list of package prefixes. Classes from such packages would not be inlined but rather imported. In most cases you should leave it as is
    outputDirectory - directory where full source code would be stored. Should be under source and in default package (for example, if you create standart idea project, "src" spould be ok)
    author - content of @author tag in. If empty no author tag would be created
    archiveDirectory - directory where tasks would be archived. Should not be under source
    defaultDirectory - direcory where tasks would be created by default. Should be under source in non-default package (for example src/my/package)
    topcoderDirectory - directory where moj puts its TopCoder stubs. Should be under source in default package (e.g. src)
    enableUnitTests - should be true if you want unit tests to be created and false otherwise
    testDirectory - directory where tests would be stored. Shoud be under source
    After configuration change you need to reload project for changes to take effect

    3. Actions
    I would recommend to add following actions on main toolbar (Customize Menus and Toolbars... from context menu of toolbar, actions are in Plug-ins->CHelper): New Task, Edit Tests, Archive Task, Delete Task, Create Codeforces Tasks.



    New Task (Alt+F2) — creates new task in defaultDirectory
    Edit Tests (Alt+F5) — opens test editor

    Archive Task (Alt+F6) — archives task (deletes all it files and stores them in archive, also creates unit tests if configured to do so)
    Delete Task - deletes task and all associated files
    Parse Contest - creates all tasks for particular contest (currently Codeforces, CodeChef, E-Olimp and Timus are supported).

    Parse Task - creates single task.

    SiteContest IDProblemset task IDContest task ID
    Codeforcescontest_id (131)contest_id letter (131 A)contest_id letter (131 A)
    CodeChefcontest_code (NOV11)problem_code (GCD2)contest_code problem_code
    (NOV11 DOMNOCUT)
    Timuscontest_id (101)problem_id (1000)contest_id problem_number (101 1)
    Copy Source (Alt+F8) — copies content of Main.java to clipboard. This is useful for judges that do not support submission of file

    4. New Task dialog

    Name - task class name
    Test type - type of tests — either single test per file, number of tests and then tests themselves or just some tests until some condition is met. You need to throw UnknownError in last case to indicate that there would be no more tests
    Input type/Output type - input/output type. Standard — stdin/stdout, Task_id — file input/output with file names %Name%.toLowerCase() + ".in"/".out", Custom — just file input/output, names provided in separate text fields
    Heap memory - memory limit
    Stack memory - stack size limit (defaults are same as codeforces)

    5. Task files
    For each task 2 files is creates. In main task class there is one method:
    void solve(int testNumber, %input% in, %output% out)
    testNumber — 1-based index of test in file
    In checker class there are 3 methods:
    String check(%input% input, %input% expected, %input% actual)
    should return null if answer is correct, non empty string if answer is wrong and empty string to run default checker
    double getCertainty()
    returns certainty for double comparision in default checker
    Collection<? extends Test> generateTests()
    additional generated tests

    For TopCoder tasks the only class would contain method from problem statement. Task would be created automatically when you opens problem in TopCoder client (if moj properly configured)
    • Vote: I like it
    • +29
    • Vote: I do not like it

    14 years ago,show (+1)#
    14 years ago,hide#|
     
    Vote: I like it0Vote: I do not like it
    Can I use IntelliJIdea to code in C++ ? Are there some plug-in to do that ?
    14 years ago,show (+1)#
    14 years ago,hide#|
     
    Vote: I like it0Vote: I do not like it
    I have a problem,when go add actions , not show me plugin chelper :(,
    • 14 years ago,show (+1)#
      14 years ago,hide#^|
       
      Vote: I like it+1Vote: I do not like it
      You either had not copied it to correct folder or had not restarted Idea since
      • 14 years ago,show#
        14 years ago,hide#^|
         
        Vote: I like it0Vote: I do not like it
        thanks :=) is cool !
        • 12 years ago,show (+1)#
          12 years ago,hide#^|
           
          Vote: I like it0Vote: I do not like it

          I installed CHelper from Browse Repository and Restarted the IDE after that I Added All CHelper Icons after Main Toolbar From Menus and Toolbars and I opened Edit Project Settings And When I parse Contest And Press OK NullPointerException And Message null is generated I am not be able install It Correctly plz help me...sorry for my English

      »
      14 years ago,show#
      »
      14 years ago,hide#|
       
      Vote: I like it0Vote: I do not like it
      So, Egor, you are using IntelliJ IDEA as your main IDE for contests ?
      Thx :D
        »
        14 years ago,show (+1)#
        »
        14 years ago,hide#|
        Rev.2  
        Vote: I like it0Vote: I do not like it

        I have some problems with your CHelper - plugin :-?

        I've tried it with both IntelliJ IDEA 11 and 10, and I can't get it working
        I did it in order :
        1. Install IntelliJ IDEA 10
        2. Copy chelper2.33.jar to config/plugins directory
        3. Add CHelper's actions to the toolbar
        4. Create new Java Module project (with src directory)
        5. Copy chelper.properties to src directory
        6. Add chelper2.33.jar to the new project's classpath
        7. Try the Chelper's actions ... and it didn't work ...

        Anybody has the same issue ?

        Thx alot :)
        • »
          »
          14 years ago,show (+1)#
          »
          »
          14 years ago,hide#^|
           
          Vote: I like it0Vote: I do not like it
          Had you restarted Idea after copying chelper.properties?
          • »
            »
            »
            14 years ago,show (+1)#
            »
            »
            »
            14 years ago,hide#^|
             
            Vote: I like it0Vote: I do not like it
            yes, I had :(

            thx for your reply :D
            • »
              »
              »
              »
              14 years ago,show (+1)#
              »
              »
              »
              »
              14 years ago,hide#^|
               
              Vote: I like it0Vote: I do not like it
              Just noticed - you copied chelper.properties to src directory, but it should be in project root
              • »
                »
                »
                »
                »
                14 years ago,show (+1)#
                »
                »
                »
                »
                »
                14 years ago,hide#^|
                 
                Vote: I like it0Vote: I do not like it
                thank you for your support, it's working now :D

                oh, if i change my settings in chelper.properties, i will also restart the IDE too ?
                • »
                  »
                  »
                  »
                  »
                  »
                  14 years ago,show (+1)#
                  »
                  »
                  »
                  »
                  »
                  »
                  14 years ago,hide#^|
                   
                  Vote: I like it+3Vote: I do not like it
                  Yep, would change it in next version
                  • »
                    »
                    »
                    »
                    »
                    »
                    »
                    14 years ago,show (+1)#
                    »
                    »
                    »
                    »
                    »
                    »
                    »
                    14 years ago,hide#^|
                     
                    Vote: I like it0Vote: I do not like it
                    oh, can i have another question, please ?

                    How can I define my own Input Class ? Is there any "template" feature ?
                    • »
                      »
                      »
                      »
                      »
                      »
                      »
                      »
                      14 years ago,show (+1)#
                      »
                      »
                      »
                      »
                      »
                      »
                      »
                      »
                      14 years ago,hide#^|
                       
                      Vote: I like it+3Vote: I do not like it
                      You just need to make sure that your class takes InputStream as argument and has method next, which returns next token from input as string. Everything else you can write as you like
                      • »
                        »
                        »
                        »
                        »
                        »
                        »
                        »
                        »
                        14 years ago,show#
                        »
                        »
                        »
                        »
                        »
                        »
                        »
                        »
                        »
                        14 years ago,hide#^|
                         
                        Vote: I like it0Vote: I do not like it
                        I mean that how can I put my class definition automatically :-?

                        Should I copy & paste it manually to the Main.java ?
                        • »
                          »
                          »
                          »
                          »
                          »
                          »
                          »
                          »
                          14 years ago,show#
                          »
                          »
                          »
                          »
                          »
                          »
                          »
                          »
                          »
                          14 years ago,hide#^|
                           
                          Vote: I like it0Vote: I do not like it
                          You just need to write class and put it somewhere under your source (e.g. in src/nova directory) and then fill nova.MyInputClass under inputClass in chelper.properties
                          • »
                            »
                            »
                            »
                            »
                            »
                            »
                            »
                            »
                            14 years ago,show#
                            »
                            »
                            »
                            »
                            »
                            »
                            »
                            »
                            »
                            14 years ago,hide#^|
                             
                            Vote: I like it0Vote: I do not like it
                            thx to your helping, i've got it working :D

                            also thx for such an useful, and ... wow plug-in :D :D :D
                            • »
                              »
                              »
                              »
                              »
                              »
                              »
                              »
                              »
                              14 years ago,show#
                              »
                              »
                              »
                              »
                              »
                              »
                              »
                              »
                              »
                              14 years ago,hide#^|
                              Rev.2  
                              Vote: I like it0Vote: I do not like it

                              deleted

                »
                14 years ago,show (+1)#
                »
                14 years ago,hide#|
                Rev.2  
                Vote: I like it0Vote: I do not like it

                To Egor,

                Your plugin have a few "bugs" with Topcoder SRM Task :D. I've used it on SRM 530 and 531 and found some issues :D

                1. CHelper can't "parse" the task. When I open a task, there is only moj created code file and it isn't parsed into CHelper's TopCoder Task. I had this issue with task UnsortedSequence (SRM 531 — Div 2 — 250 Task), another tasks just work fine :)

                2. Wrong example input/output parsed. I'm not sure it's CHelper's problem or just moj's :-?. Had this issue with task GogoXCake (SRM 530 — Div 2 — 500 Task), another tasks just work fine :)

                Just a "report" for you :D, hope you will see and fix them soon :D

                Again, thanks for such an useful plugin :D

                »
                14 years ago,show (+1)#
                »
                14 years ago,hide#|
                 
                Vote: I like it0Vote: I do not like it

                There is problem on creating ,parsing contest,none function work from toolbar

                • »
                  »
                  14 years ago,show (+1)#
                  »
                  »
                  14 years ago,hide#^|
                   
                  Vote: I like it0Vote: I do not like it

                  Nothing is working or only contest parsing?

                  • »
                    »
                    »
                    14 years ago,show (+1)#
                    »
                    »
                    »
                    14 years ago,hide#^|
                     
                    Vote: I like it0Vote: I do not like it

                    Now contest parsing work ,how will it generate automatically Main file,it is not working

                    • »
                      »
                      »
                      »
                      14 years ago,show (+1)#
                      »
                      »
                      »
                      »
                      14 years ago,hide#^|
                       
                      Vote: I like it0Vote: I do not like it

                      It should generate the Main file when you run or debug created configuration

                      • »
                        »
                        »
                        »
                        »
                        12 years ago,show#
                        »
                        »
                        »
                        »
                        »
                        12 years ago,hide#^|
                        Rev.2  
                        Vote: I like it0Vote: I do not like it

                        Hi Egor. This is my configuration: default dir: src/main Archive dir: archive/unsorted Output dir: src Input class: net.egork.chelper.util.InputReader Output class: net.egork.chelper.util.OutputWriter

                        When I click onRun the selected configuration, it successfully generates a Main.java file under src (so src/Main.java). The generated file includes the classes from your library but the methods are empty. This is what I get:

                        class InputReader {    public InputReader(java.io.InputStream stream) { /* compiled code */ }    public int readInt() { /* compiled code */ }    }

                        So, I'm getting compile errors.

                        I installed according tohttps://code.google.com/p/idea-chelper/wiki/MainPage Intellij IDEA 12.1.4 @ Windows

                        any hints?

                        UPD: If I leave the output dir empty, it compiles correctly:

                        - before compiling, it yields "outputDirectory should be under source and in default package".- it then generates the file on the project root directory (so, on the same level as the src directory). The file still has empty methods for your library classes with /* compiled code */ bodies.- I created a sample case and it correctly showed me the results on the intellij console.
                  »
                  14 years ago,show (+1)#
                  »
                  14 years ago,hide#|
                   
                  Vote: I like it0Vote: I do not like it

                  Hi Egor, Can you tell me how the inline functions work...I cannot figure it out..Suppose I have a method isPrime(int) that returns whether the number is prime or not.I want to use it directly and not write the whole thing everytime.I think the inline code does exactly this.But I dont know how to use it.Could you tell me or better demonstrate it with an example???

                  • »
                    »
                    14 years ago,show (+1)#
                    »
                    »
                    14 years ago,hide#^|
                     
                    Vote: I like it0Vote: I do not like it

                    You need to create some class, like IntegerUtils and create static method isPrime. Then you can use it in your solutions

                    • »
                      »
                      »
                      14 years ago,show (+1)#
                      »
                      »
                      »
                      14 years ago,hide#^|
                       
                      Vote: I like it0Vote: I do not like it

                      And where do I have to save that class??

                      • »
                        »
                        »
                        »
                        14 years ago,show (+1)#
                        »
                        »
                        »
                        »
                        14 years ago,hide#^|
                         
                        Vote: I like it0Vote: I do not like it

                        Anywhere it will be visible fromyour solution

                        • »
                          »
                          »
                          »
                          »
                          14 years ago,show (+1)#
                          »
                          »
                          »
                          »
                          »
                          14 years ago,hide#^|
                           
                          Vote: I like it0Vote: I do not like it

                          I created a class algorithms in src and a static method isPrime(Object a) in that.Then I compiled it. After that when I go to a Task and write boolean check=algorithms.isPrime((Object)a) ,then it is shown in red .i.e. it cannot compile...What should I do...Should I have to restart??

                          • »
                            »
                            »
                            »
                            »
                            »
                            14 years ago,show (+1)#
                            »
                            »
                            »
                            »
                            »
                            »
                            14 years ago,hide#^|
                             
                            Vote: I like it+2Vote: I do not like it

                            Are you sure your method was public?

                            • »
                              »
                              »
                              »
                              »
                              »
                              »
                              14 years ago,show (+1)#
                              »
                              »
                              »
                              »
                              »
                              »
                              »
                              14 years ago,hide#^|
                               
                              Vote: I like it0Vote: I do not like it

                              Yes it is public...Do I have to change something in the properties file or put the class in a directory under the src??

                              • »
                                »
                                »
                                »
                                »
                                »
                                »
                                »
                                14 years ago,show (+1)#
                                »
                                »
                                »
                                »
                                »
                                »
                                »
                                »
                                14 years ago,hide#^|
                                 
                                Vote: I like it+1Vote: I do not like it

                                Well, it should be somewhere under source — just like for any Java project

                                • »
                                  »
                                  »
                                  »
                                  »
                                  »
                                  »
                                  »
                                  »
                                  14 years ago,show#
                                  »
                                  »
                                  »
                                  »
                                  »
                                  »
                                  »
                                  »
                                  »
                                  14 years ago,hide#^|
                                   
                                  Vote: I like it0Vote: I do not like it

                                  Ok. now its working .When I created a new directory under src and put the class in it.Thanks for the replies and your time:-) The thing I dont like in this is that it is showing all the methods in that class even if it is not called but some other method of that class is called ..Can this be changed??

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

                                    In the created source (the one you will submit to the server) all unused methods will be removed

                                    • »
                                      »
                                      »
                                      »
                                      »
                                      »
                                      »
                                      »
                                      »
                                      14 years ago,show#
                                      »
                                      »
                                      »
                                      »
                                      »
                                      »
                                      »
                                      »
                                      »
                                      14 years ago,hide#^|
                                       
                                      Vote: I like it0Vote: I do not like it

                                      When I submitted a problem in topcoder SRM 535 using IntegerUtils class it gave an error regarding too much unused code.I think that inline code is not working..Its definatley not working on codechef where I can see my submitted solution

                                      • »
                                        »
                                        »
                                        »
                                        »
                                        »
                                        »
                                        »
                                        »
                                        14 years ago,show#
                                        »
                                        »
                                        »
                                        »
                                        »
                                        »
                                        »
                                        »
                                        »
                                        14 years ago,hide#^|
                                         
                                        Vote: I like it0Vote: I do not like it

                                        That is bug in TopCoder algorithm, I receive that warning quite regular, but never had my submission judged as UCR violation after I started to use Java. Can you point to your codechef submit where inlining/unused code removal had not worked?

                                        • »
                                          »
                                          »
                                          »
                                          »
                                          »
                                          »
                                          »
                                          »
                                          14 years ago,show#
                                          »
                                          »
                                          »
                                          »
                                          »
                                          »
                                          »
                                          »
                                          »
                                          14 years ago,hide#^|
                                           
                                          Vote: I like it0Vote: I do not like it

                                          I have messaged it to you.

                                          • »
                                            »
                                            »
                                            »
                                            »
                                            »
                                            »
                                            »
                                            »
                                            14 years ago,show#
                                            »
                                            »
                                            »
                                            »
                                            »
                                            »
                                            »
                                            »
                                            »
                                            14 years ago,hide#^|
                                             
                                            Vote: I like it0Vote: I do not like it

                                            Checkemo's comment at the bottom, maybe you have same problem

                              »
                              14 years ago,show (+1)#
                              »
                              14 years ago,hide#|
                               
                              Vote: I like it0Vote: I do not like it

                              I was solving a problem of Light OJ, but seems unused codes are not removed in my Main File.

                              Here is my code:http://ideone.com/gsgDb

                              Here readLong is not removed, which is actually unused.

                              • »
                                »
                                14 years ago,show (+1)#
                                »
                                »
                                14 years ago,hide#^|
                                 
                                Vote: I like it0Vote: I do not like it

                                Strange, not repetable on my computer By the way, you can use Test Type: MULTI_TEST, that's exactly why that type was created

                                • »
                                  »
                                  »
                                  14 years ago,show (+1)#
                                  »
                                  »
                                  »
                                  14 years ago,hide#^|
                                   
                                  Vote: I like it0Vote: I do not like it

                                  Did you mean MULTI_NUMBER?

                                  BTW, do you suggest me to do anything to make unused code remove working? I'm using chelper2.33.

                                  • »
                                    »
                                    »
                                    »
                                    14 years ago,show (+1)#
                                    »
                                    »
                                    »
                                    »
                                    14 years ago,hide#^|
                                    Rev.2  
                                    Vote: I like it0Vote: I do not like it

                                    Yes

                                    It seems for whatever reason Idea considers readLong method as used. Could you open your created source (i.e. Main.java) in Idea and see if method name is grayed out as unused or not?

                                    • »
                                      »
                                      »
                                      »
                                      »
                                      14 years ago,show#
                                      »
                                      »
                                      »
                                      »
                                      »
                                      14 years ago,hide#^|
                                       
                                      Vote: I like it0Vote: I do not like it

                                      Yes, it was grayed out.

                                      But problem is resolved now.

                                      I changed outputDirectory = src from outputDirectory = src/output

                                      And now it's working. Sorry, I think I didn't read the instructions carefully.

                                      Thanks for this awesome software.

                                »
                                14 years ago,show (+1)#
                                »
                                14 years ago,hide#|
                                Rev.3  
                                Vote: I like it0Vote: I do not like it

                                I changed the properties file and it does work for codeforces and codechef. And when I see my code at the topcoder practise arena it does indeed have the unused codes+every time I run the code for topcoder problems it gives a warning "OutPut directory should be under source and in defualt package " for only topcoder problems but then it runs...What should be done??

                                • »
                                  »
                                  14 years ago,show#
                                  »
                                  »
                                  14 years ago,hide#^|
                                   
                                  Vote: I like it0Vote: I do not like it

                                  I had the same problem but it seems I had not configured my directories correctly. Now, it's ok. My directories in properties are: outputDirectory = src, archiveDirectory = archive/unsorted, defaultDirectory = src/mypackage, topcoderDirectory = src And make sure moj outputs to your src directory. Thanks for the great plugin, Egor!

                                  »
                                  14 years ago,show#
                                  »
                                  14 years ago,hide#|
                                   
                                  Vote: I like it0Vote: I do not like it

                                  Thank you for your plugin. It's great.

                                    »
                                    13 years ago,show (+1)#
                                    »
                                    13 years ago,hide#|
                                    Rev.3  
                                    Vote: I like it0Vote: I do not like it

                                    Thank you for your great work! But I can't find the "%home_dir%.IntelliJIdea10configplugins" means, so I can't continue to set up this plugin in my PC corrcetly.. Help! Thank you!

                                    • »
                                      »
                                      13 years ago,show (+1)#
                                      »
                                      »
                                      13 years ago,hide#^|
                                      Rev.2  
                                      Vote: I like it0Vote: I do not like it

                                      Launch IntelliJ and choose

                                      File -> Settings -> Plugins -> Install plugin from disk -> path_to_chelper2.41.jar

                                      • »
                                        »
                                        »
                                        13 years ago,show (+1)#
                                        »
                                        »
                                        »
                                        13 years ago,hide#^|
                                         
                                        Vote: I like it0Vote: I do not like it

                                        Thank you for your reply! But I mean I don't know where to mkdir the IntelliJIdea10configplugins, that means I don't what "“%home_dir%" mean. Is it the Home directory "~/"? Thank you!

                                        • »
                                          »
                                          »
                                          »
                                          13 years ago,show (+1)#
                                          »
                                          »
                                          »
                                          »
                                          13 years ago,hide#^|
                                           
                                          Vote: I like it0Vote: I do not like it

                                          I fixed path that got broken after markdown introduction

                                          Yes, that's home directory

                                          • »
                                            »
                                            »
                                            »
                                            »
                                            13 years ago,show (+1)#
                                            »
                                            »
                                            »
                                            »
                                            »
                                            13 years ago,hide#^|
                                             
                                            Vote: I like it0Vote: I do not like it

                                            BTW, in the Checker file, there are some imports I can not find in the project.. They are "import net.egork.chelper.task.Test; import net.egork.chelper.tester.Verdict;" And my config is " inputClass = lozy.InputReader outputClass = java.io.PrintWriter excludePackages = java.,javax.,com.sun. outputDirectory = src author = Lozy archiveDirectory = archive/unsorted defaultDirectory = src/cf topcoderDirectory = topcoder testDirectory = lib/test enableUnitTests = false " Is there any problem in my config file or should I do some other works? Thanks a lot!

                                            • »
                                              »
                                              »
                                              »
                                              »
                                              »
                                              13 years ago,show#
                                              »
                                              »
                                              »
                                              »
                                              »
                                              »
                                              13 years ago,hide#^|
                                               
                                              Vote: I like it0Vote: I do not like it

                                              "...also you should include chelper.jar to class path of your project (Project Structure -> Dependencies -> Add Single Entry Module Library…)"

                                      »
                                      13 years ago,show (+1)#
                                      »
                                      13 years ago,hide#|
                                       
                                      Vote: I like it0Vote: I do not like it

                                      how can i use chelper in eclipse IDE ?

                                      »
                                      12 years ago,show#
                                      »
                                      12 years ago,hide#|
                                      Rev.3  
                                      Vote: I like it0Vote: I do not like it

                                      Google

                                      1. That’s an error.

                                      Request not allowed from your country That’s all we know.

                                      Why?UPD: Fixed!I downloaded it whit VPN. :)

                                        »
                                        12 years ago,hide#|
                                         
                                        Vote: I like it0Vote: I do not like it

                                        Why I can't open and Install ? I have installed Java before !

                                        »
                                        12 years ago,hide#|
                                         
                                        Vote: I like it0Vote: I do not like it

                                        When I use static imports in Task class it will not appear in the generated Main class which will produce some compilation errors. Is there a fix (a way to have a predefined Main class)?

                                        »
                                        12 years ago,show#
                                        »
                                        12 years ago,hide#|
                                         
                                        Vote: I like it0Vote: I do not like it

                                        Great plugin !

                                          »
                                          12 years ago,show (+1)#
                                          »
                                          12 years ago,hide#|
                                           
                                          Vote: I like it-8Vote: I do not like it

                                          Egor How Can I change the template code that generates automatically in the main? solver class name?

                                          »
                                          12 years ago,show (+1)#
                                          »
                                          12 years ago,hide#|
                                          Rev.2  
                                          Vote: I like it0Vote: I do not like it

                                          Egor, great thanks for your plugin, it makes me efficient! I use it on IDEA 12 on MacOS and I have 2 questions:

                                          1. Every time When I submit a task I have to change i/o streams otherwise, I receive next error during submission: java.lang.RuntimeException: java.io.FileNotFoundException: стандартный ввод (The system cannot find the file specified) at Main.main(Main.java:22)

                                          2. Sometimes during compilation I receive next error, only main.java removal fixes that: 17:48:32 IllegalStateException: Attempt to modify PSI for non-committed Document!: Attempt to modify PSI for non-committed Document!

                                          Thank you for help!

                                          • »
                                            »
                                            12 years ago,show (+1)#
                                            »
                                            »
                                            12 years ago,hide#^|
                                             
                                            Vote: I like it0Vote: I do not like it
                                            1. Well, if judge uses stdin/stdout you should specify those in your task as well

                                            2. I need a look at you chelper.properties

                                            • »
                                              »
                                              »
                                              11 years ago,show (+1)#
                                              »
                                              »
                                              »
                                              11 years ago,hide#^|
                                              Rev.3  
                                              Vote: I like it0Vote: I do not like it
                                              1. Can you give an example where it is better to do? I change onlyvoid solve method.
                                              2. My chelper.properties:
                                              inputClass = my.InputReaderoutputClass = java.io.PrintWriterexcludePackages = java.,javax.,com.sun.outputDirectory = srcauthor = MatFackarchiveDirectory = archive/unsorteddefaultDirectory = src/mytopcoderDirectory = topcodertestDirectory = lib/testenableUnitTests = false

                                              Thank you a lot for help!

                                              • »
                                                »
                                                »
                                                »
                                                11 years ago,show (+1)#
                                                »
                                                »
                                                »
                                                »
                                                11 years ago,hide#^|
                                                 
                                                Vote: I like it0Vote: I do not like it

                                                On the first point you need to select "Standard stream" for input/output when you creating task. If you are parsing those should be correct automatically

                                                On second point — if you use up to date Idea/plugin — I just don't know what could be wrong

                                          »
                                          12 years ago,show#
                                          »
                                          12 years ago,hide#|
                                           
                                          Vote: I like it+5Vote: I do not like it

                                          In IDEA 13.1.1 I get the following exception when running a task:

                                          17:20:01 IncorrectOperationException: Must not change document outside command or undo-transparent action. See com.intellij.openapi.command.WriteCommandAction or com.intellij.openapi.command.CommandProcessor: Must not change document outside command or undo-transparent action. See com.intellij.openapi.command.WriteCommandAction or com.intellij.openapi.command.CommandProcessor

                                          Works OK in 13.0.

                                            »
                                            12 years ago,show (+1)#
                                            »
                                            12 years ago,hide#|
                                             
                                            Vote: I like it0Vote: I do not like it

                                            When i run the codeforces programm using chelper , I get null pointer exception net.egork.chelper.util.CodeGenerationUtilities$InlineVisitor.addClass(CodeGenerationUtilities.java:534)

                                            My configuration file is: inputClass = net.egork.chelper.util.InputReader outputClass = net.egork.chelper.util.OutputWriter excludePackages = java.,javax.,com.sun. outputDirectory = src/output author = Himalay archiveDirectory = archive/unsorted defaultDirectory = src/main/mypackage topcoderDirectory = topcoder testDirectory = lib/test enableUnitTests = false

                                            »
                                            12 years ago,show (+1)#
                                            »
                                            12 years ago,hide#|
                                             
                                            Vote: I like it+10Vote: I do not like it

                                            Is the plugin supposed to work for GCJ 2014? I am getting the following error when I try to parse a task:

                                            7:37:09 PM CHelper: Unable to parse task B — Cookie Clicker Alpha. Connection problems or format change

                                            • »
                                              »
                                              12 years ago,show#
                                              »
                                              »
                                              12 years ago,hide#^|
                                               
                                              Vote: I like it0Vote: I do not like it

                                              Seems like there was internal format change. Should have checked beforehand but forgot

                                              »
                                              12 years ago,show (+1)#
                                              »
                                              12 years ago,hide#|
                                               
                                              Vote: I like it0Vote: I do not like it

                                              Do you have any plans to update source code athttps://code.google.com/p/idea-chelper/? It seems to be pretty outdated.

                                              • »
                                                »
                                                12 years ago,show#
                                                »
                                                »
                                                12 years ago,hide#^|
                                                 
                                                Vote: I like it0Vote: I do not like it

                                                For some reason actual code is in trunk brink, but it still need push from me

                                                • »
                                                  »
                                                  12 years ago,show#
                                                  »
                                                  »
                                                  12 years ago,hide#^|
                                                   
                                                  Vote: I like it0Vote: I do not like it

                                                  And actual code should be in trunk branch now (through I'm planning to fix GCJ support soon)

                                                  »
                                                  12 years ago,show (+1)#
                                                  »
                                                  12 years ago,hide#|
                                                   
                                                  Vote: I like it0Vote: I do not like it

                                                  Hello, thanks for the plugin ;) It makes some good, but, for me, it works only with TopCoder (not with contest with io).

                                                  I have described my problem (notSuchMethodException) here:http://stackoverflow.com/questions/23383595/chelper-plugin-nosuchmethodexception-error

                                                  Could you please look and help to track the problem?

                                                  • »
                                                    »
                                                    12 years ago,show (+1)#
                                                    »
                                                    »
                                                    12 years ago,hide#^|
                                                     
                                                    Vote: I like it0Vote: I do not like it

                                                    Your output writer class should have constructor that takes writer as parameter (and relays output there). You can use PrintWriter as output class

                                                    • »
                                                      »
                                                      »
                                                      12 years ago,show#
                                                      »
                                                      »
                                                      »
                                                      12 years ago,hide#^|
                                                       
                                                      Vote: I like it0Vote: I do not like it

                                                      It actually had, but after reinstalling plugin from scratch, un-cache-ing idea and doing other random stuff it started working, so sorry for disturbing and thanks again!

                                                    »
                                                    12 years ago,show (+1)#
                                                    »
                                                    12 years ago,hide#|
                                                     
                                                    Vote: I like it0Vote: I do not like it

                                                    I have just started using Chelper , it works perfect with topcoder but with code forces it always don't take the first number in input if contains number i.e ( if input like this 5 4 1 1 1 1 it begins reading from 4 not 5 !!) any help please, i am using scanner for input

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

                                                      Are you sure you do not select "Number of test known" when parsing tasks?

                                                      »
                                                      11 years ago,show (+1)#
                                                      »
                                                      11 years ago,hide#|
                                                      Rev.2  
                                                      Vote: I like it-8Vote: I do not like it

                                                      Exception in thread "main" java.lang.IllegalAccessException: Class net.egork.chelper.tester.NewTester can not access a member of class InputReader with modifiers "public"

                                                      This is what I am getting after executing the debug code option. Any suggestions ..? Note : I am using InputReader and OutputWriter class from your code. @Egor

                                                      »
                                                      11 years ago,show (+1)#
                                                      »
                                                      11 years ago,hide#|
                                                       
                                                      Vote: I like it+2Vote: I do not like it

                                                      Does anybody have any insight into how to speed up running the task in Intellij? Right now I am using Egor's library (which is very helpful btw), and that seems to slow it down as it the compiler links things together I suppose. Overall it take between 15-25 seconds for solution to run for me right now, which is not terribly long but for competitions would be nice if it was a bit faster. I already removed all of my unused plugins and increased stack space but it doesn't seem to make a lot of difference. Has anyone found a way of speeding up Intellij?

                                                      • »
                                                        »
                                                        11 years ago,show (+1)#
                                                        »
                                                        »
                                                        11 years ago,hide#^|
                                                         
                                                        Vote: I like it+3Vote: I do not like it

                                                        Your computer must be very old, since on my 7-years-old Core 2 Duo E6600 the project with Egor's library compiles pretty fast, in about 5 seconds. The same speed is shown by my primitive types collections library (see in my blog). But I once tried to use Trove library and got 15-20 seconds, they have quite large code with lots of abstract classes, which slows down code generation. These numbers are for IDEA 13, maybe your IDE is too old?

                                                        • »
                                                          »
                                                          »
                                                          11 years ago,show#
                                                          »
                                                          »
                                                          »
                                                          11 years ago,hide#^|
                                                          Rev.2  
                                                          Vote: I like it0Vote: I do not like it

                                                          Hm I am not sure if that is the case. I am using a 2012 Macbook Pro Retina, with IDEA 14, with all updates I think. Before installing Egor's library I was getting something like that with around 5 seconds. But anyway thanks for the response, maybe there is some setting that I accidentally enabled or something. Also I am using Java 8, I don't know if that makes a difference. I forget exactly but maybe with Java 7 it was faster.

                                                        • »
                                                          »
                                                          11 years ago,show (+1)#
                                                          »
                                                          »
                                                          11 years ago,hide#^|
                                                          Rev.7  
                                                          Vote: I like it-8Vote: I do not like it

                                                          So just another thing I was wondering about is it fine to have the yaal library under the src folder? I would think that it does not make a difference, but just want to make sure that it does not force some additional recompile or something of the library. Just additional bit of information is that when say I compile topcoder task that does not call from the library (topcoder because codeforces always uses input/output from library) it takes about 1-2 seconds. However as soon as I call a method it can increase to as much as 20 seconds. Just wanted to make sure that this directory setup with the library and everything is the same way that everybody else is doing it. And also another question because I just noticed this but what does the number 4 by the Chelper project folder mean? Thanks!

                                                        »
                                                        10 years ago,show#
                                                        »
                                                        10 years ago,hide#|
                                                        Rev.2  
                                                        Vote: I like it0Vote: I do not like it

                                                        HiEgor , All tools [Create Task , Parse Contest ,all] not working. please help to solve following error :
                                                        NoSuchMethodError: com.intellij.psi.JavaPsiFacade.findClass(Ljava/lang/String;)Lcom/intellij/psi/PsiClass;
                                                        Screenshothttps://drive.google.com/file/d/0B13U1Ij8LVrFUzY1MmhUalBadDQ/view?usp=sharing

                                                        Thanks for nice plugin.

                                                          »
                                                          9 years ago,hide#|
                                                          Rev.2  
                                                          Vote: I like it0Vote: I do not like it
                                                          1. I am not able to parse Contest of Hackerrank, Codechef, Atcoder and Hackerearth. Will these be added later?
                                                          2. I don't like to use Scanner class but CHelper have default as Scanner. How to change it? P.S. I am using CHelper 4.1.7(available on Repositories of JetBrains)
                                                          • »
                                                            »
                                                            9 years ago,show (+1)#
                                                            »
                                                            »
                                                            9 years ago,hide#^|
                                                             
                                                            Vote: I like it0Vote: I do not like it

                                                            Those sites are parsed using chrome extension, you can find it in chrome store

                                                            As for changing input class you can read wiki on github for instructions

                                                            • »
                                                              »
                                                              »
                                                              9 years ago,show (+1)#
                                                              »
                                                              »
                                                              »
                                                              9 years ago,hide#^|
                                                               
                                                              Vote: I like it0Vote: I do not like it

                                                              How to parse the task using Chrome Extension. I have clicked in + button many times but nothing is happening. Neither the IntelliJ is affected nor the other things.

                                                              • »
                                                                »
                                                                »
                                                                »
                                                                9 years ago,show (+1)#
                                                                »
                                                                »
                                                                »
                                                                »
                                                                9 years ago,hide#^|
                                                                 
                                                                Vote: I like it0Vote: I do not like it

                                                                Do you have a project with CHelper configuration opened in Idea? Also it may be that Hackerrank changed their DOM structure once again. Is there anything in Idea log?

                                                                • »
                                                                  »
                                                                  »
                                                                  »
                                                                  »
                                                                  9 years ago,show (+1)#
                                                                  »
                                                                  »
                                                                  »
                                                                  »
                                                                  »
                                                                  9 years ago,hide#^|
                                                                   
                                                                  Vote: I like it0Vote: I do not like it

                                                                  Yes, I have a project opened in Idea with CHelper config. And I ma trying the plugin fro Codechef.

                                                                  • »
                                                                    »
                                                                    »
                                                                    »
                                                                    »
                                                                    »
                                                                    9 years ago,show (+1)#
                                                                    »
                                                                    »
                                                                    »
                                                                    »
                                                                    »
                                                                    »
                                                                    9 years ago,hide#^|
                                                                     
                                                                    Vote: I like it0Vote: I do not like it

                                                                    Can you tell me instructions I have to follow after clicking on parse Task in Google Chrome for any practice question on Codechef or ZCO contest of Codechef. I am assuming my Idea is closed.

                                                                    • »
                                                                      »
                                                                      »
                                                                      »
                                                                      »
                                                                      »
                                                                      »
                                                                      9 years ago,show (+1)#
                                                                      »
                                                                      »
                                                                      »
                                                                      »
                                                                      »
                                                                      »
                                                                      »
                                                                      9 years ago,hide#^|
                                                                       
                                                                      Vote: I like it0Vote: I do not like it

                                                                      Idea should be running. New task dialog should show up when you click on plus in chrome

                                                            • »
                                                              »
                                                              »
                                                              8 years ago,show#
                                                              »
                                                              »
                                                              »
                                                              8 years ago,hide#^|
                                                              Rev.2  
                                                              Vote: I like it0Vote: I do not like it

                                                              Egor Can you share the wiki link you mentioned above for instructions?

                                                            »
                                                            8 years ago,hide#|
                                                             
                                                            Vote: I like it0Vote: I do not like it

                                                            Are there any plugin like CHelper for C++ in CLion IDE?

                                                            »
                                                            8 years ago,show#
                                                            »
                                                            8 years ago,hide#|
                                                             
                                                            Vote: I like it0Vote: I do not like it

                                                            I am not understanding how to generate own test cases for tasks like thosePetr uses in his livestreams. Can anyone please help me out?

                                                              »
                                                              8 years ago,show (+1)#
                                                              »
                                                              8 years ago,hide#|
                                                               
                                                              Vote: I like it0Vote: I do not like it

                                                              I think the new "Copy" feature has caused some problems in parsing the task's Test Cases.

                                                              »
                                                              8 years ago,show#
                                                              »
                                                              8 years ago,hide#|
                                                              Rev.4  
                                                              Vote: I like it0Vote: I do not like it

                                                              One question and one feedback!Egor

                                                              Q: How to use precision for double comparisons? I assume in the advanced settings, I need to put something for "checker properties" field, but what to put?? Any manual page explaining that?

                                                              Feedback: when checking whether all input class and output class methods are implemented, it doesn't look for the necessary methods in super class. So it complains whereas the method exists in super class.

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

                                                                Is there a list of supported sites for CHelper/CHelper Extension? I can't seem to find it anywhere.

                                                                »
                                                                7 years ago,show#
                                                                »
                                                                7 years ago,hide#|
                                                                Rev.2  
                                                                Vote: I like it-11Vote: I do not like it

                                                                Did anyone else face the same issue? For multiple nested classes like _1000E.Bridges.edge, the code in output file converts to _1000E.edge.Bridges, which leads to compilation error.

                                                                  »
                                                                  7 years ago,show (+1)#
                                                                  »
                                                                  7 years ago,hide#|
                                                                   
                                                                  Vote: I like it0Vote: I do not like it

                                                                  Chelper not working after latest update of Intellij Idea
                                                                  Exception in thread "main" java.lang.ClassNotFoundException: soln.TaskA at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at net.egork.chelper.tester.NewTester.test(NewTester.java:75) at net.egork.chelper.tester.NewTester.main(NewTester.java:28)

                                                                  • »
                                                                    »
                                                                    7 years ago,show (+1)#
                                                                    »
                                                                    »
                                                                    7 years ago,hide#^|
                                                                     
                                                                    Vote: I like it0Vote: I do not like it

                                                                    I am working on this, but I am not sure I will finish before the round. You can install previous version temporarily

                                                                    • »
                                                                      »
                                                                      »
                                                                      7 years ago,show (+1)#
                                                                      »
                                                                      »
                                                                      »
                                                                      7 years ago,hide#^|
                                                                       
                                                                      Vote: I like it0Vote: I do not like it

                                                                      Ok. Thank you. for temporary purpose when I run the tasks created before this update and then run newly created task , it works fine.

                                                                      • »
                                                                        »
                                                                        »
                                                                        »
                                                                        7 years ago,show (+1)#
                                                                        »
                                                                        »
                                                                        »
                                                                        »
                                                                        7 years ago,hide#^|
                                                                         
                                                                        Vote: I like it0Vote: I do not like it

                                                                        For some reason new version of idea skips on compiling before running corresponding configuration types. I fixed this, you can download new version from repository

                                                                        • »
                                                                          »
                                                                          »
                                                                          »
                                                                          »
                                                                          7 years ago,show#
                                                                          »
                                                                          »
                                                                          »
                                                                          »
                                                                          »
                                                                          7 years ago,hide#^|
                                                                           
                                                                          Vote: I like it0Vote: I do not like it

                                                                          Thanks man for such instant response. Love from java user.

                                                                          • »
                                                                            »
                                                                            »
                                                                            »
                                                                            »
                                                                            7 years ago,show (+1)#
                                                                            »
                                                                            »
                                                                            »
                                                                            »
                                                                            »
                                                                            7 years ago,hide#^|
                                                                             
                                                                            Vote: I like it0Vote: I do not like it

                                                                            Have you updated it in Plugins of IDEA. As this update is not showing there, so the problem still persists.

                                                                            • »
                                                                              »
                                                                              »
                                                                              »
                                                                              »
                                                                              »
                                                                              7 years ago,show (+1)#
                                                                              »
                                                                              »
                                                                              »
                                                                              »
                                                                              »
                                                                              »
                                                                              7 years ago,hide#^|
                                                                               
                                                                              Vote: I like it0Vote: I do not like it
                                                                              • »
                                                                                »
                                                                                »
                                                                                »
                                                                                »
                                                                                »
                                                                                »
                                                                                7 years ago,show (+1)#
                                                                                »
                                                                                »
                                                                                »
                                                                                »
                                                                                »
                                                                                »
                                                                                »
                                                                                7 years ago,hide#^|
                                                                                 
                                                                                Vote: I like it0Vote: I do not like it

                                                                                I'm still using version 4.3.1 because 4.4.2 doesn't work. I was unable to compete in 499 round just because i updated chelper as idea suggested me and after that i returned 4.3.1.

                                                                                • »
                                                                                  »
                                                                                  »
                                                                                  »
                                                                                  »
                                                                                  »
                                                                                  »
                                                                                  »
                                                                                  7 years ago,show (+1)#
                                                                                  »
                                                                                  »
                                                                                  »
                                                                                  »
                                                                                  »
                                                                                  »
                                                                                  »
                                                                                  »
                                                                                  7 years ago,hide#^|
                                                                                   
                                                                                  Vote: I like it0Vote: I do not like it

                                                                                  How exactly it does not work? And what version of idea do you use?

                                                                                  • »
                                                                                    »
                                                                                    »
                                                                                    »
                                                                                    »
                                                                                    »
                                                                                    »
                                                                                    »
                                                                                    »
                                                                                    7 years ago,show#
                                                                                    »
                                                                                    »
                                                                                    »
                                                                                    »
                                                                                    »
                                                                                    »
                                                                                    »
                                                                                    »
                                                                                    »
                                                                                    7 years ago,hide#^|
                                                                                     
                                                                                    Vote: I like it0Vote: I do not like it

                                                                                    I don't know if this is magic but I updated idea version from 2018.1 to 2018.2 and now it works. I'm sorry and thank you =).

                                                                                    • »
                                                                                      »
                                                                                      »
                                                                                      »
                                                                                      »
                                                                                      »
                                                                                      »
                                                                                      »
                                                                                      »
                                                                                      7 years ago,show#
                                                                                      »
                                                                                      »
                                                                                      »
                                                                                      »
                                                                                      »
                                                                                      »
                                                                                      »
                                                                                      »
                                                                                      »
                                                                                      7 years ago,hide#^|
                                                                                       
                                                                                      Vote: I like it0Vote: I do not like it

                                                                                      It seems new version do not work with old versions of idea

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

                                                                                        Same occured with me. correctly parsing task after IDEA update. Everything is working again.

                                                                          »
                                                                          7 years ago,show (+1)#
                                                                          »
                                                                          7 years ago,hide#|
                                                                          Rev.4  
                                                                          Vote: I like it0Vote: I do not like it

                                                                          CHelper Setup Steps: (as of July 2018)

                                                                          • Download and install the latest version of IntelliJ
                                                                          • Create a new empty java project
                                                                          • Copy thechelper.properties file to the root folder of the project
                                                                          • From the plugin browser install the latest version of CHelper (restart idea)
                                                                          • Do not copy any chelper jar manually anywhere, those instructions are deprecated
                                                                          • In the chelper.properties file make sure the paths assigned to archiveDirectory, defaultDirectory, outputDirectory and testDirectory are inside src/ or otherwise marked as source folders
                                                                          • Optionally "Edit Project Settings" and use InputReader and OutputWriter as in/out classes (the are part of the chelper library)
                                                                          • Optionally downloadhttps://github.com/EgorKulikov/yaal/tree/master/lib/main/net/egork to have access to a lot of implemented algorithms. Add it to the src/ folder
                                                                          • Optionally install the Competitive Companion chrome/firefox extension. It works magically
                                                                          • »
                                                                            »
                                                                            7 years ago,show (+1)#
                                                                            »
                                                                            »
                                                                            7 years ago,hide#^|
                                                                             
                                                                            Vote: I like it0Vote: I do not like it

                                                                            archiveDirectory actually may not be in source, while it is not mandatory for outputDirectory to be a source one. Otherwise — sound advice

                                                                            • »
                                                                              »
                                                                              »
                                                                              6 years ago,show (+1)#
                                                                              »
                                                                              »
                                                                              »
                                                                              6 years ago,hide#^|
                                                                              Rev.3  
                                                                              Vote: I like it0Vote: I do not like it

                                                                              I have followed the advice above. I can generate some files using "Parse Contest" button, but:

                                                                              • tests are not parsed (when I click Edit Tests, it's empty)
                                                                              • Google Chrome plugin doesn't work (nothing happens when I open Codeforces page)
                                                                              • also, when Main.java is generated, it doesn't contain implementation of the InputReader and OutputWriter (in the project settings, I've specified net.egork.chelper.util.InputReader and net.egork.chelper.util.OutputWriter). Instead, it contains this:
                                                                                  static class InputReader extends InputStream {        InputReader;        int read();        int readInt();        String readString();    }    static class OutputWriter {        OutputWriter;        void print;        void close();    }

                                                                              Any idea what I may be missing?

                                                                              I use

                                                                              • macOS Mojave Version 10.14.5
                                                                              • IntelliJ IDEA 2019.1.3 (Community Edition)
                                                                              • IDEA Plugin v4.4.2
                                                                              • Google Chrome Version 75.0.3770.100 (Official Build) (64-bit)
                                                                              • Chrome CHelper extension 4.4.3.1
                                                                              • »
                                                                                »
                                                                                »
                                                                                »
                                                                                6 years ago,show (+1)#
                                                                                »
                                                                                »
                                                                                »
                                                                                »
                                                                                6 years ago,hide#^|
                                                                                Rev.3  
                                                                                Vote: I like it0Vote: I do not like it

                                                                                OK, I kinda made it work by the following actions:

                                                                                1. Switched to Windows 10 instead of macOS
                                                                                2. I realized that the reason why InputReader and OutputWriter implementations were missing was that the plugin had nowhere to take the source code from. So, I downloaded the library fromhttps://github.com/EgorKulikov/yaal/tree/master/lib/main/net/egork and in the settings, changed net.egork.chelper.util.InputReader and net.egork.chelper.util.OutputWriter to net.egork.io.InputReader and net.egork.io.OutputWriter, respectively.
                                                                                3. Added IDEA to the firewall exceptions

                                                                                Now:

                                                                                1. Main.java is generated and compiled successfully
                                                                                2. Competitive Companion chrome extension works (I didn't try CHelper extension on Windows)
                                                                                3. Tests are parsed when I add a task through the Chrome extension

                                                                                However:

                                                                                1. Tests are not parsed when I add a task through "Parse Contest" button in IDEA
                                                                                2. I cannot find out how to generate JUnit tests. I have checked the "Enable Unit Tests" checkbox in the project settings and made sure Test directory is correct. But, nothing happens
                                                                                3. I would still love to make it work on Mac, so any advice is appreciated
                                                                          »
                                                                          7 years ago,show (+1)#
                                                                          »
                                                                          7 years ago,hide#|
                                                                           
                                                                          Vote: I like it0Vote: I do not like it

                                                                          Installed Chelper from the repository in idea and then restarted idea.But none of the action is working. Also nothing opens when parse a problem from the browser. (Using Ubuntu operating system)

                                                                          »
                                                                          7 years ago,show (+1)#
                                                                          »
                                                                          7 years ago,hide#|
                                                                           
                                                                          Vote: I like it0Vote: I do not like it

                                                                          where to find the chelper.properties file

                                                                          »
                                                                          7 years ago,show#
                                                                          »
                                                                          7 years ago,hide#|
                                                                          Rev.2  
                                                                          Vote: I like it0Vote: I do not like it

                                                                          Hi Egor, when parsing Codeforces tasks in IDEA, tests are not created.

                                                                          CHelper version: 4.4.2IDEA version: 2018.2.3

                                                                          CHelper Chrome extension stopped working for Codeforces as well.

                                                                          CHelper extension version: 4.2.1.1Chrome version: 69.0.3497.81
                                                                            »
                                                                            7 years ago,show (+1)#
                                                                            »
                                                                            7 years ago,hide#|
                                                                             
                                                                            Vote: I like it0Vote: I do not like it

                                                                            HiEgor , All tools [Create Task , Parse Contest ,all] everything is working well except the one small issue. The Parser is not working properly (It parses the problem correctly ,but not able to parse Sample TC , mention in the problem).

                                                                            ( IntelliJ Version 2018 2.5. CHelper Version 4.4.2 Window 10 )

                                                                            Tried most of possible sol , Still not getting desirable result.

                                                                            Anybody has the same issue ?

                                                                            Thx alot :)

                                                                            »
                                                                            7 years ago,show#
                                                                            »
                                                                            7 years ago,hide#|
                                                                            Rev.4  
                                                                            Vote: I like it0Vote: I do not like it

                                                                            Hey I am getting this error while running the code!!

                                                                            java.lang.NullPointerException at net.egork.chelper.codegeneration.CodeGenerationUtilities.getSimpleName(CodeGenerationUtilities.java:410) at net.egork.chelper.codegeneration.SolutionGenerator.createMainClassTemplate(SolutionGenerator.java:498) at net.egork.chelper.codegeneration.SolutionGenerator$3.run(SolutionGenerator.java:574) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1057) at net.egork.chelper.codegeneration.SolutionGenerator.createSourceFile(SolutionGenerator.java:557) at net.egork.chelper.util.TaskUtilities.createSourceFile(TaskUtilities.java:21) at net.egork.chelper.configurations.TaskConfiguration.getState(TaskConfiguration.java:73) at com.intellij.execution.runners.ExecutionEnvironment.getState(ExecutionEnvironment.java:158) at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:55) at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:50) at com.intellij.execution.ProgramRunnerUtil.executeConfigurationAsync(ProgramRunnerUtil.java:92) at com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:41) at com.intellij.execution.impl.ExecutionManagerImpl.restart(ExecutionManagerImpl.java:93) at com.intellij.execution.impl.ExecutionManagerImpl.access$300(ExecutionManagerImpl.java:44) at com.intellij.execution.impl.ExecutionManagerImpl$3.run(ExecutionManagerImpl.java:442) at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:232) at com.intellij.util.Alarm$Request.runSafely(Alarm.java:356) at com.intellij.util.Alarm$Request.run(Alarm.java:343) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:228) at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:435) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:419) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:403) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762) at java.awt.EventQueue.access$500(EventQueue.java:98) at java.awt.EventQueue$3.run(EventQueue.java:715) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.awt.EventQueue.dispatchEvent(EventQueue.java:732) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:719) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:668) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

                                                                            Egor can anyone help me out??

                                                                            I am using intellij 2018.3.3 verion and chelper 4.4.2v

                                                                              »
                                                                              7 years ago,show (+1)#
                                                                              »
                                                                              7 years ago,hide#|
                                                                              Rev.2  
                                                                              Vote: I like it0Vote: I do not like it

                                                                              Please help.

                                                                              I am getting this error on IntelliJ IDEA 2018.1.3 with CHelper 4.4.2 and jdk1.8.0_181 Error:

                                                                              Exception in thread "main" java.lang.ClassNotFoundException: codes.TaskDat java.net.URLClassLoader.findClass(URLClassLoader.java:381)at java.lang.ClassLoader.loadClass(ClassLoader.java:424)at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)at java.lang.ClassLoader.loadClass(ClassLoader.java:357)at java.lang.Class.forName0(Native Method)at java.lang.Class.forName(Class.java:264)at net.egork.chelper.tester.NewTester.test(NewTester.java:81)at net.egork.chelper.tester.NewTester.main(NewTester.java:34)

                                                                              Image of Project structure and chelper.properties file

                                                                              »
                                                                              7 years ago,show#
                                                                              »
                                                                              7 years ago,hide#|
                                                                               
                                                                              Vote: I like it+2Vote: I do not like it

                                                                              I installed idea Intellij and also added the chelper plugin but when i parse a task from codeforces its not adding the testcases automatically.. Rest all are working correctly. can anyone help. I added the plugin from idea intellij store as well as tried downloading the plugin and loading from disk. can anyone please help . I am using Idea Intellij 2018.3.3 version. Test cases are not being parsed. please help.

                                                                                »
                                                                                6 years ago,show#
                                                                                »
                                                                                6 years ago,hide#|
                                                                                Rev.2  
                                                                                Vote: I like it0Vote: I do not like it

                                                                                Egor Not Compatible with Latest Intellij Idea.

                                                                                Exception in thread "main" java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ObjectMapper at net.egork.chelper.tester.NewTester.(NewTester.java:24) Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.ObjectMapper at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) Please update

                                                                                  »
                                                                                  6 years ago,show (+1)#
                                                                                  »
                                                                                  6 years ago,hide#|
                                                                                  Rev.3  
                                                                                  Vote: I like it0Vote: I do not like it

                                                                                  I have tried installing plugin fromFile -> Settings... -> Plugins. I kept receiving an error:

                                                                                  Error: Could not find or load main class net.egork.chelper.tester.NewTester

                                                                                  Probably, that was due to absence of thechelper.jar on the classpath. So I tried downloading the plugin from the Intellij IDEA site, and after unzipping it, I have selected the bunch of jars in theFile -> Project Structure -> Libraries -> + -> Java -> <path_to_the_bunch_of_chelper_jars>. For a brief period, it helped me, and the tests started to run when I run the problem task. But after some changes, which I cannot reproduce exactly, things went yet another way wrong. Now I keep receiving the following error:

                                                                                  Error running 'A - <task_header>': com/github/cojac/CojacAgent

                                                                                  Despite the fact, the librarycojac.jar is on the classpath along withchelper.jar. What could be done here?

                                                                                  UPD: The problem has been solved. If you experience a similar problem, please try to update everything you have. Install plugin of the previous version and then update it when Intellij IDEA advises you to do so.

                                                                                  • »
                                                                                    »
                                                                                    6 years ago,show (+1)#
                                                                                    »
                                                                                    »
                                                                                    6 years ago,hide#^|
                                                                                     
                                                                                    Vote: I like it0Vote: I do not like it

                                                                                    Hey, I am facing the exact same issue. Can you elaborate a little more how to solve this issue?Waylesange Thanks

                                                                                    • »
                                                                                      »
                                                                                      »
                                                                                      6 years ago,show (+1)#
                                                                                      »
                                                                                      »
                                                                                      »
                                                                                      6 years ago,hide#^|
                                                                                       
                                                                                      Vote: I like it+5Vote: I do not like it

                                                                                      OK, just try to keep it simple. I suggest you update Intellij IDEA to the latest version. Secondly, you go to File -> Settings... -> Plugins and search for the chelper plugin. It is required to run the task run configurations, and it supplies you with the buttons on the toolbar, too. After you have done that, you should be getting the error about impossibility to find and load class from net.egork... Now you go to the jetbrains plugin site, search for chelper plugin there, and download the latest zip archive. After unzipping it, go to File -> Project Structure... -> Libraries -> + -> Java, select recursively the folder you just unzipped until you get to a bunch of jars that contain that missing class in the error. After you have added those jars to your classpath, along with JDK, it should be enough to parse a problem from codeforces site using Google Chrome plugin. Thus, you get the tests inherent to the problem as well, whereas if you are importing the problem from within Parse contest menu of chelper, you won't get the tests, which is sad and needs to be fixed by Egor Kulikov. I hope my experience helps you!

                                                                                  »
                                                                                  6 years ago,show (+1)#
                                                                                  »
                                                                                  6 years ago,hide#|
                                                                                  Rev.2  
                                                                                  Vote: I like it0Vote: I do not like it

                                                                                  I have installed the latest IDE and Chelper 4.4.2.
                                                                                  And I have also manually added all jar files using the Project Settings option. Although everything is working fine, i.e test cases are running and showing results, there are exceptions arising between the test cases on the console.

                                                                                  COJAC-AGENT EXCEPTION FOR CLASS jdk/net/ExtendedSocketOptions java.lang.IllegalArgumentException


                                                                                  Such COJAC-AGENT EXCEPTION is being shown for multiple classes even for InputReader and OutputWriter.
                                                                                  Can someone help on how to get rid of those exceptions?
                                                                                  Although they are not crashing anything, they are frustrating as they are visible in between the test case lines.

                                                                                  »
                                                                                  6 years ago,show (+1)#
                                                                                  »
                                                                                  6 years ago,hide#|
                                                                                   
                                                                                  Vote: I like it0Vote: I do not like it

                                                                                  It is showing "All test passed" inspite of a wrong solution. How to resolve it?

                                                                                  »
                                                                                  6 years ago,show (+1)#
                                                                                  »
                                                                                  6 years ago,hide#|
                                                                                   
                                                                                  Vote: I like it0Vote: I do not like it

                                                                                  I have installed chelper plugin in Intellij ide.I was able to parse the contest questions but for every task it shows 0 test cases.Its not able to parse the sample test cases,how do i resolve this issue?

                                                                                  »
                                                                                  5 years ago,show (+1)#
                                                                                  »
                                                                                  5 years ago,hide#|
                                                                                   
                                                                                  Vote: I like it0Vote: I do not like it

                                                                                  HelloEgor,

                                                                                  When I parse a contest from CodeForces, it parses the tasks fine, but without tests.

                                                                                  CHelper version:4.4.2

                                                                                  Intellij Idea Community Ed:2020.1.2

                                                                                  I can also see the following exception (stacktrace) in the Idea logs:

                                                                                  java.lang.IncompatibleClassChangeError: Method 'com.intellij.openapi.roots.libraries.LibraryTable com.intellij.openapi.roots.impl.libraries.ProjectLibraryTable.getInstance(com.intellij.openapi.project.Project)' must be InterfaceMethodref constantat net.egork.chelper.util.Utilities$2.run(Utilities.java:108)at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:976)at net.egork.chelper.util.Utilities.fixLibrary(Utilities.java:105)at net.egork.chelper.actions.EditProjectProperties.actionPerformed(EditProjectProperties.java:21)at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:280)at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:274)at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:184)at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:157)at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:442)at java.desktop/java.awt.Component.processEvent(Component.java:6415)at java.desktop/java.awt.Container.processEvent(Container.java:2263)at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5025)at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)at java.desktop/java.awt.Component.dispatchEvent(Component.java:4857)at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2773)at java.desktop/java.awt.Component.dispatchEvent(Component.java:4857)at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)at java.base/java.security.AccessController.doPrivileged(Native Method)at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)at java.base/java.security.AccessController.doPrivileged(Native Method)at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:974)at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:912)at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:844)at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449)at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:741)at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:502)at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
                                                                                  • »
                                                                                    »
                                                                                    5 years ago,show (+1)#
                                                                                    »
                                                                                    »
                                                                                    5 years ago,hide#^|
                                                                                     
                                                                                    Vote: I like it0Vote: I do not like it

                                                                                    This is because Codeforces changed DOM structure of pages a little bit ago. You can use Competitive Companion extension for Chrome for now while I am working on major overhaul of CHelper

                                                                                    • »
                                                                                      »
                                                                                      »
                                                                                      5 years ago,show (+1)#
                                                                                      »
                                                                                      »
                                                                                      »
                                                                                      5 years ago,hide#^|
                                                                                       
                                                                                      Vote: I like it0Vote: I do not like it

                                                                                      Thank you for your response!

                                                                                      Do you have any idea about the timeline of those changes?

                                                                                      • »
                                                                                        »
                                                                                        »
                                                                                        »
                                                                                        5 years ago,show (+1)#
                                                                                        »
                                                                                        »
                                                                                        »
                                                                                        »
                                                                                        5 years ago,hide#^|
                                                                                         
                                                                                        Vote: I like it0Vote: I do not like it

                                                                                        You mean the overhaul? Not sure, even alpha is quite some time away. But Competitive Companion is really cool extension, you should try it

                                                                                        • »
                                                                                          »
                                                                                          »
                                                                                          »
                                                                                          »
                                                                                          5 years ago,show (+1)#
                                                                                          »
                                                                                          »
                                                                                          »
                                                                                          »
                                                                                          »
                                                                                          5 years ago,hide#^|
                                                                                           
                                                                                          Vote: I like it0Vote: I do not like it

                                                                                          Tried, works like a charm, thanks for that!!

                                                                                          Once I have your attention, let me ask another question :) Recently, after a bit of break in competitive programming, I noticed that two of the great Java users —Petr and yourself have switched to GNU C++17 by preserving the coding styles. I'm wondering what the reason was behind switching to C++ after a long period of Java usage in competitive programming.

                                                                                          PS. I have found the solutions by both of you useful and got some ideas to enrich my toolbox for CP. Thanks for that as well.

                                                                                          • »
                                                                                            »
                                                                                            »
                                                                                            »
                                                                                            »
                                                                                            »
                                                                                            5 years ago,show (+1)#
                                                                                            »
                                                                                            »
                                                                                            »
                                                                                            »
                                                                                            »
                                                                                            »
                                                                                            5 years ago,hide#^|
                                                                                             
                                                                                            Vote: I like it0Vote: I do not like it

                                                                                            It sseems most authors stopped to even pretending they care about Java — no reference solutions, and hence — problems with tl

                                                                                            • »
                                                                                              »
                                                                                              »
                                                                                              »
                                                                                              »
                                                                                              »
                                                                                              »
                                                                                              3 years ago,show (+1)#
                                                                                              »
                                                                                              »
                                                                                              »
                                                                                              »
                                                                                              »
                                                                                              »
                                                                                              »
                                                                                              3 years ago,hide#^|
                                                                                               
                                                                                              Vote: I like it0Vote: I do not like it

                                                                                              @Egor I am getting this error.My intellij Ide is not opeoning

                                                                                              Internal error. Please refer tohttps://jb.gg/ide/critical-startup-errors

                                                                                              com.intellij.diagnostic.PluginException: Fatal error initializing 'net.egork.chelper.CHelperMain' [Plugin: CHelper] at com.intellij.serviceContainer.ComponentManagerImpl.handleInitComponentError$intellij_platform_serviceContainer(ComponentManagerImpl.kt:571) at com.intellij.serviceContainer.MyComponentAdapter.doCreateInstance(MyComponentAdapter.kt:59) at com.intellij.serviceContainer.BaseComponentAdapter.doCreateInstance(BaseComponentAdapter.kt:154) at com.intellij.serviceContainer.BaseComponentAdapter.createInstance$lambda$1(BaseComponentAdapter.kt:133) at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:99) at com.intellij.serviceContainer.BaseComponentAdapter.createInstance(BaseComponentAdapter.kt:132) at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:92) at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:77) at com.intellij.serviceContainer.ComponentManagerImpl$createInitOldComponentsTask$1.invoke(ComponentManagerImpl.kt:394) at com.intellij.serviceContainer.ComponentManagerImpl$createInitOldComponentsTask$1.invoke(ComponentManagerImpl.kt:392) at com.intellij.idea.ApplicationLoader$initApplicationImpl$appInitializedListeners$1$1$2$1.invokeSuspend(ApplicationLoader.kt:139) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:779) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:749) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:389) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92) Caused by: java.lang.NoClassDefFoundError: com/sun/net/ssl/HostnameVerifier at net.egork.chelper.CHelperMain.initComponent(CHelperMain.java:17) at com.intellij.serviceContainer.MyComponentAdapter.doCreateInstance(MyComponentAdapter.kt:45) ... 25 more Caused by: java.lang.ClassNotFoundException: com.sun.net.ssl.HostnameVerifier PluginClassLoader(plugin=PluginDescriptor(name=CHelper, id=CHelper, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\IdeaIC2022.3\plugins\chelper, version=4.4.2, package=null, isBundled=false), packagePrefix=null, instanceId=107, state=active) at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:217) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) ... 27 more

                                                                                              ----- Your JRE: 17.0.5+1-b653.25 amd64 (JetBrains s.r.o.) C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.3.2\jbr

                                                                                              • »
                                                                                                »
                                                                                                »
                                                                                                »
                                                                                                »
                                                                                                »
                                                                                                »
                                                                                                »
                                                                                                3 years ago,show (+1)#
                                                                                                »
                                                                                                »
                                                                                                »
                                                                                                »
                                                                                                »
                                                                                                »
                                                                                                »
                                                                                                »
                                                                                                3 years ago,hide#^|
                                                                                                 
                                                                                                Vote: I like it0Vote: I do not like it

                                                                                                Yeah, sorry, it is not compatible with recent versions of idea

                                                                                                • »
                                                                                                  »
                                                                                                  »
                                                                                                  »
                                                                                                  »
                                                                                                  »
                                                                                                  »
                                                                                                  »
                                                                                                  »
                                                                                                  3 years ago,show#
                                                                                                  »
                                                                                                  »
                                                                                                  »
                                                                                                  »
                                                                                                  »
                                                                                                  »
                                                                                                  »
                                                                                                  »
                                                                                                  »
                                                                                                  3 years ago,hide#^|
                                                                                                   
                                                                                                  Vote: I like it0Vote: I do not like it

                                                                                                  That means We cant use Chelper .

                                                                                                  Is there any alternative way to use Chelper?

                                                                                                  • »
                                                                                                    »
                                                                                                    »
                                                                                                    »
                                                                                                    »
                                                                                                    »
                                                                                                    »
                                                                                                    »
                                                                                                    »
                                                                                                    3 years ago,show#
                                                                                                    »
                                                                                                    »
                                                                                                    »
                                                                                                    »
                                                                                                    »
                                                                                                    »
                                                                                                    »
                                                                                                    »
                                                                                                    »
                                                                                                    3 years ago,hide#^|
                                                                                                     
                                                                                                    Vote: I like it0Vote: I do not like it

                                                                                                    You can use it with older idea. I hope to sometime do next iteration, but atm I do not have time for it

                                                                                                    • »
                                                                                                      »
                                                                                                      »
                                                                                                      »
                                                                                                      »
                                                                                                      »
                                                                                                      »
                                                                                                      »
                                                                                                      »
                                                                                                      3 years ago,show#
                                                                                                      »
                                                                                                      »
                                                                                                      »
                                                                                                      »
                                                                                                      »
                                                                                                      »
                                                                                                      »
                                                                                                      »
                                                                                                      »
                                                                                                      3 years ago,hide#^|
                                                                                                       
                                                                                                      Vote: I like it0Vote: I do not like it

                                                                                                      @Egor Why dont u add Chelper in MarkretPlace in intellij Idea

                                                                                                      • »
                                                                                                        »
                                                                                                        »
                                                                                                        »
                                                                                                        »
                                                                                                        »
                                                                                                        »
                                                                                                        »
                                                                                                        »
                                                                                                        3 years ago,show#
                                                                                                        »
                                                                                                        »
                                                                                                        »
                                                                                                        »
                                                                                                        »
                                                                                                        »
                                                                                                        »
                                                                                                        »
                                                                                                        »
                                                                                                        3 years ago,hide#^|
                                                                                                         
                                                                                                        Vote: I like it0Vote: I do not like it

                                                                                                        It was there, I guess it got removed because it is no longer compatible with last version of idea

                                                                                          »
                                                                                          5 years ago,show (+1)#
                                                                                          »
                                                                                          5 years ago,hide#|
                                                                                          Rev.2  
                                                                                          Vote: I like it0Vote: I do not like it

                                                                                          Egor Getting the following error while try to run the program.

                                                                                          Error: Could not find or load main class net.egork.chelper.tester.NewTester Caused by: java.lang.ClassNotFoundException: net.egork.chelper.tester.NewTester

                                                                                          »
                                                                                          5 years ago,show#
                                                                                          »
                                                                                          5 years ago,hide#|
                                                                                           
                                                                                          Vote: I like it+3Vote: I do not like it

                                                                                          I was able to resolve the most common errors while setting up chelper with competitive companion chrome extension. Tried to cover all possible errors in my video so that others don't have to read so many comments to solve the common bugs

                                                                                          Youtube Video Link

                                                                                            »
                                                                                            3 years ago,show (+1)#
                                                                                            »
                                                                                            3 years ago,hide#|
                                                                                             
                                                                                            Vote: I like it0Vote: I do not like it

                                                                                            Hello,

                                                                                            After installing the CHelper plugin, Intellij Idea fails to start up.

                                                                                            IntelliJ Error stacktrace
                                                                                            Internal error. Please refer to https://jb.gg/ide/critical-startup-errorscom.intellij.diagnostic.PluginException: Fatal error initializing 'net.egork.chelper.CHelperMain' [Plugin: CHelper]    at com.intellij.serviceContainer.ComponentManagerImpl.handleInitComponentError$intellij_platform_serviceContainer(ComponentManagerImpl.kt:577)    at com.intellij.serviceContainer.MyComponentAdapter.doCreateInstance(MyComponentAdapter.kt:59)    at com.intellij.serviceContainer.BaseComponentAdapter.doCreateInstance(BaseComponentAdapter.kt:145)    at com.intellij.serviceContainer.BaseComponentAdapter.createInstance$lambda-1(BaseComponentAdapter.kt:124)    at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:99)    at com.intellij.serviceContainer.BaseComponentAdapter.createInstance(BaseComponentAdapter.kt:123)    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:92)    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:77)    at com.intellij.serviceContainer.ComponentManagerImpl$createInitOldComponentsTask$1.invoke(ComponentManagerImpl.kt:400)    at com.intellij.serviceContainer.ComponentManagerImpl$createInitOldComponentsTask$1.invoke(ComponentManagerImpl.kt:398)    at com.intellij.idea.ApplicationLoader$initApplicationImpl$appInitializedListeners$1$1$2$1.invokeSuspend(ApplicationLoader.kt:139)    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:779)    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:749)    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:389)    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)Caused by: java.lang.NoClassDefFoundError: com/sun/net/ssl/HostnameVerifier    at net.egork.chelper.CHelperMain.initComponent(CHelperMain.java:17)    at com.intellij.serviceContainer.MyComponentAdapter.doCreateInstance(MyComponentAdapter.kt:45)    ... 25 moreCaused by: java.lang.ClassNotFoundException: com.sun.net.ssl.HostnameVerifier PluginClassLoader(plugin=PluginDescriptor(name=CHelper, id=CHelper, descriptorPath=plugin.xml, path=~/Library/Application Support/JetBrains/IdeaIC2022.3/plugins/chelper, version=4.4.2, package=null, isBundled=false), packagePrefix=null, instanceId=107, state=active)    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:215)    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)    ... 27 more-----Your JRE: 17.0.5+1-b653.14 x86_64 (JetBrains s.r.o.)/Applications/IntelliJ IDEA CE.app/Contents/jbr/Contents/Home
                                                                                            • »
                                                                                              »
                                                                                              3 years ago,show (+1)#
                                                                                              »
                                                                                              »
                                                                                              3 years ago,hide#^|
                                                                                               
                                                                                              Vote: I like it0Vote: I do not like it

                                                                                              Same Problem here. How did you resolve your issue.

                                                                                              • »
                                                                                                »
                                                                                                »
                                                                                                3 years ago,show#
                                                                                                »
                                                                                                »
                                                                                                »
                                                                                                3 years ago,hide#^|
                                                                                                 
                                                                                                Vote: I like it0Vote: I do not like it

                                                                                                The solution for me was to fork the original github repo of the plugin and remove those lines that are causing issues. Then build the project and use it. I find it easier to build it using gradle, so picked a fork of the project that's already migrated to gradle.


                                                                                               
                                                                                               
                                                                                              In EnglishIn Russian



                                                                                              Codeforces (c) Copyright 2010-2025 Mike Mirzayanov
                                                                                              The only programming contests Web 2.0 platform
                                                                                              Server time:Dec/17/2025 11:43:19 (g1).
                                                                                              Desktop version, switch tomobile version.
                                                                                              Privacy Policy |Terms and Conditions
                                                                                              Supported by
                                                                                              TON
                                                                                               
                                                                                              ITMO University
                                                                                               
                                                                                               
                                                                                               
                                                                                               
                                                                                              User lists
                                                                                               
                                                                                               
                                                                                              Name

                                                                                              [8]ページ先頭

                                                                                              ©2009-2025 Movatter.jp