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

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

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
  • Проголосовать: не нравится

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

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

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

    Well, the only problem I see is with unused code elemination (Idea provides very nice framework for this)

    I have two problems through — I do not own any non-starter VS license (and started do not allow plugin development) and I do not have time for second such project. I will be glad to help anyone who would be up for a task through with some advice

  • »
    »
    10 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится
»
12 лет назад, # |
  Проголосовать: нравится 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)

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

Thanks!

»
12 лет назад, # |
  Проголосовать: нравится 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

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

    Sorry, I'm currently on the go, but you can fix this by changing your default programming language in arena. I'll fix when I'll have time

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

      Also, is it planned to fetch problem statement or chelper already has such a feature? It would really be better.

»
12 лет назад, # |
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?

»
12 лет назад, # |
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! ..

»
12 лет назад, # |
  Проголосовать: нравится 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?

  • »
    »
    12 лет назад, # ^ |
      Проголосовать: нравится +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

»
12 лет назад, # |
  Проголосовать: нравится 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)

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

    I'm not sure what do you mean. You can select input and output type on task creation as well as change them through task properties afterwards, but apart from choosing wrong option on task creation I do not see why would you need to do that

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

      I can change that when I create a task, but how can I make the same thing when parsing a contest?

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

        Input ype shoukd be parsed correctly (all supported sites but Codeforces always use stdin/stdout, for Codeforces files are parsed corectly AFAIK)

»
12 лет назад, # |
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?

  • »
    »
    12 лет назад, # ^ |
      Проголосовать: нравится 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

    • »
      »
      »
      12 лет назад, # ^ |
      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.

»
12 лет назад, # |
  Проголосовать: нравится 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

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

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

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

    I do not have any long description, but basicaly it is plugin for IntelliJ Idea that inlines library code and provides testing framework

»
12 лет назад, # |
  Проголосовать: нравится 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

»
12 лет назад, # |
  Проголосовать: нравится 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ую.

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

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

»
12 лет назад, # |
  Проголосовать: нравится 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.

  • »
    »
    12 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится
    1. It is possible — click button "Test classes" in Run/Debug Configurations dialog

    2. It should be archived, if not — this is a bug

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

      Good. Didn't notice that.

      Now, when I add generator using "Test classes" it got archived.

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

        Then I understand why it hadn't been archived — plugin use task stored in memory for archivation purposes, but passes filename for testing purposes

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

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

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

    Can you provide stack trace?

    • »
      »
      »
      12 лет назад, # ^ |
        Проголосовать: нравится 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

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

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

        • »
          »
          »
          »
          »
          12 лет назад, # ^ |
            Проголосовать: нравится 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)

»
12 лет назад, # |
  Проголосовать: нравится 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..

»
12 лет назад, # |
  Проголосовать: нравится 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?

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

    Seems like for whatever reason socket could not be opened, hence file method is used. This bug in file method is known and I will fix it when I'll have time

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

Smart testing doesn't seem work in my computer.

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

    Can you run task with failed test and paste here content of CHelperReport.txt (should be in project root)?

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

      I can't find CHelperReport.txt in project root

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

        Are you sure you updated to 3.4? There was intermidiate release 3.33

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

          The settings window say the version is 3.4, and in "Project Settings" there is a checkbox with label "Use smart testing".

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

            Are CHelper library in project settings pointing to correct place?

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

              Problem solved. The project is using an old version of chelper.jar that I use in idea 11.

