Блог пользователя Egor

Автор Egor, 14 лет назад, По-английски

I would really appreciate any new ideas of what new features to add

I would also appreciate donations


3.99

Kattis support for both Chrome and Contest parsers. You'd need to accept new permissions for Chrome extension. Good luck at ACM ICPC World Finals online contest!


3.98

Codechef fix


3.97

Fixed issue with template selection and Chrome plugin interaction


3.96

Smallish update — you can now select task template per task. You can have several templates for general tasks, one where you need to output with Case #, GCJ where you need to integrate parallelization and similar


3.95

Support for Idea 14.1+

Parsers for RCC and USACO fixed

You can now parse other Codeforces contests when live contest is ongoing

Sorry for big delay, it was couple of crazy months for me


3.94

All parsers should work now. Chrome extension may disable itself on update, reenable it


3.93

Bayan support (will be live after Chrome store will approve update), fix for GCJ and HackerRank


3.91

Fixed Java 8 support. From now on Java 8 is target version, previous Java versions may or may not work properly

Also speed up and for RCC parsing, HackerRank parsing fix and Delete Task pop up fix


3.90

GCJ support should be fixed now. Also RCC support is fixed. Please note that non-current round take a lot of time to load as there is no place where I can see all round ids (it may appear after second round, I'll update then). Please also note that 1st round is currently have 2 instances as both id 4 and id 7 corresponds to it. I'm not sure how well my plugin will handle increased load on their servers and weird pages returned because of it, but I hope for the best

TopCoder checker support coming up in next release


3.85

GCJ support fixed, also GCJ is now supported through Chrome extension as well


3.83

Fix for Idea 13.1


3.80

Mostly fixes (Codeforces, Hackerrank, Yandex). Includes new memory limits support for TC and new action to edit task (if you for some reason do not want to do this through Edit configurations)


3.70

Facebook Hacker Cup and USACO support through Chrome plugin. Also HackerRank should work now


3.65

HackerRank support. Also compatible with Java 6


3.64

Added Codeforces support for Chrome extension. Should be usefull for those Gym contest that have non pdf/doc/etc problem statements


3.62

Rejoice Chrome users — there is now extension to Chrome that will assist in parsing Yandex.Contest tasks. Support for other sites (Codeforces Gym, for example) is coming as well. You will be prompted to install Chrome extension on first load of CHelper-supported project

You can download extension here

Some bugfixes and improvements are also included (Timus should work for now)


3.50

GCJ support finally! With it comes new type of input — local regular expression. Main classes build with this input type would take most recently modified file that matches provided regexp as input.

Also some little fixes to smart testing


3.45

Small fix due to Russian CodeCup page format change. GCJ support would be developed during next week


3.4

Smart testing

New mode, which automatically will test your program only on first failed test from last run and will test on all tests if that test will pass. With this feature you can easily start debug on failed test without need to switch tests on/off. This mode is on by default, you can disable it in project settings

Also test case generation mechanism changed a bit. You now can have at most one class with test cases, but multiple test case methods in it. This method shoule be annotated @TestCase. For compatibility if test class implements TestProvider/TopCoderTestProvider createTests() would still be called. If you create checker or test class through task settings it will now automatically be opened

Finally, templates for TopCoder are introduced


3.3

Templates for automatically generated stubs added 3 new files are automatically added to eligible projects (i. e. projects with chelper.properties) — TaskClass.template, CheckerClass.template and TestCaseClass.template. You may use following placeholders in all this files: %package% — package where file will be created %InputClass% — short name of input class %InputClassFQN% — fully qualified name of input class (used in imports) %OutputClass% — short name of output class %OutputClassFQN% — fully qualified name of output class (used in imports)

Also you can use %TaskClass% in TaskClass.template, %CheckerClass% in CheckerClass.template and %TestCaseClass% in TestCaseClass.template, which is basically short class names of corresponding classes

Would you delete this files by mistake they would be recreated next time you reopen project or when they are needed

TopCoder gengerated files are currently do not have templates, will do in next version


3.21

Previous version was built using Java 1.7, which may lead for Idea to fail on start up if run under Java 1.6. If this is your case please download it here and unpack to %home%\.IntelliJIdea%version%\config\plugins


3.2

This version contains minor and major changes

Minor change is hopefully last iteration of changes in TopCoder support. From now on you do not need to restart arena after restarting Idea. Also socket method is reinstaited with more checks to insure no fails and with automatic back up from file method

Major change is contributed mostly by Petr and provides support for Cojac. This is to help find errors such as unitended integer overflow and others. Support is turned off by default, you can turn it on or off for separate task in task configuration as well as for all new tasks in project settings


3.12

Urgent — temporary TopCoder fix


3.1

Leda (Idea 12) readiness


3.02 — even smaller update

Force locale setting was cleared on opening of Edit Tests dialog (and some others)


3.01 — small update:

Timus current/future contests now works

Redundant caption removed


So I decided it is a good time to go on with the release.

You can read intallation (and some other, under development) instructions here. I would not recommend manual installation, but you can download plugin directly here.

You are welcome to contribute and/or provide translations for manual for different languages. Source code is located here

Feature requests are appretiated as well

  • Проголосовать: нравится
  • +5
  • Проголосовать: не нравится

»
14 лет назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

How about the same plugin for Visual Studio for C++ users?

»
14 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

С новой версией плагина у меня очень участилось появление ошибки:

Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(866,63),absolute(865,90),button=1,modifiers=Button1,clickCount=1] on frame0: Argument 0 for @NotNull parameter of com/intellij/psi/impl/JavaPsiFacadeImpl.findClass must not be null
java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/psi/impl/JavaPsiFacadeImpl.findClass must not be null
	at com.intellij.psi.impl.JavaPsiFacadeImpl.findClass(JavaPsiFacadeImpl.java)
	at net.egork.chelper.util.FileUtilities.getFileByFQN(FileUtilities.java:346)
	at net.egork.chelper.AutoSwitcher$1.runConfigurationSelected(AutoSwitcher.java:68)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:89)
	at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:34)
	at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:65)
	at $Proxy37.runConfigurationSelected(Unknown Source)
	at com.intellij.execution.impl.RunManagerImpl.c(RunManagerImpl.java:917)
	at com.intellij.execution.impl.RunManagerImpl.setSelectedConfiguration(RunManagerImpl.java:327)
	at com.intellij.execution.RunManagerEx.setActiveConfiguration(RunManagerEx.java:44)
	at net.egork.chelper.actions.ArchiveAction.setOtherConfiguration(ArchiveAction.java:159)
	at net.egork.chelper.actions.ArchiveAction$1.run(ArchiveAction.java:74)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:902)
	at net.egork.chelper.actions.ArchiveAction.actionPerformed(ArchiveAction.java:47)
	at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:169)
	at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:133)
	at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:310)
	at java.awt.Component.processEvent(Component.java:6270)
	at java.awt.Container.processEvent(Container.java:2229)
	at java.awt.Component.dispatchEventImpl(Component.java:4861)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
	at java.awt.Container.dispatchEventImpl(Container.java:2273)
	at java.awt.Window.dispatchEventImpl(Window.java:2719)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:682)
	at java.awt.EventQueue$3.run(EventQueue.java:680)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.awt.EventQueue$4.run(EventQueue.java:696)
	at java.awt.EventQueue$4.run(EventQueue.java:694)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
	at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:699)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:534)
	at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:420)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)

