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
How about the same plugin for Visual Studio for C++ users?
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
And what is about eclipse support?
I heard cerealguy was working in this direction. As of me — time constraint still applies
We have such plugin now!
С новой версией плагина у меня очень участилось появление ошибки:
Та же проблема, а вы ее исправили?
Thanks!
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
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
Also, is it planned to fetch problem statement or chelper already has such a feature? It would really be better.
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?
I'll look into this after TCO is over
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! ..
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?
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
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)
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
I can change that when I create a task, but how can I make the same thing when parsing a contest?
Input ype shoukd be parsed correctly (all supported sites but Codeforces always use stdin/stdout, for Codeforces files are parsed corectly AFAIK)
Oh, I didn't know it detects I/O type. Sorry about that.
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:
/*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?
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
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.
I'm a mac user and when I update to 3.1, it throws a NullPointerException when I try to parse problem in Codeforces
Yep, that's already fixed, update to 3.11
This post takes for granted that we know what Chelper is.
I do not have any long description, but basicaly it is plugin for IntelliJ Idea that inlines library code and provides testing framework
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
Are you sure? I removed this pop-up in 3.13 (but it was in 3.12)
I have exactly the same problem. OS is ubuntu 12.04, IntelliJ idea version is 11.1.4 (community edition). Plugin version is 3.13.
Here are the screenshots:
http://i49.tinypic.com/5vzqxu.png
http://i48.tinypic.com/eajleu.png
http://i45.tinypic.com/2u920x2.png
IDEA throws these exceptions when I try to open problem:
'6:11:00 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'
'6:29:45 PM InvalidVirtualFileAccessException: Accessing invalid virtual file: file:///home/iensen/Dropbox/untitled2/.tctask: Accessing invalid virtual file: file:///home/iensen/Dropbox/untitled2/.tctask'
After long delay it sometimes creates file via "file method", but saving back from idea does not work.
Idea 12 also does not work with the newest version of the plug-in.
All of a sudden the problem disappeared when I checked out the latest version from http://code.google.com/p/idea-chelper and made a local build. But I'm not sure that this is the latest version, according to this configuration: http://code.google.com/p/idea-chelper/source/browse/META-INF/plugin.xml, it is 3.1, not 3.13 which is available through IDEA plugins repository.
Same here. Something is clearly wrong with the current version.
на новой идее 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ую.
Heyy Egor I installed the plugin in Intellij IDEA 12. How to compile/test the code ?
Are you going to add tests generator feature into Task settings form. (Tired of miscounting the number of characters in class name :))
When I archive the task it doesn't add to archive the generator, it adds checker but doesn't add generator.
It is possible — click button "Test classes" in Run/Debug Configurations dialog
It should be archived, if not — this is a bug
Good. Didn't notice that.
Now, when I add generator using "Test classes" it got archived.
Then I understand why it hadn't been archived — plugin use task stored in memory for archivation purposes, but passes filename for testing purposes
In version 3.3, I got error NullPointerException when I try to parse Problems in Codeforces. Please help me fix this.
Can you provide stack trace?
NullPointerException: Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(344,432),absolute(766,602),button=1,modifiers=Button1,clickCount=1] on dialog0
That's not a stack trace. Stack trace should be in Details
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)
Do you have "MainClass.template" in project root?
No, I don't have this class
That's not a class, rather a file. Very strange, I will add workaround
New version is available which deals with aparent inability to save template files to project root
Thanks you!!
This problem still happen. I try to install in my friend's PC but this not work. Help me please!
The very same error?
Yes!
And you tried to install version from repository?
Yes! I have changed to IntelliJ 11 but this still happen :(
Can you zip entire project and send it to egor at egork dot net
I really do not see how it can happen based on code
Ok! Thanks you!
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:
yet,the file Main.java is correctly inlined.
Also,when i open IntelliJ Idea, persistent IllegalArgumentException get thrown:
please Help..
Please zip whole project and send to egor at egork dot net
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?
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
Smart testing doesn't seem work in my computer.
Can you run task with failed test and paste here content of CHelperReport.txt (should be in project root)?
I can't find CHelperReport.txt in project root
Are you sure you updated to 3.4? There was intermidiate release 3.33
The settings window say the version is 3.4, and in "Project Settings" there is a checkbox with label "Use smart testing".
Are CHelper library in project settings pointing to correct place?
Problem solved. The project is using an old version of chelper.jar that I use in idea 11.
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.
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
Never saw that we could set location in the parse contest too..
IDEA не хочет обновлять плагин. По-моему дело в том, что она считает версию 3.31 более поздней, чем 3.4.
Удаление + установка помогают. Видимо, имеет смысл ставить еще одну точку типа 3.3.1
Учту на будущее
Было бы круто добавить в шаблон для TC что-то типа return %defaultValue%, чтобы он возвращал
0
,""
,new String[]
и т.п, чтобы класс был сразу компилиируемым.Да, хорошая идея
Какие-то патчи на гуглокоде:)
Спасибо, будет в следующей версии
Suddenly topcoder launch button stopped working for me, is there anyway I can debug?
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.
That's rather strange. Is there any exceptions in the log?
There is nothing in Event Log. Is there any other log file?
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)?
Yes, I've done last few SRMs from this project. Do you want me to send any screen shot?
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
Sent. Thanks.
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?
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?
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
Nothing seems to be working here. Tried deleting exising ContestAppletProd.jnlp, etc.
May be debug version will be helpful, if you can.
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.
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.
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:)
Yeah, me too. But at least it works! :)
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)
Could you please share it, while it isn't fixed?
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:(
IDEA Ultimate 12.0.3, Chelper 3.44 После свежей установки на старом проекте
Экзепшны в правке.
OS Ubuntu
Пока писал подумал: судя по всему Chelper перестал добавляться в ext.libraries и его классов не видать, может быть все поэтому?(пробовал заходить в настрйоки и менять их)
UPD: Да, дело было в том, что путь либы был прописан неверный. После удаления и захода в настрйоки прописалось нормально обратно и стали запускаться новосозданные таски. Удаление работает, но бросает экзепшн. Но при этом старые файлы не архивируются и не запускаются
UPD2: помогла разархивация старых файлов
Я посмотрю. Добавь пока библиотеку ручками что ли
Ага, он добавил ее, после того, как я удалил старую.
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!
Did you went to settings and pressed OK even without changes?
Very strange behavior. Do you have TaskClass.template in project root?
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.
You clicked "Project settings" button and then ok?
The "edit project settings" button in plugin? yes, it shows the small setting dialog
And there is chelper.properties file in project root?
Yes, and the content is
Never mind, the exception was my fault, but I still can't use the plugin..
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..
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
Would you mind providing heuristic to extract test cases? :) They have about gazillion page formats
Oh! I see :D
Got this error while installing CHelper 3.41 on IDEA 12:
OS?
Mac OS X 10.8.3
Also current version is 3.45, can you try that?
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!
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?
You have two options in this case — write your own checker or unmark "know answer" in all tests
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.
В исходник, который надо сабмитить, не копируются статические импорты.
Между тем очень удобно делать
import static java.lang.Math.*;
и не писать нигдеMath
.Исправите?
Довольно легко будет добавить статик импорты из не встраиваемого кода (тиа java.lang.Math.* и т.п.). Статик импорты из собственных библиотек вставить будет сложнее, но подумаю.
Из собственных — это что-то совсем странное, ведь там исходник класса копируется — зачем ему импорты? Я имел в виду стандартную библиотеку, конечно.
problem in chelper 3.52: 1.I can not parse timus problem; 2.how can i run topcoder tasks when i restore them
thanks!
Will be fixed in next build (they slightly changed format)
What problem exactly do you have? It works correctly for me
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.
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.
Can you guide to use this Google Chrome's extension.
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)
The link you provided says that I've got "шарфянка"
Oops. Copied wrong link. I will add correct one to main post when I will be at PC
Your шарфянка should had been cured now :)
Yeah, I feel much better now) Thank you very much!
When I started Intellij IDEA today, I was prompted to update CHelper. After I updated it and restarted the IDE, an error occured.
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
What's your Idea version?
My IDEA version is 12.1.4
And what Java version? It seems like you have Java 6
Currently I am using Java 6
Well, I'll probably will make Java 6 compatible build, but you'd have to wait. Or switch to Java 7, it is pretty stable now
3.65 should be Java 6 compatible
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
You could add the possibility to parse contests from the Gym.
Those gym contests that have web statements are parsable from Chrome extension (they are not parsable from Parse Contest as gym requires logging in)
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.
Most probably it is because ProcessBuilder could not start 64-bit process from 32-bit application
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.
I'm not sure it is possible at all
Is it because it's difficult to parse or some other unrelated reason?
I really do not see any reason to do it even if it would be possible
Was the Hackerrank support removed? I don't have an option for it.
Hackerrank support is through Chrome extension
Thanks. I installed the extension but clicking the '+' sign brings up nothing in IntelliJ
That's very strange. Is CHelper enabled project opened in Idea? What task had you tried?
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
Seems like they changed page format. I'll look into this
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?
You can start new thread from solve
Hm.. I'm not sure if my output would be in the right order then.
Well, you have to take care of that for sure
Problems with restoring tasks in Idea 13 should be fixed now
Can you update your source code please? It lets me figure out why things aren't quite working the way I want them.
See trunk branch
Didn't realize there was a difference between 'default' and 'trunk'. Figured it out, Thanks!
hackerRank снова/по-прежнему не работает. IDEA 133.331 Chelper 3.73 Chrome ext 3.70.1
Просто ничего не происходит. При этом на КФе нормально.
Ну, скорее всего в Event Log то писалось про unable to parse. В новой версии должно работать
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
Should work now. Sorry for taking so much time, was busy lately
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.
By any chance, could this plugin work with Scala in Intellij Idea? Scala is JVM based and it's the same IDE.
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)
That is Cojac error. Will investigate with new version
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.
can u also add the date of release for each update (atleast in future)? thanks!
You can see it here
thanks for ur help. :)
Archiving doesn't work for me. It creates a folder "on2014_04" in src. Help?
Java 8
IDEA 13.1.1
OS примерно Debian
При попытке изменить тесты следующий экзепшн (в правке 2)
Работает под Java 7.
Да, есть такое, VariableGridLayout убрали в Java 8.
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
Should be fixed
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.
Yes
One more question: what is checker and is it connected to stress-testing? (you wrote that checker support for TopCoder is needed)
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
I have NullPointer exception. OS: MacOS Idea 13.1 Chelper 3.9.
Well, stack trace?
Oh, I forgot to say. It's in edit.
ADD: Screenshot
Ah, that infamous bug. I have no idea, really. It is not reproducable on Win as far as I know, so if someone with mac/linux and this bug will debug and fix this that would be fantastic
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?
Because main toolbar is switched off by default. You need to enable it in View menu
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?
I'll look into it. I want for passwords to be secure, otherwise I do not mind
I believe that IntelliJ provides us with an API to store passwords. Something along the lines of: http://grepcode.com/file/repository.grepcode.com/java/ext/com.jetbrains/intellij-idea/12.0/com/intellij/ide/passwordSafe/PasswordStorage.java
Does that sound good?
Should be, I think
Glad to see Java8 support added.
Was it hard to get cojac run under Java8?
I had to fix it and rebuild from sources — ow2 java 8 compatible version made some changes in API
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 ?
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
Thankyou.let me know for the same.so that i can try again.
3.92 built using Java 6. You can still use all features of Java 8 in your own project of course
Set IDEA_JDK or IDEA_JDK_64 environment variable to point to jdk8 folder.
Есть ли где-нибудь видео о том, где показывается как настраивать/юзать chelper для чайников? Очень мне надо.
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.
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?
Well, can you provide stack trace?
This has all the information: https://www.dropbox.com/s/2rdf5x60uc7muxn/Screenshot%202014-06-04%2011.46.27.png
I would really appreciate this as plain text
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)
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.
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:
It would be really helpful if you can reply quickly :)
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
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. :)
Still if you would do as I suggested you would not need to do this once again when Idea 14 will come out
I use
However, CHelper does NOT insert
import static java.util.Arrays.*;
into my submission. Anybody like me?That's because static imports are not supported ATM
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.
That's rather strange. Can you please send archive with your project to egor at egork dot net?
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.
Also, is there anything in the event log?
Event log just only one sentence: "2:03:11 AM Compilation completed successfully in 4 sec".
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!
I uninstall Java 7, and then only Java 8 in my computer, and CHelper work same with before. Please help me...
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...
https://code.google.com/p/yaal/
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:
When I click topcoder icon, nothing happens. Where should I look for logs? Windows 8.1, latest IDEA and chelper.
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.
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.
It may be because of the reason mentioned above. Also you need CHelper enabled project to be opened.
A new bug comes.
CHelper can't handle the code above. class V will be:
It will get compile error. Am I wrong? Or please fix it.
This will get the same result...
commas in filed declarations are badly supported and it's known. Use
int a; int b;
I would also add that this is bad style as well
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:
Sorry, I can't reproduce. I'll look into it later
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!
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.
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
омг, как ее выключить?! я просто хочу написать gcj...:(
Что выключить? Вроде никто не запрещает пользоваться идеей как будто chelper нету
Я правильно понимаю, что текущая версия плагина не поддерживает чтение исходников откуда бы то ни было, кроме как из проекта? Хочется, чтобы умела из локального Maven-репозитория.
Я попробовал создать в проекте новую Library, добавил туда artifact-version.jar и artifact-version-sources.jar, Chelper такое не подцепил, в сгенеренном исходнике значится
/* compiled code */
А еще, похоже, хорошей идеей будет принудительно чистить исходники от джавадоков перед их копированием в итоговый файл. Там что-то не работает. Джавадоки на методы копируются нормально, а от джавадока на классы отрезается некоторое количество первых символов, из-за чего итоговый файл становится некомпилябельным.
В первой правке результат работы плагина.
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.
i'm not sure, but there was a message from admins that it's bug of topcoder
Well, char return type were not supported by arena when I implemented TopCoder support. I'll add this shortly
Is there any chance of adding UVA support in the near future? It would be absolutely amazing. Thanks for this great tool.
Uva do not have standart web page for problems. Hence I need some kind of heuristic. Probably good idea for a marathon match
I think you need to update the parser for Codechef, it seems they changed their format a little.
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.
Just curious, how much money have you got in donations till date?
$20. At least 10 of them from someone, who write in C++ (namely, Mike)
Oh nice! Btw, Thanks for the 3.94 update. CodeChef parser is working now!
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!
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.
It'd be cool to parse contest in (private) groups using Chrome extension
URL типа такого: http://codeforces.TLD/group/GROUPID/contest/CONTESTID/problem/A
Is it possible that this can be used to support Scala?
I think it is, though you'd need to rewrite code generating stuff
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)
Сare to zip your project and send it to [email protected]?
Just sent it.
One of the other issues I am facing is that when I try to create a 'New Task' with 'Number of test cases known' or 'Number of test cases unknown', I cannot run the code.
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.
When I click 'parse task' button on a hackerrank problem's web page, what's supposed to happen?
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
Hi, Egor
Please fix hackerrank parser. Working code is in previous revision
Будет круто, если код переедет куда-то, где легко предлагать патчи(Github например)
Тем более учитывая, что code.google.com закрвыается
Да, ровно туда он и переедет (завтра или послезавтра)
Было бы здорово устроить что-то типа марафона для сферического парсера в вакууме (получает веб-страницу, выдает список тасок), а то все эти смены форматов достали
Не получается создать тесты.
При создании новой таски 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
пытался написать GCJ на Java, получил такое же поведение и такую же ошибку. Ubuntu 15.04.
Такая же ошибка. Вылетела из неоткуда, перед этим было все нормально. Idea 14.1.2 CHelper 3.95
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!
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
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.
I'll look tommorow
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".
Which task?
TCO 2016 1B 250. But it also happened with few others i tried.
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..?
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.
Hi!
Can someone tell me how to use a TestProvider?
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.