»
12 лет назад, # |
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.

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

    Do you ever archive tasks from previous contests? Default directory should usually contain files from current contest(s). Also you can specify location on parse contest dialog I believe

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

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

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

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

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

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

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

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

    Can this be because of some missing file (may be accidentally deleted), or something like that?

    Everything else seems to be working. Only if I click topcoder icon, nothing happens.

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

      That's rather strange. Is there any exceptions in the log?

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

        There is nothing in Event Log. Is there any other log file?

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

          No. That is very strange as that action cannot fail siletnly — it is either failed with exception of show some message. Are you sure you are trying to run it from appropriate project (i. e. one with chelper.properties)?

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

            Yes, I've done last few SRMs from this project. Do you want me to send any screen shot?

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

              I do not see how scrrenshot could possibly help. Please zip project and send it to egor at egork don net, I'll try to reproduce your problem

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

              It works for me, so seems like something in your environment. Could you try to close idea (make sure through task manager), then open only that project and try again?

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

                I did try closing and opening it again. Even tried restarting my laptop.

                May be the last thing I can do is reinstalling IntelliJ, or if you have any other suggestion?

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

                  Try to search ContestAppletProd.jnlp and ContestApplet.jar on your computer and deleting all copies of it. I'm not sure whether that can help, but I have no other ideas.

                  Otherwise I'll try to craft debug version for you

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

                  Nothing seems to be working here. Tried deleting exising ContestAppletProd.jnlp, etc.

                  May be debug version will be helpful, if you can.

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

                  Hi, same problem started again. Launch arena is failing silently.

                  But from outside of intelliJ I can start arena.

                  I don't know exactly how to fix it. If you think a debug version may help, I can try using it.

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

                  Thanks Egor for your continuous support. I was trying hard to fix this issue. I I've just compiled part of your code locally and found that the error messages were like this -

                  Java Web Start splash screen process exiting ..... Bad installation. No JRE found in configuration file

                  After searching this issue — I found the solution here — http://www.racoonlab.com/2013/01/java-web-service-doesnt-start-bad-installation-no-jre-found-in-configuration-file/

                  Now the problem is resolved, There is nothing wrong here with your plugin. Problem is with Apple update.

                  Thanks again.

»
12 лет назад, # |
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:)

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

    Yeah, me too. But at least it works! :)

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

      For me it doesn't work for topcoder, the task is created (with some delay), but when I compile the code in IDEA, it is not updated in TC arena (it says the code is blank).
      It seems the problem only occurs in Linux.

      UPD: I noticed that on lines 36-37 here the output to created socket is not flushed. Can it cause any problems like this?

      By the way, can I check out the latest version of the source code of the plugin somewhere?(It seems the latest commit to online repository was in November,23)

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

    Could you please share it, while it isn't fixed?

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

      Yes, an earlier version is here http://zalil.ru/34259794. (Actually it is older then the previous one, but it works in Ubuntu).

      P.S. Just noticed that the repository has different branches, so the latest source code is available. I think we can try to rebuild it locally and look at stack trace of thrown IOException. Unfortunately I don't have time for it right now:(

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

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

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

OS Ubuntu

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

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

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

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

    Я посмотрю. Добавь пока библиотеку ручками что ли

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

      Ага, он добавил ее, после того, как я удалил старую.

»
12 лет назад, # |
  Проголосовать: нравится 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!

»
12 лет назад, # |
  Проголосовать: нравится 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.

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

    You clicked "Project settings" button and then ok?

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

      The "edit project settings" button in plugin? yes, it shows the small setting dialog

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

        And there is chelper.properties file in project root?

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

          Yes, and the content is



          # #Tue Mar 26 23:10:55 KST 2013 smartTesting=true archiveDirectory=archive/unsorted defaultDirectory=src/main outputClass=java.io.PrintWriter excludePackages=java.,javax.,com.sun. outputDirectory=src author=@ugo libraryMigrated=true failOnIntegerOverflowForNewTasks=false inputClass=java.util.Scanner enableUnitTests=false testDirectory=lib/test
        • »
          »
          »
          »
          »
          12 лет назад, # ^ |
          Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

          Never mind, the exception was my fault, but I still can't use the plugin..

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

          OK, if I turn off internet connection and click the button, a popup dialog saying "Arena is not accessible, check Internet connection" appears.

          But if I turn on internet on my mac and click the button then nothing happens..

»
12 лет назад, # |
  Проголосовать: нравится 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

»
12 лет назад, # |
  Проголосовать: нравится 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)
»
12 лет назад, # |
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!

»
11 лет назад, # |
  Проголосовать: нравится 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?

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

    You have two options in this case — write your own checker or unmark "know answer" in all tests

»
11 лет назад, # |
  Проголосовать: нравится 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)
»
11 лет назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

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

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

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

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

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

»
11 лет назад, # |
  Проголосовать: нравится 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!

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

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

    • »
      »
      »
      11 лет назад, # ^ |
        Проголосовать: нравится 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.

»
11 лет назад, # |
  Проголосовать: нравится 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.

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

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

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

    You just need to install it from here

    When you are on the page of Yandex.Contest (new interface) with problem, there would be white + sign in green circle on the right part of adress bar. You just need to click it and new task dialog will open in Idea (with all relevant date prefilled, including test cases)

»
11 лет назад, # |
  Проголосовать: нравится 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