»
14 лет назад, скрыть # |
Rev. 3  
Проголосовать: нравится 0 Проголосовать: не нравится

Thanks!

»
14 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

hello, I'm new at chelper.

I'm using windows XP and when I open topcoder srm problem, by default language is set to C++; in the editor field there is
'Only Java language is supported. '

when I try to switch to Java(Choose your language checkbox) the arena halts, and nothing could be made to it

Java console just outputs following lines: Start using
Set problem component

After that all I can do is call Task Manager and kill the arena.

plz help

»
14 лет назад, скрыть # |
Rev. 3  
Проголосовать: нравится 0 Проголосовать: не нравится

Hello, When I choose "Run Task" and "Debug Task", CHelper crashed, giving error message like this : https://www.dropbox.com/s/a6ob2ar547ymi4p/Screenshot-27.png I tried reinstall etc and CHelper still crashed, any idea?

»
14 лет назад, скрыть # |
Rev. 3  
Проголосовать: нравится +29 Проголосовать: не нравится

Hi, At first congratulation for your excellent performance during this year Topcoder Open, not only for the Final Champion Round but also those years of efforts. Your achievement really set a model to our younger generation! And secondly, I have turned my vision to JAVA recently, and once again found IntelliJ IDEA along with CHelper 3.0 is a really productive combination!

But I also found there are not so many people around me have grasp this yet. And the possible reason could be: "It is not a simple task to config it all from scratch for a man who have never been used IntelliJ IDEA before."

So I translate the mannul to Chinese for myself. It will be my pleasure if you could involve me in the Project. I'd like share the text, to make more people be aware of this useful tool.

Finally, thank you for bring us this amazing plug-in! ..

»
14 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hey Egor, first of all congratulations!!! I had to ask one thing, How can I update the plugin? Should I simply replace the old jar with the new jar having same name? Or something more is also to be done?

  • »
    »
    14 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +5 Проголосовать: не нравится

    Best way is to use plugin repository. If you have idea 11+, it should offer an update. You also can remove plugin and then install from repository. If all this is not feasible you can download plugin directly and just replace old file

»
14 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

It may be a good feature to be able to change easily between standard I/O and reading from files. (for example this can be used when there are ACM-type contests)

»
14 лет назад, скрыть # |
Rev. 7  
Проголосовать: нравится +5 Проголосовать: не нравится

I can't get it working on community edition of IDEA. I installed the plug-in, but the code generated in Main.java after running the program does not contain implementation of methods of plug-in classes, and, as a result, the Main.java does not work.

For example, For OutputWriter the following code is generated:

class OutputWriter  {
    
    public OutputWriter(java.io.OutputStream outputStream) { /* compiled code */ }
    
    public void print(java.lang.Object... objects) { /* compiled code */ }
    
    public void close() { /* compiled code */ }
    
    }

/*compiled code*/ comments are generated by IDEA, not by me:)

I guess decompiler for community edition does not work very well or I made a mistake somewhere. Does the plug-in support only Ultimate edition?

  • »
    »
    14 лет назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    You are supposed to be author of all code, at least on TopCoder and Codeforces. Hence, you should write your own input/output classes or use standard library ones. Those InputReader and OutputWriter in plugin is not quite the same as ones I use in contests

    • »
      »
      »
      14 лет назад, скрыть # ^ |
      Rev. 2  
      Проголосовать: нравится 0 Проголосовать: не нравится

      Thank you for the reply! Finally I got it working by creating my own input-output classes and including them into my project. It works very well now!

      I expected the plug-in to decompile any code from any library and include it to the source file with all the dependencies:D I guess it is too much.

»
14 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I'm a mac user and when I update to 3.1, it throws a NullPointerException when I try to parse problem in Codeforces

»
14 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

This post takes for granted that we know what Chelper is.

»
14 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hello, I have ubuntu 12 , Intellij Idea 11 and chelper 3.13.

with the version previous it's worked fine, when updated the last version I got this error in topcoder.

Probably socket was not opened, trying file method

»
14 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

на новой идее 12 у меня одного возникает "Exception in thread "main" java.lang.ClassNotFoundException: net.egork.chelper.tester.NewTester" ? в дебаггере "Disconnected from the target VM, address: '127.0.0.1:56766', transport: 'socket'" .причём перетекло теперь и на старую 11ую.

»
14 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Heyy Egor I installed the plugin in Intellij IDEA 12. How to compile/test the code ?

»
14 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится
  1. Are you going to add tests generator feature into Task settings form. (Tired of miscounting the number of characters in class name :))

  2. When I archive the task it doesn't add to archive the generator, it adds checker but doesn't add generator.

»
14 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

