Egor's blog

By Egor, 8 years ago, translation, In English,

Some screenshots:



Current version is 2.33

Let's try again. I had rewrote from scratch plug-in for IntelliJ Idea (that have free community edition, btw) which is designed to do the following:

1. Tests on all entered tests with one click

2. Inlines files from your library to your source code (inlucding removing of unused code)

3. Generates unit tests for your library based on entered tests.

First version seemed to be not very popular due to complexity of set up - special project, need of click "Run Task" each time before submit, etc.

In new version all this was fixed and, as a bonus, you can now create tasks for whole Codeforces contest (including sample tests already entered for you) by entering contest id.

Manual

That's all. Thank you for your time. Should you encounter any problem/bug using this plug-in please post comments to this entry insteam of sending me PM - that should help other people with same issues
 
 
 
 
  • Vote: I like it  
  • +38
  • Vote: I do not like it  

8 years ago, # |
  Vote: I like it 0 Vote: I do not like it
Egor please help me.I know this is silly but I am stuck at this and dont know what to do.
I cannot create a task as shown in the screenshots ,neither can I include the action buttons on the toolbar.I am now discussing what all I did:
1)I copied the plugin to "C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 10.5.2\config\plugins".There was no config folder so I created it.
2)Next I included it in the class path as you said.
3)I then copied the config file to the project's directory.
Please tell me how to do it.
  • 8 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it
    Folder where you put plugin is incorrect - it should be in your home directory (like c:\Users\codeKNIGHT\.IntelliJIdea10\config\plugins\)
    • 8 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it
      Ok thats done.But still problem is not solved .I do not have the option to add the action buttons on the toolbar.How to do that??
      • 8 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it
        Are you sure you've restarted Idea after putting file to correct folder?
        • 8 years ago, # ^ |
            Vote: I like it +1 Vote: I do not like it
          Yes I have.My question is that how to add the action buttons to the toolbar .
          Right cLick on the toolbar->customize menu and toolbar->NO OPTION TO ADD !!!
          • 8 years ago, # ^ |
              Vote: I like it 0 Vote: I do not like it
            In "Menus and Toolbars" dialog you need to select some item on main toolbar, click "Add after...", in "Choose Acrions To Add" - "Plug-ins"->"CHelper", and then select ones you need (using control key) and press OK
  • 8 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it
    1) try C:\users\%username\.IntelliJIdea10\config\plugins 
8 years ago, # |
  Vote: I like it +12 Vote: I do not like it
Hi is this an autogen like topcoder for codeforces? If it is can it be used to code c++ ?
  • 8 years ago, # ^ |
      Vote: I like it +1 Vote: I do not like it
    Very small part of it is task generator for Codeforces, and no, it can't be used in C++
8 years ago, # |
  Vote: I like it +12 Vote: I do not like it
Thanks for the reply :) I have another question.Is there any task generators for codeforces that can be used to code c++?
8 years ago, # |
  Vote: I like it +12 Vote: I do not like it
Egor I stucked in the last thing i entered contest ID and all tasks appears in the Combo box but i can't find them in my package

is this a [.properties] file problem?

  • 8 years ago, # ^ |
      Vote: I like it +12 Vote: I do not like it
    Please, do not use absolute paths in config. Use paths relative to project root, like src/My for default directory and src for output directory. Also all configured folders (aside from archive, which may be wherever) should be under path of some module of your project
    • 8 years ago, # ^ |
        Vote: I like it +12 Vote: I do not like it
      Done! Thanks Egor :)
    • 7 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it
      Где кроме chelper.properties нужно настроить, чтобы пользоваться InputReader вместо Scanner? Можно примерчик привести.
      • 7 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it
        Нигде. Нужно только перезагрузить идею (ну и не забыть написать InputReader ;))
        • 7 years ago, # ^ |
            Vote: I like it 0 Vote: I do not like it
          а InputReader в каком пакете?
          т.е. inputClass = ?

          Класс InputReader и методы ручками каждый раз набирать String next(), int nextInt() после ParseTask?
          • 7 years ago, # ^ |
              Vote: I like it 0 Vote: I do not like it
            Класс InputReader в том пакете, где вы его создали. Он вместе с плагином не поставляется
            Набирать ручками каждый раз ничего не надо, конечно. Просто создайте один раз класс и используйте. Единственное требование - в нем должен быть конструктор от InputStream и метод next
8 years ago, # |
  Vote: I like it 0 Vote: I do not like it
@Egor Still facing 1 difficulty:
When I click on the new task button on the toolbar it does not generate a new task.
Here's my config file:
inputClass = java.util.Scanner
outputClass = java.io.PrintWriter
excludePackages = java.,javax.,com.sun.
outputDirectory = out
author =  codeKNIGHT
archiveDirectory = archive/unsorted
defaultDirectory = src/DataStructures
topcoderDirectory = topcoder
testDirectory = lib/test
enableUnitTests = false
  • 8 years ago, # ^ |
      Vote: I like it -8 Vote: I do not like it
    What plug-in version do you have? If 2.2, do you click onarrow button or plus button
    • 8 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it
      No I have the prevoius version.When I click on the arrow button it says"default directory should be under source and non default package"
      • 8 years ago, # ^ |
          Vote: I like it -8 Vote: I do not like it
        Please update and report any changes (use plus button)
        • 8 years ago, # ^ |
            Vote: I like it 0 Vote: I do not like it
          Thanks Egor.Everything is Ok now.(almost).THis is wonderful.I recommend this to all java users.you dont have to write the inputs manually saves a lot of time.It checks the sample input output automatically.
          As I said its almost Ok.Here are the problems I face(I dont know if its only me):
          1) There is no option to add topcoder tasks,codechef task icons to add to toolbar. You can see scrrenshot here.
          2)When I tested codeforces contest127 task A it gave me WA in IntelliJ saying "Mismatch at index 0" although I got it accepted when I submitted it.Is it because of the decimal points??Here 's my solution
          • 8 years ago, # ^ |
              Vote: I like it -8 Vote: I do not like it
            For TopCoder - you need to use moj plugin for arena and configure it to save files to topcoderDirectory from your config. Codechef tasks are generated from the same place as Codeforces, you just need to select Codechef in combobox 2. You need to modify getCertainty method of TaskAChecker
    • 7 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      I am using 2.33 but still it does not generate a new task

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

        Ok ,I have debugged my error,Thanks Egor for making it free for all

8 years ago, # |
  Vote: I like it +11 Vote: I do not like it
Now it is official - Petr uses CHelper :)
7 years ago, # |
  Vote: I like it 0 Vote: I do not like it
There was a problem in chelper during CBR#96.
In Div 2. B the second sample case it generated was:   ++++[>,.<-]
Please rectify it as it may occur in future contest too...
  • 7 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it
    It worked fine for me. Are you sure you are using last version? (it was fixed in version 2.01, I believe)
    • 7 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it
      Tests are not getting generated in Codeforces task. Is it just me or 2.32 ?
      • 7 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it
        Sorry for late reply. 2.33 addresses exactly this issue