»
11 лет назад, # |
  Проголосовать: нравится 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

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

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

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

    Those gym contests that have web statements are parsable from Chrome extension (they are not parsable from Parse Contest as gym requires logging in)

»
11 лет назад, # |
  Проголосовать: нравится 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.

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

    Most probably it is because ProcessBuilder could not start 64-bit process from 32-bit application

»
11 лет назад, # |
  Проголосовать: нравится 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.

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

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

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

    Hackerrank support is through Chrome extension

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

      Thanks. I installed the extension but clicking the '+' sign brings up nothing in IntelliJ

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

        That's very strange. Is CHelper enabled project opened in Idea? What task had you tried?

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

          I tried at least 2 tasks in each of the categories in the algorithms track. The extension works fine in codeforces though.

          Yes there is a c-helper enabled project opened

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

            Seems like they changed page format. I'll look into this

»
11 лет назад, # |
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?

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

Problems with restoring tasks in Idea 13 should be fixed now

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

    Can you update your source code please? It lets me figure out why things aren't quite working the way I want them.

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

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

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

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

    Ну, скорее всего в Event Log то писалось про unable to parse. В новой версии должно работать

»
11 лет назад, # |
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

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

    Should work now. Sorry for taking so much time, was busy lately

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

      Thanks and don't be sorry , you make our work easy ,everyone who are using chelper knows how much it is useful.You use your valuable time in helping us.

»
11 лет назад, # |
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.

»
11 лет назад, # |
  Проголосовать: нравится 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)

»
11 лет назад, # |
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.

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

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

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

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

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

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

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

»
11 лет назад, # |
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

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

    Should be fixed

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

      Thanks, now it works.

      Also I want to assure that I correctly understand CHelper workflow for CodeJam.
      Is it the right way to run generated Main.java (but not TaskA) to obtain results for input files (such as a-small.in)? Because running TaskA does not include input from files, only tests from ALT-F5 window.

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

        Yes

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

          One more question: what is checker and is it connected to stress-testing? (you wrote that checker support for TopCoder is needed)

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

            Sometimes answer is not unique and there may be correct outputs that are differs from default. Then you need some program that given input, answer and output says whether output is also correct answer. TopCoder only recently started to give such kind of problems

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

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

»
11 лет назад, # |
  Проголосовать: нравится 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?

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

    Because main toolbar is switched off by default. You need to enable it in View menu

»
11 лет назад, # |
  Проголосовать: нравится -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?

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

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

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

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

    • »
      »
      »
      11 лет назад, # ^ |
        Проголосовать: нравится 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 ?

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

        Most likely Idea still uses old version of Java to start. Seems like transition would not be that easy after all. I'll make a build using Java 6 shortly

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

          Thankyou.let me know for the same.so that i can try again.

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

            3.92 built using Java 6. You can still use all features of Java 8 in your own project of course

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

        Set IDEA_JDK or IDEA_JDK_64 environment variable to point to jdk8 folder.

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

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

»
10 лет назад, # |
  Проголосовать: нравится 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.

»
10 лет назад, # |
  Проголосовать: нравится 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?

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

    Well, can you provide stack trace?

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

        I would really appreciate this as plain text

        • »
          »
          »
          »
          »
          10 лет назад, # ^ |
            Проголосовать: нравится -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)

          • »
            »
            »
            »
            »
            »
            10 лет назад, # ^ |
            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.

»
10 лет назад, # |
  Проголосовать: нравится -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 :)

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

    You need to delete CHelper library from the project and then press ok in edit project settings dialog. With the way idea now handles libraries from its own configuration this hack would not be needed for future versions

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

      Thanks for your reply.

      I realized that CHelper.xml under libraries in .idea was using old path of .IdeaIC12.

      When I modified it to .IdeaIC13, everything started to work again. :)

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

        Still if you would do as I suggested you would not need to do this once again when Idea 14 will come out

»
10 лет назад, # |
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?

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

    That's because static imports are not supported ATM

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

      Thanks for your quick reply.

      In my environment, CHelper just push all the methods into my submission. I think it will do not push unused methods if it work correctly.

      My environment is Win 8.1 x64, IDEA 13.1.3, CHelper 3.92. Java 7 and 8 are both in my computer, I don't know if this is the reason.

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

        That's rather strange. Can you please send archive with your project to egor at egork dot net?

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

          I don't know how to sent file to egork dot net, but you can download file from here(outdated!). It's all my project files.

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

        Also, is there anything in the event log?

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

          Event log just only one sentence: "2:03:11 AM Compilation completed successfully in 4 sec".

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

          It work correctly after I set "Output directory" to be "src".

          Install, uninstall, install, uninstall, ... now, it work, and I am crying... T T

          Anyway, thank you!

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

      I uninstall Java 7, and then only Java 8 in my computer, and CHelper work same with before. Please help me...