In version 3.3, I got error NullPointerException when I try to parse Problems in Codeforces. Please help me fix this.

  • »
    »
    14 лет назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    Can you provide stack trace?

    • »
      »
      »
      14 лет назад, скрыть # ^ |
       
      Проголосовать: нравится 0 Проголосовать: не нравится

      NullPointerException: Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(344,432),absolute(766,602),button=1,modifiers=Button1,clickCount=1] on dialog0

      • »
        »
        »
        »
        14 лет назад, скрыть # ^ |
         
        Проголосовать: нравится 0 Проголосовать: не нравится

        That's not a stack trace. Stack trace should be in Details

        • »
          »
          »
          »
          »
          14 лет назад, скрыть # ^ |
           
          Проголосовать: нравится 0 Проголосовать: не нравится

          Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(335,427),absolute(757,597),button=1,modifiers=Button1,clickCount=1] on dialog0 java.lang.NullPointerException at java.lang.String.replace(String.java:2180) at net.egork.chelper.util.CodeGenerationUtilities.createStub(CodeGenerationUtilities.java:251) at net.egork.chelper.util.FileUtilities.createTaskClass(FileUtilities.java:302) at net.egork.chelper.util.FileUtilities.createIfNeeded(FileUtilities.java:341) at net.egork.chelper.ui.ParseDialog$1.onOk(ParseDialog.java:64) at net.egork.chelper.ui.OkCancelPanel$1.actionPerformed(OkCancelPanel.java:16) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) at java.awt.Component.processMouseEvent(Component.java:6505) at javax.swing.JComponent.processMouseEvent(JComponent.java:3321) at java.awt.Component.processEvent(Component.java:6270) at java.awt.Container.processEvent(Container.java:2229) at java.awt.Component.dispatchEventImpl(Component.java:4861) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422) at java.awt.Container.dispatchEventImpl(Container.java:2273) at java.awt.Window.dispatchEventImpl(Window.java:2719) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:682) at java.awt.EventQueue$3.run(EventQueue.java:680) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) at java.awt.EventQueue$4.run(EventQueue.java:696) at java.awt.EventQueue$4.run(EventQueue.java:694) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:693) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:673) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:494) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:155) at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182) at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221) at java.security.AccessController.doPrivileged(Native Method) at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219) at java.awt.Dialog.show(Dialog.java:1077) at java.awt.Component.show(Component.java:1651) at java.awt.Component.setVisible(Component.java:1603) at java.awt.Window.setVisible(Window.java:1014) at java.awt.Dialog.setVisible(Dialog.java:1003) at net.egork.chelper.ui.ParseDialog.(ParseDialog.java:215) at net.egork.chelper.ui.ParseDialog.parseContest(ParseDialog.java:260) at net.egork.chelper.actions.ParseContestAction.actionPerformed(ParseContestAction.java:23) at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:169) at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:132) at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:310) at java.awt.Component.processEvent(Component.java:6270) at java.awt.Container.processEvent(Container.java:2229) at java.awt.Component.dispatchEventImpl(Component.java:4861) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422) at java.awt.Container.dispatchEventImpl(Container.java:2273) at java.awt.Window.dispatchEventImpl(Window.java:2719) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:682) at java.awt.EventQueue$3.run(EventQueue.java:680) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) at java.awt.EventQueue$4.run(EventQueue.java:696) at java.awt.EventQueue$4.run(EventQueue.java:694) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:693) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:673) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:494) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139) at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)

»
14 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

thanks for the great plugin.

However,i am experiencing the following trouble:

i use src/JavaUtils as utilities package for tasks.I use class InReader for input which is defined inside this.in project settings i've put JavaUtils.InReader as Input Class.However,when i run some task it shows up ClassNotFoundException:

"C:\Program Files\Java\jdk1.7.0_05\bin\java" -Xmx256m -Xss64m -Didea.launcher.port=7532 "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 11.1.4\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.7.0_05\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.7.0_05\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.7.0_05\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.7.0_05\jre\lib\jce.jar;C:\Program Files\Java\jdk1.7.0_05\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.7.0_05\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.7.0_05\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.7.0_05\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.7.0_05\jre\lib\resources.jar;C:\Program Files\Java\jdk1.7.0_05\jre\lib\rt.jar;C:\Program Files\Java\jdk1.7.0_05\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.7.0_05\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.7.0_05\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.7.0_05\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.7.0_05\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.7.0_05\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.7.0_05\jre\lib\ext\zipfs.jar;D:\algorithms\out\production\algorithms;C:\Users\ankit\.IdeaIC11\config\plugins\chelper\lib\chelper.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 11.1.4\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain net.egork.chelper.tester.NewTester algo/src/tasker/JEDNAKOS.task
Exception in thread "main" java.lang.ClassNotFoundException: javaUtils.InReader 
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:186)
	at net.egork.chelper.tester.NewTester.test(NewTester.java:50)
	at net.egork.chelper.tester.NewTester.main(NewTester.java:22)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

yet,the file Main.java is correctly inlined.

Also,when i open IntelliJ Idea, persistent IllegalArgumentException get thrown:

7:33:08 PM IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/psi/impl/JavaPsiFacadeImpl.findClass must not be null: Argument 0 for @NotNull parameter of com/intellij/psi/impl/JavaPsiFacadeImpl.findClass must not be null

please Help..

»
14 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hi Egor, thanks for the nice plugin. In TopCoder, when I open a problem, it gives this message in TC coding panel "Probably socked was not opened, trying file method." It works OK in IntelliJ, but whenever I reopen the same problem, it deletes my current solution and it writes a blank code template source (as though I open the problem for the first time). What could be wrong in this situation?

»
14 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Smart testing doesn't seem work in my computer.

»
14 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Firstly thanks again for this beautiful plugin. I dont know if it is possible, but it would be nicer if the parse contest button creates a separate directory of that contest within the src. It is sometimes difficult to search for tasks specially in codechef contests. I hope I made my thoughts clear.

»
14 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

IDEA не хочет обновлять плагин. По-моему дело в том, что она считает версию 3.31 более поздней, чем 3.4.

Удаление + установка помогают. Видимо, имеет смысл ставить еще одну точку типа 3.3.1

»
14 лет назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

Было бы круто добавить в шаблон для TC что-то типа return %defaultValue%, чтобы он возвращал 0, "", new String[] и т.п, чтобы класс был сразу компилиируемым.

»
14 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Suddenly topcoder launch button stopped working for me, is there anyway I can debug?

»
14 лет назад, скрыть # |
Rev. 3  
Проголосовать: нравится 0 Проголосовать: не нравится

On the latest version (3.44) I see lovely message "Probably socket was not created, trying file method." when I try to open Topcoder problem again. It was not the case with all the previous versions except for 3.13. Fortunately I saved a copy of the previous one:)

»
14 лет назад, скрыть # |
Rev. 4  
Проголосовать: нравится 0 Проголосовать: не нравится

IDEA Ultimate 12.0.3, Chelper 3.44 После свежей установки на старом проекте

Экзепшны в правке.

OS Ubuntu

Пока писал подумал: судя по всему Chelper перестал добавляться в ext.libraries и его классов не видать, может быть все поэтому?(пробовал заходить в настрйоки и менять их)

UPD: Да, дело было в том, что путь либы был прописан неверный. После удаления и захода в настрйоки прописалось нормально обратно и стали запускаться новосозданные таски. Удаление работает, но бросает экзепшн. Но при этом старые файлы не архивируются и не запускаются

UPD2: помогла разархивация старых файлов

»
14 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Im trying to configure the plugin on IntelliJ IDEA 12 Community Edition and I can't get it to work. I installed the plugin through the repository, but I'm not quite sure what to do now. When I try to parse a contest, I get the following message from IntelliJ IDEA:

Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(338,425),absolute(758,596),button=1,modifiers=Button1,clickCount=1] on dialog2 java.lang.NullPointerException at java.lang.String.replace(String.java:2180) at net.egork.chelper.util.CodeGenerationUtilities.createStub(CodeGenerationUtilities.java:249) at net.egork.chelper.util.FileUtilities.createTaskClass(FileUtilities.java:301) at net.egork.chelper.util.FileUtilities.createIfNeeded(FileUtilities.java:346) at net.egork.chelper.ui.ParseDialog$1.onOk(ParseDialog.java:64) at net.egork.chelper.ui.OkCancelPanel$1.actionPerformed(OkCancelPanel.java:16) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) ...

And thats it. What should I do? It will be great to post a tutorial of installing and configuring step by step and a list of features and how to use it. Thanks!

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hi, I followed the instructions but I cannot launch topcoder arena using CHelper plugin. If I click the topcoder arena button, it just does not do anything.

Is there any other additional settings (such as path to the arena.jnlp file)?

I'm using Intellij 12 ultimate, with CHelper v3.44, installed on intellij (not direct download).

Thanks.

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Why don't you add page www.spoj.com to the Parse Contest button? I think this also one of the largest Online Judge page :D

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Got this error while installing CHelper 3.41 on IDEA 12:

Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(324,571),absolute(781,760),button=1,modifiers=Button1,clickCount=1] on dialog3
java.lang.NullPointerException
	at java.lang.String.replace(String.java:2207)
	at net.egork.chelper.util.CodeGenerationUtilities.createStub(CodeGenerationUtilities.java:249)
	at net.egork.chelper.util.FileUtilities.createTaskClass(FileUtilities.java:301)
	at net.egork.chelper.util.FileUtilities.createIfNeeded(FileUtilities.java:346)
	at net.egork.chelper.ui.ParseDialog$1.onOk(ParseDialog.java:64)
	at net.egork.chelper.ui.OkCancelPanel$1.actionPerformed(OkCancelPanel.java:16)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.Component.processMouseEvent(Component.java:6382)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
	at java.awt.Component.processEvent(Component.java:6147)
	at java.awt.Container.processEvent(Container.java:2083)
	at java.awt.Component.dispatchEventImpl(Component.java:4744)
	at java.awt.Container.dispatchEventImpl(Container.java:2141)
	at java.awt.Component.dispatchEvent(Component.java:4572)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
	at java.awt.Container.dispatchEventImpl(Container.java:2127)
	at java.awt.Window.dispatchEventImpl(Window.java:2489)
	at java.awt.Component.dispatchEvent(Component.java:4572)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:710)
	at java.awt.EventQueue.access$400(EventQueue.java:82)
	at java.awt.EventQueue$2.run(EventQueue.java:669)
	at java.awt.EventQueue$2.run(EventQueue.java:667)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:683)
	at java.awt.EventQueue$3.run(EventQueue.java:681)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:680)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:700)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:521)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
	at java.awt.Dialog$1.run(Dialog.java:1049)
	at java.awt.Dialog$3.run(Dialog.java:1101)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:1099)
	at java.awt.Component.show(Component.java:1591)
	at java.awt.Component.setVisible(Component.java:1543)
	at java.awt.Window.setVisible(Window.java:843)
	at java.awt.Dialog.setVisible(Dialog.java:984)
	at net.egork.chelper.ui.ParseDialog.<init>(ParseDialog.java:215)
	at net.egork.chelper.ui.ParseDialog.parseContest(ParseDialog.java:260)
	at net.egork.chelper.actions.ParseContestAction.actionPerformed(ParseContestAction.java:23)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:151)
	at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:169)
	at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:132)
	at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:310)
	at java.awt.Component.processEvent(Component.java:6147)
	at java.awt.Container.processEvent(Container.java:2083)
	at java.awt.Component.dispatchEventImpl(Component.java:4744)
	at java.awt.Container.dispatchEventImpl(Container.java:2141)
	at java.awt.Component.dispatchEvent(Component.java:4572)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
	at java.awt.Container.dispatchEventImpl(Container.java:2127)
	at java.awt.Window.dispatchEventImpl(Window.java:2489)
	at java.awt.Component.dispatchEvent(Component.java:4572)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:710)
	at java.awt.EventQueue.access$400(EventQueue.java:82)
	at java.awt.EventQueue$2.run(EventQueue.java:669)
	at java.awt.EventQueue$2.run(EventQueue.java:667)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:683)
	at java.awt.EventQueue$3.run(EventQueue.java:681)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:680)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:700)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:521)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
»
13 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

The latest version(3.5) finally works in ubuntu! (all the previous versions starting from 3.2 didn't work for me (an error "socket was not opened" appeared in Topcoder arena). Thank you so much for the latest changes!

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I was wondering what happens when a problem accepts many different solutions. If my program generates a correct output, but it isn't in the example test cases, it is treated as a incorrect answer?

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I am getting this error. I updated to Chelper-3.52 on Intellij Idea-12.0.4 on Ubuntu 12.04. I cannot use "Parse Contest" or "New Task" feature now while "Topcoder" feature works great. This error just cropped up after I updated the plugin.

Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(678,33),absolute(727,57),button=1,modifiers=Button1,clickCount=1] on frame0: Width (0) and height (0) cannot be <= 0
java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
	at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
	at java.awt.image.BufferedImage.<init>(BufferedImage.java:340)
	at net.egork.chelper.util.Utilities.iconToImage(Utilities.java:180)
	at net.egork.chelper.ui.ParseDialog.<init>(ParseDialog.java:49)
	at net.egork.chelper.ui.ParseDialog.parseContest(ParseDialog.java:261)
	at net.egork.chelper.actions.ParseContestAction.actionPerformed(ParseContestAction.java:23)
	at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:169)
	at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:132)
	at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:310)
	at java.awt.Component.processEvent(Component.java:6270)
	at java.awt.Container.processEvent(Container.java:2229)
	at java.awt.Component.dispatchEventImpl(Component.java:4861)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
	at java.awt.Container.dispatchEventImpl(Container.java:2273)
	at java.awt.Window.dispatchEventImpl(Window.java:2719)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:694)
	at java.awt.EventQueue$3.run(EventQueue.java:692)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.awt.EventQueue$4.run(EventQueue.java:708)
	at java.awt.EventQueue$4.run(EventQueue.java:706)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:673)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:494)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
»
13 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