»
10 лет назад, # |
  Проголосовать: нравится 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...

»
10 лет назад, # |
  Проголосовать: нравится 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)
»
10 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

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

    Do you have 64-bit system and using a 32-bit idea? I had a problem like that before, solved by using 64-bit idea (there are 2 different exe files in idea directory). Same problem and same solution here.

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

      That was exactly it, thank you! For posterity: I also had to set environment variables JAVA_HOME and JDK_HOME to JDK path; otherwise 64-bit IDEA couldn't find the (64 bit) JDK.

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

    It may be because of the reason mentioned above. Also you need CHelper enabled project to be opened.

»
10 лет назад, # |
  Проголосовать: нравится 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.

  • »
    »
    10 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится
    package main;
    
    import com.shu_mj.tpl.Scanner;
    import java.io.PrintWriter;
    
    public class Task {
        int a, b;
        public void solve(int testNumber, Scanner in, PrintWriter out) {
    
        }
    }
    
    

    This will get the same result...

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

    commas in filed declarations are badly supported and it's known. Use int a; int b;

»
10 лет назад, # |
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)

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

    Sorry, I can't reproduce. I'll look into it later

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

      Thanks and don't be sorry. My rating +259 yesterday :).

      All my project's files are here(I'll remove it after the problem have been solved). I have deleted yesterday's Codeforces tasks. And it still can't work. :(

      Thanks again!

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

      The error occurred again.

      I found that, after the error occurred, the file Main.java under src folder can't read, can't write and can't delete, even through I'm admin account.

      Maybe this is the reason. But I don't what cause this.

      I am looking forward for your reply. Thanks advance.

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

      Now I know the reason. This is because I submit my Main.java file with IE(11).

      Everything goes well with Chrome.

      Chelper is great. Really thanks for your work. :D

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

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

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

    Что выключить? Вроде никто не запрещает пользоваться идеей как будто chelper нету

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

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

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

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

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

»
10 лет назад, # |
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.

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

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

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

    Uva do not have standart web page for problems. Hence I need some kind of heuristic. Probably good idea for a marathon match

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

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

»
10 лет назад, # |
  Проголосовать: нравится 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.

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

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

»
10 лет назад, # |
  Проголосовать: нравится 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!

  • »
    »
    10 лет назад, # ^ |
      Проголосовать: нравится 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.

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

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

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

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

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

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

    I think it is, though you'd need to rewrite code generating stuff

»
10 лет назад, # |
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)

»
10 лет назад, # |
  Проголосовать: нравится 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.

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

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

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

    Well, task is supposed to be created, but probably parser is broken (e.g because format on Hackerrank changed), it doesn't work for me too.

    I'm not sure I am using the last version, through

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

Hi, Egor

Please fix hackerrank parser. Working code is in previous revision

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

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

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

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

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

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

»
10 лет назад, # |
  Проголосовать: нравится 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

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

    пытался написать GCJ на Java, получил такое же поведение и такую же ошибку. Ubuntu 15.04.

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

    Такая же ошибка. Вылетела из неоткуда, перед этим было все нормально. Idea 14.1.2 CHelper 3.95

»
10 лет назад, # |
  Проголосовать: нравится -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 лет назад, # ^ |
      Проголосовать: нравится -8 Проголосовать: не нравится

    You do not need any other pluging to use with topcoder arena. If removing them would not help try closing all idea instances and open your project. If that still would not help make sure you run arena through button from idea each time

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

      Thanks for the quick reply! I removed the moj plugin from the arena and restarted everything. still getting the same error. I made a short (1min) screencast of it for your convenience. https://www.youtube.com/watch?v=21JkXtuELsU I have highlighted the arena editor setting, intellij error, chelper configuration and problem statement page state.

»
9 лет назад, # |
  Проголосовать: нравится 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".

»
8 лет назад, # |
  Проголосовать: нравится +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..?

»
8 лет назад, # |
  Проголосовать: нравится +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.

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

Hi!

Can someone tell me how to use a TestProvider?

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

    Never mind, just noticed how to do it. Had to click on the button with the task name, then click "Edit configurations..." and add a test class there.