В исходник, который надо сабмитить, не копируются статические импорты.
Между тем очень удобно делать import static java.lang.Math.*; и не писать нигде Math.
Исправите?

  • »
    »
    13 лет назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    Довольно легко будет добавить статик импорты из не встраиваемого кода (тиа java.lang.Math.* и т.п.). Статик импорты из собственных библиотек вставить будет сложнее, но подумаю.

    • »
      »
      »
      13 лет назад, скрыть # ^ |
       
      Проголосовать: нравится 0 Проголосовать: не нравится

      Из собственных — это что-то совсем странное, ведь там исходник класса копируется — зачем ему импорты? Я имел в виду стандартную библиотеку, конечно.

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

problem in chelper 3.52: 1.I can not parse timus problem; 2.how can i run topcoder tasks when i restore them

thanks!

  • »
    »
    13 лет назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится
    1. Will be fixed in next build (they slightly changed format)

    2. What problem exactly do you have? It works correctly for me

    • »
      »
      »
      13 лет назад, скрыть # ^ |
       
      Проголосовать: нравится 0 Проголосовать: не нравится

      I move stored tasks to different folder(not the default one), e.g. SRM 584 TopFox problem, when i restore and compile it, a exception named "src.lpeter.To class not found"(not TopFox but To) raised.

      P.S. I look into the out directory, the compiled TopFox.class is there.

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

While using recursive algorithms like dfs in java, many a times we can get StackOverflowError. Is it possible to add an option to the new Task dialog box, to automatically increase stack size by creating a new Thread.

Also please fix timus.

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Can you guide to use this Google Chrome's extension.

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

When I started Intellij IDEA today, I was prompted to update CHelper. After I updated it and restarted the IDE, an error occured.

Plugin CHelper failed to initialize and will be disabled:
net/egork/chelper/CHelperMain : Unsupported major.minor version 51.0 [Plugin: CHelper]
Please restart Intellij IDEA.

How can I fix this problem? After I updated the new version, the old version disappeared. Right now I can't even find my old version T_T

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What other sites do you want to see added to Chrome Extension? Please note that Sphere or Uva is still unlikely due to no common format of sample test cases

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

You could add the possibility to parse contests from the Gym.

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

A week ago I installed 64-bit Windows 8, 64-bit JDK, IntelliJ IDEA and CHelper on my computer. And my Launch TopCoder arena button didn't work. After pressing the button, it just didn't do anything, and there were no exception thrown.

Today I reinstalled IDEA removing all the settings. IDEA has been installed to "Program Files (x86)/..." folder, since I had everything 64-bit, I thought that the problem was that IDEA was 32-bit version. After I installed it, I looked at "bin" folder in IDEA installed directory. There I found two files "idea.exe" and "idea64.exe". I executed "idea64.exe", and button worked, but when I use "idea.exe" it is still not working.

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Is it possible to add TopCoder to the "Parse Contest" list? I mean, to be able to select some SRM directly from the IDE and launch the Arena ready for it.

btw, wonderful plugin.

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Was the Hackerrank support removed? I don't have an option for it.

»
13 лет назад, скрыть # |
Rev. 4  
Проголосовать: нравится 0 Проголосовать: не нравится

Thank you for this great plug-in again!

1)Is it possible to run Facebook Hackercup/GCJ tasks in parallel threads? (Of course I'm going to handle all the synchronization on my own).

2)If no, how can I change the template for the generated Main.java file?

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Problems with restoring tasks in Idea 13 should be fixed now

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

hackerRank снова/по-прежнему не работает. IDEA 133.331 Chelper 3.73 Chrome ext 3.70.1

Просто ничего не происходит. При этом на КФе нормально.

»
13 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится +2 Проголосовать: не нравится

In Intellij Idea 13.1 , I am getting error when try to run the program , it was working until I updated it to 13.1 from 13.

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

UPD:I installed Idea13 again , update to 13.1 when Egor have time to update Chelper

»
13 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится -8 Проголосовать: не нравится

By any chance, could this plugin work with Scala in Intellij Idea? Scala is JVM based and it's the same IDE.

»
13 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Can we get java 8 support for CHelper? I facing this error:

objc[17491]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined. java.lang.IllegalArgumentException at org.objectweb.asm.ClassReader.(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at ch.eiafr.cojac.ClassLoaderInstrumenter.instrument(ClassLoaderInstrumenter.java:43) at ch.eiafr.cojac.Agent.transform(Agent.java:47) at sun.instrument.TransformerManager.transform(TransformerManager.java:188) at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:428) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:760) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:455) at java.net.URLClassLoader.access$100(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:367) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:259) at net.egork.chelper.tester.NewTester.test(NewTester.java:65) at net.egork.chelper.tester.NewTester.main(NewTester.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

»
12 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Hi Community

I would like to use this plugin but I am having problems trying to understand how use it. I installed last version of IntelliJ IDEA and CHelper plugin. I am reading the Wiki but I am not clear how create a project that uses this plugin.

Right click on main toolbar, select "Customize Menus and Toolbars...", select location where you want actions to be listed (probably end of "Main Toolbar" is good), click "Add After...", select "Plug-ins->CHelper" and add actions you are interested in (probably all but "Task"). I am new using this IDE and I don't know how add this action. I need your help.

Thanks in advance.

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

can u also add the date of release for each update (atleast in future)? thanks!

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Archiving doesn't work for me. It creates a folder "on2014_04" in src. Help?

»
12 лет назад, скрыть # |
Rev. 3  
Проголосовать: нравится 0 Проголосовать: не нравится

Java 8
IDEA 13.1.1
OS примерно Debian

При попытке изменить тесты следующий экзепшн (в правке 2)

»
12 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Problem with sample tests parsing for "Google Code Jam".

Input: 3\n3 2\n01 11 10\n11 00 10\n2 3\n101 111\n010 001\n2 2\n01 10\n10 01\n\n
Output: Case #1: 1\nCase #2: NOT POSSIBLE\nCase #3: 0\n\n

screen-shots in edit

Doesn't reproduce on Codeforces, etc

IDEA 13.1.2, Windows 8, jdk8

»
12 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

I have NullPointer exception. OS: MacOS Idea 13.1 Chelper 3.9.

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I'm trying to install CHelper plugin in IDEA 13.1.2 Community, but when I do right click on main toolbar, I don't see anything like "Customize Menus and Toolbars...". What is the updated instruction?

»
12 лет назад, скрыть # |
 
Проголосовать: нравится -8 Проголосовать: не нравится

I know this is not an arena but I think I can add support for submission from within the IDE. Would you be open to pulling it into your project if I implemented it?

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Glad to see Java8 support added.
Was it hard to get cojac run under Java8?

  • »
    »
    12 лет назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    I had to fix it and rebuild from sources — ow2 java 8 compatible version made some changes in API

    • »
      »
      »
      12 лет назад, скрыть # ^ |
       
      Проголосовать: нравится 0 Проголосовать: не нравится

      Hi Egor,I updated plugin(on idea suggestion) to Java8. I have also updated my Java version.Now i am getting exception while enabling plugin.

      log is like this :

      net/egork/chelper/AutoSwitcher : Unsupported major.minor version 52.0 [Plugin: CHelper]: net/egork/chelper/AutoSwitcher : Unsupported major.minor version 52.0 [Plugin: CHelper] com.intellij.diagnostic.PluginException: net/egork/chelper/AutoSwitcher : Unsupported major.minor version 52.0 [Plugin: CHelper] at com.intellij.ide.plugins.cl.PluginClassLoader.d(PluginClassLoader.java:108) at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:63) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:270) at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:447) at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:437) at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.access$000(ComponentManagerImpl.java:421) at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:102) at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:346) at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:86) at com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:309) at com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:278) at com.intellij.openapi.project.impl.ProjectManagerImpl.access$300(ProjectManagerImpl.java:82) at com.intellij.openapi.project.impl.ProjectManagerImpl$9.compute(ProjectManagerImpl.java:558) at com.intellij.openapi.project.impl.ProjectManagerImpl$9.compute(ProjectManagerImpl.java:554) at com.intellij.openapi.progress.impl.ProgressManagerImpl$4.run(ProgressManagerImpl.java:269) at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:495) at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:304) at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:185) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:226) at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:175) at com.intellij.openapi.application.impl.ApplicationImpl$10$1.run(ApplicationImpl.java:681) at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:454) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152) Caused by: java.lang.UnsupportedClassVersionError: net/egork/chelper/AutoSwitcher : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.lang.ClassLoader.defineClass(ClassLoader.java:643) at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:153) at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:149) at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:125) at com.intellij.ide.plugins.cl.PluginClassLoader.d(PluginClassLoader.java:102) ... 29 more

      com.intellij.diagnostic.PluginException: net/egork/chelper/configurations/TaskConfigurationType : Unsupported major.minor version 52.0 [Plugin: CHelper] at com.intellij.ide.plugins.cl.PluginClassLoader.d(PluginClassLoader.java:108) at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:63) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:270) at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.loadClass(ExtensionComponentAdapter.java:148) at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentImplementation(ExtensionComponentAdapter.java:63) at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentInstance(ExtensionComponentAdapter.java:70) at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getExtension(ExtensionComponentAdapter.java:111) at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:241) at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensions(ExtensionPointImpl.java:185) at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:111) at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:98) at com.intellij.execution.impl.RunManagerImpl.a(RunManagerImpl.java:111) at com.intellij.execution.impl.RunManagerImpl.(RunManagerImpl.java:86) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193) at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:220) at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53) at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248) at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:60) at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:58) at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:572) at

      and some more ... could you please point out where is the problem ?

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Есть ли где-нибудь видео о том, где показывается как настраивать/юзать chelper для чайников? Очень мне надо.

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

IDEA has a feature Run with coverage, that highlights the lines of code that were not executed.
Currently it is not enabled with CHelper, so it is not possible to see collected test coverage.
If only it can be simply implemented, it would be a useful feature.

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I am facing this error:

8:22:15 AM IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/psi/impl/JavaCodeFragmentFactoryImpl.createReferenceCodeFragment must not be null: Argument 0 for @NotNull parameter of com/intellij/psi/impl/JavaCodeFragmentFactoryImpl.createReferenceCodeFragment must not be null

Any fix for this?

  • »
    »
    12 лет назад, скрыть # ^ |
     
    Проголосовать: нравится -8 Проголосовать: не нравится

    Well, can you provide stack trace?

    • »
      »
      »
      12 лет назад, скрыть # ^ |
       
      Проголосовать: нравится -8 Проголосовать: не нравится
      • »
        »
        »
        »
        12 лет назад, скрыть # ^ |
         
        Проголосовать: нравится -8 Проголосовать: не нравится

        I would really appreciate this as plain text

        • »
          »
          »
          »
          »
          12 лет назад, скрыть # ^ |
           
          Проголосовать: нравится -8 Проголосовать: не нравится

          Argument 0 for @NotNull parameter of com/intellij/psi/impl/PsiManagerImpl.findFile must not be null: Argument 0 for @NotNull parameter of com/intellij/psi/impl/PsiManagerImpl.findFile must not be null java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/psi/impl/PsiManagerImpl.findFile must not be null at com.intellij.psi.impl.PsiManagerImpl.findFile(PsiManagerImpl.java) at net.egork.chelper.util.CodeGenerationUtilities$3.run(CodeGenerationUtilities.java:231) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:984) at net.egork.chelper.util.CodeGenerationUtilities.createSourceFile(CodeGenerationUtilities.java:214) at net.egork.chelper.util.TaskUtilities.createSourceFile(TaskUtilities.java:13) at net.egork.chelper.configurations.TaskConfiguration.getState(TaskConfiguration.java:65) at com.intellij.execution.runners.ExecutionEnvironment.getState(ExecutionEnvironment.java:182) at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:59) at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:32) at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:54) at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:32) at com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:138) at com.intellij.execution.impl.ExecutionManagerImpl.start(ExecutionManagerImpl.java:394) at com.intellij.execution.impl.ExecutionManagerImpl.access$400(ExecutionManagerImpl.java:61) at com.intellij.execution.impl.ExecutionManagerImpl$4.run(ExecutionManagerImpl.java:375) at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238) at com.intellij.util.Alarm$Request$1.run(Alarm.java:327) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:319) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715) at java.awt.EventQueue.access$400(EventQueue.java:82) at java.awt.EventQueue$2.run(EventQueue.java:676) at java.awt.EventQueue$2.run(EventQueue.java:674) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86) at java.awt.EventQueue.dispatchEvent(EventQueue.java:685) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:697) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

          • »
            »
            »
            »
            »
            »
            12 лет назад, скрыть # ^ |
            Rev. 5  
            Проголосовать: нравится 0 Проголосовать: не нравится

            I'm getting the very same error as SurenNihalani does. What should I do?

            I use IntelliJ IDEA 13

            EDIT: After more attempts I manage to go over the above error. However, now I receive this exception:

            Exception in thread "main" java.lang.NoSuchMethodError: net.egork.chelper.task.Task.loadTask(Lnet/egork/chelper/util/InputReader;)Lnet/egork/chelper/task/Task; at net.egork.chelper.tester.NewTester.test(NewTester.java:43) at net.egork.chelper.tester.NewTester.main(NewTester.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)

            How should I fix it?

            EDIT2: Nevermind, I restarted the IDE and it works perfect now.

»
12 лет назад, скрыть # |
 
Проголосовать: нравится -8 Проголосовать: не нравится

Hi Egor,

I've been using this plugin for almost an year and would like to thank you for this awesome work. I've recently upgraded to IntelliJ IDEA 13.1 and installed this plugin from repository. But, it doesn't seem to work. I am using Windows.

Here is the error message:

Exception in thread "main" java.lang.ClassNotFoundException: net.egork.chelper.tester.NewTester
	at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:259)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:116)

It would be really helpful if you can reply quickly :)

»
12 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится -8 Проголосовать: не нравится

I use

import static java.util.Arrays.*;
int[] is;
sort(is);

However, CHelper does NOT insert import static java.util.Arrays.*; into my submission. Anybody like me?

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hi, Egor:)

I wonder know, could you share your Algorithm Library with us? Or it has already been shared, could you tell me how to get it?

Sorry, it seems I am rash...

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I am sad. An exception occurred when Codeforces. My environment: Win 8.1, IDEA 13.1.3, CHelper 3.92 Please help... Here is the log:

Argument 0 for @NotNull parameter of com/intellij/openapi/fileEditor/impl/FileDocumentManagerImpl.getDocument must not be null: Argument 0 for @NotNull parameter of com/intellij/openapi/fileEditor/impl/FileDocumentManagerImpl.getDocument must not be null
java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/openapi/fileEditor/impl/FileDocumentManagerImpl.getDocument must not be null
	at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.getDocument(FileDocumentManagerImpl.java)
	at net.egork.chelper.util.FileUtilities.synchronizeFile(FileUtilities.java:189)
	at net.egork.chelper.util.CodeGenerationUtilities$3.run(CodeGenerationUtilities.java:251)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:984)
	at net.egork.chelper.util.CodeGenerationUtilities.createSourceFile(CodeGenerationUtilities.java:214)
	at net.egork.chelper.util.TaskUtilities.createSourceFile(TaskUtilities.java:13)
	at net.egork.chelper.configurations.TaskConfiguration.getState(TaskConfiguration.java:65)
	at com.intellij.execution.runners.ExecutionEnvironment.getState(ExecutionEnvironment.java:182)
	at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:59)
	at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:32)
	at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:54)
	at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:32)
	at com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:138)
	at com.intellij.execution.impl.ExecutionManagerImpl.a(ExecutionManagerImpl.java:394)
	at com.intellij.execution.impl.ExecutionManagerImpl.access$400(ExecutionManagerImpl.java:61)
	at com.intellij.execution.impl.ExecutionManagerImpl$4.run(ExecutionManagerImpl.java:375)
	at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
	at com.intellij.util.Alarm$Request$1.run(Alarm.java:327)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:319)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:694)
	at java.awt.EventQueue$3.run(EventQueue.java:692)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
	at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:697)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

When I click topcoder icon, nothing happens. Where should I look for logs? Windows 8.1, latest IDEA and chelper.

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

A new bug comes.

package main;

import com.shu_mj.tpl.Scanner;
import java.io.PrintWriter;

public class Task {
    public void solve(int testNumber, Scanner in, PrintWriter out) {
        V v = new V();
    }
    class V {
        int a = 1, b = 1;

    }
}

CHelper can't handle the code above. class V will be:

class Task {
    public void solve(int testNumber, Scanner in, PrintWriter out) {
        V v = new V();
    }
    class V {
        ,

    }
}

It will get compile error. Am I wrong? Or please fix it.

»
12 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Please help, please...

After I finished problem A, I clicked Archive Task. And then I completed problem B's code. After I pressed Shift + F10, an error occurred. T^T

Here is the error information:

11:42:07 PM Compilation completed successfully in 5 sec
11:42:53 PM Compilation completed successfully in 4 sec
11:43:46 PM CHelper: Configuration 'A - Feed with Candy' successfully archived
12:00:39 AM IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/openapi/fileEditor/impl/FileDocumentManagerImpl.getDocument must not be null: Argument 0 for @NotNull parameter of com/intellij/openapi/fileEditor/impl/FileDocumentManagerImpl.getDocument must not be null

Argument 0 for @NotNull parameter of com/intellij/openapi/fileEditor/impl/FileDocumentManagerImpl.getDocument must not be null: Argument 0 for @NotNull parameter of com/intellij/openapi/fileEditor/impl/FileDocumentManagerImpl.getDocument must not be null
java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/openapi/fileEditor/impl/FileDocumentManagerImpl.getDocument must not be null
	at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.getDocument(FileDocumentManagerImpl.java)
	at net.egork.chelper.util.FileUtilities.synchronizeFile(FileUtilities.java:189)
	at net.egork.chelper.util.CodeGenerationUtilities$3.run(CodeGenerationUtilities.java:251)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:984)
	at net.egork.chelper.util.CodeGenerationUtilities.createSourceFile(CodeGenerationUtilities.java:214)
	at net.egork.chelper.util.TaskUtilities.createSourceFile(TaskUtilities.java:13)
	at net.egork.chelper.configurations.TaskConfiguration.getState(TaskConfiguration.java:65)
	at com.intellij.execution.runners.ExecutionEnvironment.getState(ExecutionEnvironment.java:182)
	at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:59)
	at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:32)
	at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:54)
	at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:32)
	at com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:138)
	at com.intellij.execution.impl.ExecutionManagerImpl.a(ExecutionManagerImpl.java:394)
	at com.intellij.execution.impl.ExecutionManagerImpl.access$400(ExecutionManagerImpl.java:61)
	at com.intellij.execution.impl.ExecutionManagerImpl$4.run(ExecutionManagerImpl.java:375)
	at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
	at com.intellij.util.Alarm$Request$1.run(Alarm.java:327)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:319)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
	at java.awt.EventQueue.access$400(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:697)
	at java.awt.EventQueue$3.run(EventQueue.java:691)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
	at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:697)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
	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)

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

омг, как ее выключить?! я просто хочу написать gcj...:(

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Я правильно понимаю, что текущая версия плагина не поддерживает чтение исходников откуда бы то ни было, кроме как из проекта? Хочется, чтобы умела из локального Maven-репозитория.

Я попробовал создать в проекте новую Library, добавил туда artifact-version.jar и artifact-version-sources.jar, Chelper такое не подцепил, в сгенеренном исходнике значится /* compiled code */

  • »
    »
    12 лет назад, скрыть # ^ |
     
    Проголосовать: нравится -8 Проголосовать: не нравится

    А еще, похоже, хорошей идеей будет принудительно чистить исходники от джавадоков перед их копированием в итоговый файл. Там что-то не работает. Джавадоки на методы копируются нормально, а от джавадока на классы отрезается некоторое количество первых символов, из-за чего итоговый файл становится некомпилябельным.

»
12 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится +1 Проголосовать: не нравится

Hello, first of all your plugin is great, I started using Intellij Idea just to try it and never stopped using it since, Idea + Chelper = great combination. That said it seems like Chelper does not generate the files when the return type is char on Topcoder, this happened with Srm 627 Div 2 500 problem.

»
12 лет назад, скрыть # |
 
Проголосовать: нравится -8 Проголосовать: не нравится

Is there any chance of adding UVA support in the near future? It would be absolutely amazing. Thanks for this great tool.

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I think you need to update the parser for Codechef, it seems they changed their format a little.

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

When parsing problems in codechef the name of the class gets ridiculously wrong (adding stuff other than the problem's title). I noticed this while parsing MLCHEF from September 2013 Long Challenge.

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Just curious, how much money have you got in donations till date?

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Does anybody know how to properly increase the heap or stack space, as I currently get the following test result: RunTime Error (StackOverflowError) even on code that codeforces accepts. I have done two things, neither of which have helped, which is increasing the Build process heap size to 8000mb and also adding an ant build file to the project with settings of a maximum heap size of 4086Mb and a maximum stack size of 4096Mb. However this problem persists. If anybody has had experience with this could they chime in? Thank you!

  • »
    »
    12 лет назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    Ok so finally figured out solution. Hope this helps somebody in future. In the Edit Task popup one must click on advanced and go to the VM arguments box. It is not enough to simply put say -Xmx8096M as I was doing. Instead one must also specify the minimum (I think?), with -Xss1024M -Xmx8096M as arguments. In either case this fixed my problem, which was that my dp solution to Div 1A this round was running out of stack space.

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

It'd be cool to parse contest in (private) groups using Chrome extension

URL типа такого: http://codeforces.TLD/group/GROUPID/contest/CONTESTID/problem/A

»
12 лет назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Is it possible that this can be used to support Scala?

»
12 лет назад, скрыть # |
Rev. 3  
Проголосовать: нравится 0 Проголосовать: не нравится

I just installed CHelper 3.94 and tried to do problem A from Codeforces Round 291 (Div.2). After writing code and hitting Run button, this is what I get. Please help me out.

As far as I can see, the name of '.task' file is 'A — Chewbacca and Number.task' whereas the '.java' file for the same problem is 'TaskA.java'.

How to solve this issue? Stacktrace follows:

Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: src\myPackage\A — Chewba?ca and Number.task (The filename, directory name, or volume label syntax is incorrect) at net.egork.chelper.tester.NewTester.test(NewTester.java:41) at net.egork.chelper.tester.NewTester.main(NewTester.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) Caused by: java.io.FileNotFoundException: src\myPackage\A — Chewba?ca and Number.task (The filename, directory name, or volume label syntax is incorrect) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:146) at java.io.FileInputStream.(FileInputStream.java:101) at net.egork.chelper.tester.NewTester.test(NewTester.java:39)

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

So just wanted to add comment for anybody who struggled with this same problem as me, which was that CHelper would take up to 20 seconds to compile and run the task. This issue was solved by marking the archive as excluded, which is done by going to File -> Project Structure -> Modules -> Selecting your archive -> then clicking the excluded button. Otherwise it seems that intellij compiles the entire archive, which if you have been doing codeforces for a while is quite large. This may be obvious to everybody else but for whatever reason I never thought of this, and was racking my brains wondering why my intellij was so slow when on Petr and Egor screencasts it took <5 secs. Well now mine too takes <5 secs and I am much happier. Anyway hope this helps somebody at some point.

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

When I click 'parse task' button on a hackerrank problem's web page, what's supposed to happen?

»
12 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Hi, Egor

Please fix hackerrank parser. Working code is in previous revision

»
12 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Будет круто, если код переедет куда-то, где легко предлагать патчи(Github например)

Тем более учитывая, что code.google.com закрвыается

  • »
    »
    12 лет назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    Да, ровно туда он и переедет (завтра или послезавтра)

    Было бы здорово устроить что-то типа марафона для сферического парсера в вакууме (получает веб-страницу, выдает список тасок), а то все эти смены форматов достали

»
11 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Не получается создать тесты.

При создании новой таски Edit tests работает нормально.
Если после создания таски, нажать Edit tests (или Edit task->Edit tests, или Edit configurations->Edit tests), вписать в окно новые тесты, закрыть окошко, а потом вновь открыть, то добавленные тесты будут видны. Но *.task-файл не изменяется.
Более того, если вручную вписать тесты в *.task-файл, а потом открыть диалоговое окно, новых тестов там не будет, зато будут те, которые мы пытались добавить с помощью Edit tests.

А при при запуске IDEA вылетает такая ошибка.

OSX 10.10.2, IDEA 14.1, CHelper 3.94

»
11 лет назад, скрыть # |
 
Проголосовать: нравится -8 Проголосовать: не нравится

Hi Egor,

Thanks for continually making this plugin so amazing! I recently tried to re install everything from scratch, i.e. IntelliJ 14 + topcoder plugins (moj+cp+fileeditor) + chelper. I am not sure which is the latest installation manual (probably https://code.google.com/p/idea-chelper/wiki/MainPage). I installed the plugin from intellij plugins and launched arena from it. I also configured the moj plugin in the arena. When i open a problem, it doesn't create a task in the editor. The code area in the arena stays blank. The intellij shows an error message — "Could not create serverSocket for Chrome parser probably another chelper project running?". maybe i did not configure the arena correctly. I have a CHelper editor with path to the plugin jar. Can you suggest me what to do here? Thanks!

»
10 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I am unable to get the Topcoder task created. Java console shows InputMismatchException. Stack trace: Caused by: java.util.InputMismatchException: at net.egork.chelper.util.InputReader.readInt(InputReader.java:65) at net.egork.chelper.util.InputReader.readString(InputReader.java:95) at net.egork.chelper.topcoder.CHelperArenaPlugin.setProblemComponent(CHelperArenaPlugin.java:105) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

I added debug info to the exception and saw, "Cannot convert '-128' into int".

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Could you please tell how can I add a task using the chrome extension..

I just click on the green plus sign in the extensions tab and nothing happens..

It would be great, If you could tell me how to use the add task extension in the browser..?

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Can you please make a video for the installation or help me make one so that it would be a great help for a larger audience ? I have problems in codechef parsing in the latest versions also. It would be great if a channel could be maintained for it.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hi!

Can someone tell me how to use a TestProvider?