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

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

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

I would also appreciate donations: Yandex.Money, PayPal

Seems like no one tried beta verion — I would really appreciate feedback

4.4.3b3

  • All supported sites are updated
  • New Google Code Jam is now supported
  • You can now inline any file (feature best used for DCJ, which is not here this year, but I hope will return)

4.4.1b2

Support for interactive tasks added. By default you would interact using user input, but you can write your own interractor


4.3.1

Task format is changes to JSON. I would recomment backing up your project before updating


4.2.2


4.2.1

  • New Code Jam site support
  • Fixes

4.1.8

  • All parsers are up to date
  • GCJ and Kattis are now only parsable from Chrome extension

4.1.5

  • Added parsing for AtCoder and CSAcademy
  • Fixed parsing for HackerRank
  • Fixed enums in switches

4.1.3

  • Various fixes for code generation

4.1.2

  • Cojac version update. If you use Cojac for your own configurations update agent parameters as follows:
-Cints -Clongs -Ccasts -Cmath
  • Cleanup
  • Switched to Java 1.8
  • Timus parser fix
  • Kattis parser fix
  • Include all Kattis sites

4.1.1

HackerEarth support


4.0.11

Fixed issue with using method as functional interface


4.0.10

Fix for USACO parsing. Currently on beta channel

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

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

What was the key to speedup, if it's not a secret?

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

    Adding instead of removing

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

      Thanks.

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

        Long answer is previously I added everything that was imported from task class and everything in the same package, then everything that is imported from those classes and so on, and then removing unused code which is slow and cyclic references may remain. Now I only add what is actually referenced. Among other things now you can reference classes by fqn instead of importing them. Moreover naming conflict would be handled by constructing other names for classes

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

      -_-

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

Thanks you very much, your plugin is very helpful. :D

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Hi Egor, I got this error after update CHelper and run my task. Can you give me an advise?

NoSuchMethodError: com.intellij.psi.PsiType.getTypeByName(Ljava/lang/String;Lcom/intellij/openapi/project/Project;Lcom/intellij/psi/search/GlobalSearchScope;)Lcom/intellij/psi/PsiClassType;: com.intellij.psi.PsiType.getTypeByName(Ljava/lang/String;Lcom/intellij/openapi/project/Project;Lcom/intellij/psi/search/GlobalSearchScope;)Lcom/intellij/psi/PsiClassType;

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

e-olimp support is broken?

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

    Yes, they redesigned. I am not sure I am inclined to fix it myself, but if anyone willing I gladly accept PR

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

      and Kattis also? :(

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

        Kattis is working for me

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

          Strange, it's not working for me. I just get the "Nothing to show" message in the problem list. I already hit the "Refresh" button a few times and waited for a few minutes. The other judges work OK. Any hints?

          I have IDEA 14, CHelper 4.0.1, running in Fedora 20 with Oracle JDK, in case it helps.

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

            Probably fix to suppress certificate warnings is not working on Fedora. You can just use Chrome plugin instead

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Hello,

I recently tried to run TopCoder on C-Helper. However, when I try to run in Intellij Idea, it gives me an null pointer exception, and I can't compile it on Topcoder Arena. Is there anything I have to install other than CHelper and Arena? There error I've got in Idea is:

null java.lang.NullPointerException at net.egork.chelper.codegeneration.SolutionGenerator.shouldAddElement(SolutionGenerator.java:338) at net.egork.chelper.codegeneration.SolutionGenerator.processElement(SolutionGenerator.java:314) at net.egork.chelper.codegeneration.SolutionGenerator.createInlinedSource(SolutionGenerator.java:63) at net.egork.chelper.codegeneration.SolutionGenerator$4.run(SolutionGenerator.java:502) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:931) at net.egork.chelper.codegeneration.SolutionGenerator.createSourceFile(SolutionGenerator.java:496) at net.egork.chelper.configurations.TopCoderConfiguration.getState(TopCoderConfiguration.java:63) at com.intellij.execution.runners.ExecutionEnvironment.getState(ExecutionEnvironment.java:201) at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:58) at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:31) at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:53) at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:31) at com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:94) at com.intellij.execution.impl.ExecutionManagerImpl.start(ExecutionManagerImpl.java:396) at com.intellij.execution.impl.ExecutionManagerImpl.access$400(ExecutionManagerImpl.java:61) at com.intellij.execution.impl.ExecutionManagerImpl$5.run(ExecutionManagerImpl.java:384) at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238) at com.intellij.util.Alarm$Request$1.run(Alarm.java:351) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:332) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:702) at java.awt.EventQueue$3.run(EventQueue.java:696) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) at java.awt.EventQueue.dispatchEvent(EventQueue.java:719) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:734) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:569) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382) 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)

I'm really sorry for writing here. It seems like not a right location to post. Any help is appreciated. Thank you.

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

    Can you zip your project with task in question and send to egor at egork dot net?

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Can you change archive directory's structure to something simple like this:

Topcoder

  • SRM 660
  • SRM 661
  • ...

Codeforce

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

    Probably I'll add customizeable archive structure in some future version

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

На CF, тимусе и др. сайтах обычно размер стека равен 64 МБ. Но JAVA прожорлива, и иногда этого не хватает.
CHelper автоматически генерирует для задач типа "single test" такой код.

    public class Main {
        public static void main(String[] args) {
            InputStream inputStream = System.in;
            OutputStream outputStream = System.out;
            InputReader in = new InputReader(inputStream);
            OutputWriter out = new OutputWriter(outputStream);
            TaskA solver = new TaskA();
            solver.solve(1, in, out);
            out.close();
        }
        static class TaskA {
            // решение задачи
        }
    }

Где и как можно настроить этот шаблон, чтобы код в функции main автоматически "обёртывался" такой штучкой:

    public class Main {

        public static void main(String[] args) {
            new Thread(null, new Runnable() {
                @Override
                public void run() {
                    InputStream inputStream = System.in;
                    OutputStream outputStream = System.out;
                    InputReader in = new InputReader(inputStream);
                    OutputWriter out = new OutputWriter(outputStream);
                    TaskA solver = new TaskA();
                    solver.solve(1, in, out);
                    out.close();
                }
            }, "MyLittlePony", 256 * 1024 * 1024).start();
        }

        static class TaskA {
        }
    }
  • »
    »
    9 лет назад, # ^ |
      Проголосовать: нравится +3 Проголосовать: не нравится

    Пока никак. С удовольствием приму патч добавляющий такую настройку

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Совместима ли последняя версия CHelper с IDEA 2016.1? Можно ли обновиться или пока лучше не стоит?

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

    Кубок мы написали без проблем. В остальном ничего не могу сказать

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

      ОК, спасибо! Попробую тоже испытать удачу :)

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Where can I download v4 ? I can only find v3 here ?

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

    You can install it through Jetbrains plugin repository

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

      Can you please update CHelper to 4.1.5 on GitHub? I am using a modified version of CHelper (changed the codegen template slightly), that's why I need the source code for update.

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

Two issues(version 4.1.5): (1) Codechef not listed in Parse Contest dialog. (2) Problem parsing broken for codechef. Getting "Connection problems or format change".

I was able to fix (1) by adding codechef parser to Parser.PARSERS. Please help for (2). Trying codechef november long challenge 2016.

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

Hi, Egor, When the Test Type is 'Number of tests known', Can I use separate threads to run every single test? Thanks for the amazing plugin.

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

codechef is not showing up in parse contest

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

    Codechef can be parsed through chrome extension

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

      but some problems are still unable to parse in competitions, and problems in domains can't be parsed through plugin

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

        Because codechef has no fixed format for problem statements. So I use set of heurystics, which not laways work

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

Hi! Can I manually create Topcoder task by using CHelper? Thanks :D

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Egor — Unfortunately, I've had some trouble using the parser. You can see my directory and my settings here:

When I attempt to parse a contest, I'm met with the "Nothing to show" screen found here:

When I try to parse an individual problem using the Chrome extension, I see the circle animation on Chrome, but nothing happens on IDEA. (IDEA is open and the project is loaded.)

Do you have any idea what could cause this issue? Many thanks for any response.

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

    Well, not being aboe to parse from idea seems like idea do not have access to internet. Not being able to parse with chrome is likely something to do with idea not able to connect on localhost port. Do idea runs in some kind of sandbox?

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

      That sounds like a likely cause of the issue. IDEA is running on a basic Windows installation. I've tweaked the firewall a bit but haven't had any luck there. Any ideas about what could be causing the issue? Is it possible that the wi-fi configuration is at fault?

      Thanks for the assistance!

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

      Just posting a quick reminder since it's been a couple days since last response. No worries if we can't figure it out, but any thoughts you could provide would be much appreciated. I tested it on a different computer without the same firewall software, so I have to imagine that it's somehow related to the wi-fi.

      Thanks for any assistance!

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

        I really have no idea what's wrong

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

          Understood, I'll see what I can do. I'll post here if I find a solution in the hope that any others with the same problem can benefit.

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

          For anyone else with the same issue, I managed to fix it by updating IntelliJ to the latest version. I searched around and found some errors related to an IntelliJ TransactionGuard class, and in case the class was broken, I updated IntelliJ, after which the program worked.

          Many thanks for your assistance and for creating the plugin.

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

I see there's an option to parse entire contest in Idea plugin, but the Chrome extension seems to activate only on a single problem page. Am I missing something or the extension doesn't support contest parsing? That looks weird.

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

    Chrome parser only works with single page so it just can't parse whole contest at once. One exception is Google Code Jam because all problems presented in what is basically single page

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

Why when I use global array: "int in[] = new int[1000000 + 1];"
CHelper changes it to: "int in = new int[1000000 + 1];" ?

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

    try using int[] in = new int[...]

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

    Because this notation is present in Java only to faciliate back compatibility with c and it would be pain to make it work

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

One more question — Is it possible to use stress testing with CHelper (writing an algorithm to automatically generate small test cases and their correct answers and printing the first one for which the main algorithm fails)? Also, is there any way to modify the template for the output class? I've checked through all of the templates in the project and haven't been able to find it. (It's given me a few issues with some online judges, most notably the USACO training pages.)

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

    It is possible to stress test. If you look in task properties there is "Test class" if you push Advanced

    It is possible to use whatever output class you want as long as it has close method. You just need to update preferences

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

I'm trying to use your parsers, and class Task raises some questions. It contains all necessary information about the problem except time and memory limit, while they are usually very easily parsed. On the other hand, it contains your plugin-specific data like mainClass, truncate, includeLocale etc.

Did you think about extracting the parsers into a separate library with more general interface, independent of the plugin implementation?

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

    I thought about it and decided I do not have time to do it right for now.

    Memory limit is actually parsed and put into VM arguments

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

Tasks from CSAcademy Rounds are not being parsed. I think their new update is causing problem with the C-Helper Chrome Extension.

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

    I'm afraid that'll have to wait until after World Finals (unless someone want to propose a pull request of course)

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

      Sir, can you update the CHelper for CSAcademy now? Tasks are not parsing at that site due to their upgradation of website.

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

Hi guys. I have no problem running my code on Google Code Jam Pretest. When it time to download the input file from Google, where should I store the input file. Does the script support generating the output file to upload to Google server, if yes , can someone advice me how? Thanks in advance for the great script.

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

    You just put it in "work directory" (as defined by run configuration, usually project root) and run Main class

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

Hey Egor, now that this post is back to business, is it possible to have a feature where we can submit directly from the IntelliJ. That is we dont have to go back to the problem page, browse for our solution and get the result. The plugin would do all of this for me and return me the status of the solution. Even if you could do this for codeforces (because nowadays I just participate here), that would be great :)

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

    I want to introduce this functionality sometime, but I need API to do this as I would not want to hack my way through

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

Unable to parse task from AtCoder :( Anyone here facing the same issue?

Can anybody tell me how to fix this issue?

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

Tests were not parsing in today's contest. Can you please fix it?

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

Chelper parser is not working. Every time I click on the plugin, nothing happens.

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

    On clicking + button on chrome, screen for adding the task pop up. But after pressing ok, task is not being added in IntelliJ(Facing issue while parsing task on Codeforces and CSAcademy). Please fix it.

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Thank you for the new Code Jam parser! Are you planning to support parsing of the whole contest at once?

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

    Previously I parsed everything at once because web page actually had all the problems. New web page only has single problem statement

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

    It is not a link, it is repository you need to add to idea plugin repositories in order to use beta versions of CHelper

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

Can you add parse task for old GCJ system too?

As Google Kickstart uses the same interface as of old GCJ system. Due to plugin update, I am unable to parse task in Kickstart :(

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

    I had not removed support, you should still be able to parse from old system with Chrome extension

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

What's the limitation of CHelper's inlining abilities. Can pull data structures from say, google common collections/gauva?

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

    Only lomitation is source size limit really

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

      I couldn't get it to work with gauva. Anything special I need to do? It doesn't inline all the classes needed to MultiHashMap work.

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Test cases were not parsed in contest 1028 and 1029 but they are if I pick one task from the problem set (in particular task 1029F). I use IntelliJ IDEA 2018.2.1 and CHelper 4.4.2 on Ubuntu 16.04.

Is it a known issue? Any workaround/fix?

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

Hey Egor, have you thought of updating plugin after recent changes in AtCoder platform. It will be very helpful. As now task are not being parsed after UI improvements.

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

    I am a bit occupied with work/other projects atm. You can try Competitive Companion Chrome extension for parsing tasks

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

      Hey, so there is one more problem in creating test class for the task. Can you please fix the issue? Following error lines are being shown.

      java.lang.Throwable: Write-unsafe context! Model changes are allowed from write-safe contexts only. Please ensure you're using invokeLater/invokeAndWait with a correct modality state (not "any"). See TransactionGuard documentation for details.
        current modality=ModalityState:{[com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog[dialog8,0,66,1161x676,invalid,layout=java.awt.BorderLayout,APPLICATION_MODAL,title=Run/Debug Configurations,defaultCloseOperation=DO_NOTHING_ON_CLOSE,rootPane=com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog$DialogRootPane[,0,22,1161x654,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]]}
        known modalities:
          ModalityState:{[com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog[dialog5,0,66,1161x676,invalid,hidden,layout=java.awt.BorderLayout,APPLICATION_MODAL,title=Run/Debug Configurations,defaultCloseOperation=DO_NOTHING_ON_CLOSE,rootPane=,rootPaneCheckingEnabled=true]]}, writingAllowed=true;
          ModalityState:{}, writingAllowed=true;
          ModalityState.NON_MODAL, writingAllowed=true;
          ModalityState:{[com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog[dialog8,0,66,1161x676,invalid,layout=java.awt.BorderLayout,APPLICATION_MODAL,title=Run/Debug Configurations,defaultCloseOperation=DO_NOTHING_ON_CLOSE,rootPane=com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog$DialogRootPane[,0,22,1161x654,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]]}, writingAllowed=true
      	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:134)
      	at com.intellij.openapi.application.TransactionGuardImpl.assertWriteActionAllowed(TransactionGuardImpl.java:232)
      	at com.intellij.openapi.editor.impl.DocumentImpl.assertWriteAccess(DocumentImpl.java:702)
      	at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:631)
      	at com.intellij.openapi.editor.impl.DocumentImpl.replaceText(DocumentImpl.java:543)
      	at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl$2.run(FileDocumentManagerImpl.java:653)
      	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1057)
      	at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.lambda$reloadFromDisk$6(FileDocumentManagerImpl.java:639)
      	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:220)
      	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:178)
      	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:168)
      	at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.reloadFromDisk(FileDocumentManagerImpl.java:639)
      	at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.contentsChanged(FileDocumentManagerImpl.java:621)
      	at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.intellij.util.EventDispatcher.dispatchVoidMethod(EventDispatcher.java:133)
      	at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:25)
      	at com.intellij.util.EventDispatcher$3.invoke(EventDispatcher.java:96)
      	at com.sun.proxy.$Proxy26.contentsChanged(Unknown Source)
      	at com.intellij.openapi.vfs.impl.BulkVirtualFileListenerAdapter.fireAfter(BulkVirtualFileListenerAdapter.java:65)
      	at com.intellij.openapi.vfs.impl.BulkVirtualFileListenerAdapter.after(BulkVirtualFileListenerAdapter.java:56)
      	at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:117)
      	at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:397)
      	at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:358)
      	at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:347)
      	at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:324)
      	at com.intellij.util.messages.impl.MessageBusImpl.access$200(MessageBusImpl.java:29)
      	at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:196)
      	at com.sun.proxy.$Proxy24.after(Unknown Source)
      	at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl$2.close(PersistentFSImpl.java:640)
      	at com.fasterxml.jackson.core.json.UTF8JsonGenerator.close(UTF8JsonGenerator.java:1036)
      	at com.fasterxml.jackson.databind.ObjectMapper._configAndWriteValue(ObjectMapper.java:3633)
      	at com.fasterxml.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:2964)
      	at net.egork.chelper.util.FileUtilities$3.run(FileUtilities.java:255)
      	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1057)
      	at net.egork.chelper.util.FileUtilities.saveConfiguration(FileUtilities.java:249)
      	at net.egork.chelper.util.FileUtilities.saveConfiguration(FileUtilities.java:245)
      	at net.egork.chelper.configurations.TaskConfiguration.saveConfiguration(TaskConfiguration.java:128)
      	at net.egork.chelper.configurations.TaskConfiguration.setConfiguration(TaskConfiguration.java:123)
      	at net.egork.chelper.ui.TaskConfigurationEditor.applyEditorTo(TaskConfigurationEditor.java:40)
      	at net.egork.chelper.ui.TaskConfigurationEditor.applyEditorTo(TaskConfigurationEditor.java:14)
      	at com.intellij.openapi.options.SettingsEditor.applyTo(SettingsEditor.java:89)
      	at com.intellij.execution.impl.ConfigurationSettingsEditor$ConfigToSettingsWrapper.applyEditorTo(ConfigurationSettingsEditor.java:297)
      	at com.intellij.execution.impl.ConfigurationSettingsEditor$ConfigToSettingsWrapper.applyEditorTo(ConfigurationSettingsEditor.java:276)
      	at com.intellij.openapi.options.SettingsEditor.applyTo(SettingsEditor.java:89)
      	at com.intellij.openapi.options.CompositeSettingsEditor.applyEditorTo(CompositeSettingsEditor.java:64)
      	at com.intellij.openapi.options.SettingsEditor.applyTo(SettingsEditor.java:89)
      	at com.intellij.execution.impl.ConfigurationSettingsEditor.getSnapshot(ConfigurationSettingsEditor.java:212)
      	at com.intellij.execution.impl.ConfigurationSettingsEditorWrapper.getSnapshot(ConfigurationSettingsEditorWrapper.java:111)
      	at com.intellij.execution.impl.ConfigurationSettingsEditorWrapper.getSnapshot(ConfigurationSettingsEditorWrapper.java:25)
      	at com.intellij.execution.impl.SingleConfigurationConfigurable.createSnapshot(SingleConfigurationConfigurable.java:291)
      	at com.intellij.execution.impl.SingleConfigurationConfigurable.getValidationResult(SingleConfigurationConfigurable.java:172)
      	at com.intellij.execution.impl.SingleConfigurationConfigurable.access$1400(SingleConfigurationConfigurable.java:39)
      	at com.intellij.execution.impl.SingleConfigurationConfigurable$MyValidatableComponent.getValidationResult(SingleConfigurationConfigurable.java:395)
      	at com.intellij.execution.impl.SingleConfigurationConfigurable$MyValidatableComponent.updateWarning(SingleConfigurationConfigurable.java:399)
      	at com.intellij.execution.impl.SingleConfigurationConfigurable$MyValidatableComponent.<init>(SingleConfigurationConfigurable.java:345)
      	at com.intellij.execution.impl.SingleConfigurationConfigurable.reset(SingleConfigurationConfigurable.java:133)
      	at com.intellij.execution.impl.SingleConfigurationConfigurable.editSettings(SingleConfigurationConfigurable.java:94)
      	at com.intellij.execution.impl.RunConfigurable.getSafeUserObject(RunConfigurable.kt:352)
      	at com.intellij.execution.impl.RunConfigurable.access$getSafeUserObject(RunConfigurable.kt:73)
      	at com.intellij.execution.impl.RunConfigurable$initTree$3.valueChanged(RunConfigurable.kt:239)
      	at javax.swing.JTree.fireValueChanged(JTree.java:2927)
      	at javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3391)
      	at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:635)
      	at com.intellij.ui.treeStructure.Tree$MySelectionModel.fireValueChanged(Tree.java:650)
      	at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1093)
      	at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:294)
      	at javax.swing.JTree.setSelectionPaths(JTree.java:1647)
      	at javax.swing.JTree.setSelectionRows(JTree.java:1729)
      	at javax.swing.JTree.setSelectionRow(JTree.java:1704)
      	at com.intellij.util.ui.tree.TreeUtil.lambda$showAndSelect$10(TreeUtil.java:565)
      	at com.intellij.util.ui.tree.TreeUtil.showAndSelect(TreeUtil.java:600)
      	at com.intellij.util.ui.tree.TreeUtil.showRowCentered(TreeUtil.java:510)
      	at com.intellij.util.ui.tree.TreeUtil.showRowCentered(TreeUtil.java:501)
      	at com.intellij.util.ui.tree.TreeUtil.showRowCentred(TreeUtil.java:496)
      	at com.intellij.util.ui.tree.TreeUtil.selectPath(TreeUtil.java:427)
      	at com.intellij.util.ui.tree.TreeUtil.selectInTree(TreeUtil.java:909)
      	at com.intellij.util.ui.tree.TreeUtil.selectInTree(TreeUtil.java:897)
      	at com.intellij.execution.impl.RunConfigurable.selectConfiguration(RunConfigurable.kt:307)
      	at com.intellij.execution.impl.RunConfigurable.access$selectConfiguration(RunConfigurable.kt:73)
      	at com.intellij.execution.impl.RunConfigurable$selectConfigurableOnShow$1.run(RunConfigurable.kt:283)
      	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
      	at java.awt.EventQueue.access$500(EventQueue.java:98)
      	at java.awt.EventQueue$3.run(EventQueue.java:715)
      	at java.awt.EventQueue$3.run(EventQueue.java:709)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      	at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
      	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:719)
      	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:668)
      	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363)
      	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
      	at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190)
      	at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235)
      	at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233)
      	at java.awt.Dialog.show(Dialog.java:1077)
      	at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:698)
      	at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:430)
      	at com.intellij.openapi.ui.DialogWrapper.invokeShow(DialogWrapper.java:1681)
      	at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1630)
      	at com.intellij.execution.actions.EditRunConfigurationsAction.actionPerformed(EditRunConfigurationsAction.java:48)
      	at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:258)
      	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:275)
      	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:249)
      	at com.intellij.ui.popup.ActionPopupStep.performAction(ActionPopupStep.java:200)
      	at com.intellij.ui.popup.ActionPopupStep.performAction(ActionPopupStep.java:190)
      	at com.intellij.ui.popup.ActionPopupStep.lambda$onChosen$2(ActionPopupStep.java:184)
      	at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:195)
      	at com.intellij.ui.popup.AbstractPopup.lambda$dispose$12(AbstractPopup.java:1417)
      	at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:3049)
      	at com.intellij.ide.IdeEventQueue.ifFocusEventsInTheQueue(IdeEventQueue.java:172)
      	at com.intellij.ide.IdeEventQueue.executeWhenAllFocusEventsLeftTheQueue(IdeEventQueue.java:124)
      	at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:179)
      	at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.doWhenFocusSettlesDown(IdeFocusManagerImpl.java:58)
      	at com.intellij.ui.popup.AbstractPopup.dispose(AbstractPopup.java:1413)
      	at com.intellij.ui.popup.WizardPopup.dispose(WizardPopup.java:160)
      	at com.intellij.ui.popup.list.ListPopupImpl.dispose(ListPopupImpl.java:308)
      	at com.intellij.ui.popup.PopupFactoryImpl$ActionGroupPopup.dispose(PopupFactoryImpl.java:279)
      	at com.intellij.openapi.util.Disposer$1.execute(Disposer.java:48)
      	at com.intellij.openapi.util.Disposer$1.execute(Disposer.java:44)
      	at com.intellij.openapi.util.objectTree.ObjectNode$1.execute(ObjectNode.java:138)
      	at com.intellij.openapi.util.objectTree.ObjectNode$1.execute(ObjectNode.java:107)
      	at com.intellij.openapi.util.objectTree.ObjectTree.executeActionWithRecursiveGuard(ObjectTree.java:193)
      	at com.intellij.openapi.util.objectTree.ObjectNode.execute(ObjectNode.java:107)
      	at com.intellij.openapi.util.objectTree.ObjectTree.executeAll(ObjectTree.java:157)
      	at com.intellij.openapi.util.Disposer.dispose(Disposer.java:129)
      	at com.intellij.openapi.util.Disposer.dispose(Disposer.java:125)
      	at com.intellij.ui.popup.WizardPopup.disposeAllParents(WizardPopup.java:263)
      	at com.intellij.ui.popup.list.ListPopupImpl.handleNextStep(ListPopupImpl.java:444)
      	at com.intellij.ui.popup.list.ListPopupImpl._handleSelect(ListPopupImpl.java:397)
      	at com.intellij.ui.popup.list.ListPopupImpl.handleSelect(ListPopupImpl.java:343)
      	at com.intellij.ui.popup.PopupFactoryImpl$ActionGroupPopup.handleSelect(PopupFactoryImpl.java:299)
      	at com.intellij.ui.popup.list.ListPopupImpl$MyMouseListener.mouseReleased(ListPopupImpl.java:503)
      	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
      	at java.awt.Component.processMouseEvent(Component.java:6548)
      	at javax.swing.JComponent.processMouseEvent(JComponent.java:3325)
      	at com.intellij.ui.popup.list.ListPopupImpl$MyList.processMouseEvent(ListPopupImpl.java:557)
      	at java.awt.Component.processEvent(Component.java:6313)
      	at java.awt.Container.processEvent(Container.java:2237)
      	at java.awt.Component.dispatchEventImpl(Component.java:4903)
      	at java.awt.Container.dispatchEventImpl(Container.java:2295)
      	at java.awt.Component.dispatchEvent(Component.java:4725)
      	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
      	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
      	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
      	at java.awt.Container.dispatchEventImpl(Container.java:2281)
      	at java.awt.Window.dispatchEventImpl(Window.java:2746)
      	at java.awt.Component.dispatchEvent(Component.java:4725)
      	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
      	at java.awt.EventQueue.access$500(EventQueue.java:98)
      	at java.awt.EventQueue$3.run(EventQueue.java:715)
      	at java.awt.EventQueue$3.run(EventQueue.java:709)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
      	at java.awt.EventQueue$4.run(EventQueue.java:737)
      	at java.awt.EventQueue$4.run(EventQueue.java:735)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      	at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
      	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:719)
      	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:664)
      	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363)
      	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      
»
5 лет назад, # |
  Проголосовать: нравится +4 Проголосовать: не нравится

Hi . I installed Idea Intellij 2018.3.5 version and added Chelper plugin to it from store plugins and configured the default directory. Restarted the ide and now when i parse a task test cases are not automatically added. Can someone please help me. Below are the urls to view screenshots of my project and configuration

Settings Image

Test cases not added

Project Config

Please help. I tried a lot and i am stuck now . thanks

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Auto comment: topic has been updated by Egor (previous revision, new revision, compare).

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

Are you going to update the source code on github with new parsers?

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

Hi Egor, after i create task with 4.4.3b3, I could not see the task.json. And I see this error not long after i created task:

java.lang.Throwable: AWT events are not allowed inside write action: sun.awt.PeerEvent[INVOCATION_DEFAULT,runnable=sun.lwawt.LWCursorManager$1@241e3273,notifier=null,catchExceptions=false,when=1556816838691] on dialog2 at com.intellij.openapi.diagnostic.Logger.error(Logger.java:134) at com.intellij.openapi.application.impl.NoSwingUnderWriteAction.lambda$watchForEvents$0(NoSwingUnderWriteAction.java:36) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:374) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109) at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190) at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235) at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233) at java.security.AccessController.doPrivileged(Native Method) at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233) at java.awt.Dialog.show(Dialog.java:1077) at java.awt.Component.show(Component.java:1685) at java.awt.Component.setVisible(Component.java:1637) at java.awt.Window.setVisible(Window.java:1014) at java.awt.Dialog.setVisible(Dialog.java:998) at net.egork.chelper.ui.CreateTaskDialog.setVisible(CreateTaskDialog.java:109) at net.egork.chelper.ui.CreateTaskDialog.showDialog(CreateTaskDialog.java:91) at net.egork.chelper.actions.NewTaskAction.createTask(NewTaskAction.java:38) at net.egork.chelper.actions.NewTaskDefaultAction.createTaskInDefaultDirectory(NewTaskDefaultAction.java:45) at net.egork.chelper.ChromeParser$1$1.run(ChromeParser.java:118) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1057) at net.egork.chelper.util.ExecuteUtils$2.run(ExecuteUtils.java:38) at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315) at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:156) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:435) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:419) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:403) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762) at java.awt.EventQueue.access$500(EventQueue.java:98) at java.awt.EventQueue$3.run(EventQueue.java:715) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.awt.EventQueue.dispatchEvent(EventQueue.java:732) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:719) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:668) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

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

Hi I installed the plugin through Intellij marketplace. But i'm unable to build any task. Error: Error: Could not find or load main class net.egork.chelper.tester.NewTester Caused by: java.lang.ClassNotFoundException: net.egork.chelper.tester.NewTester

Did anyone else see it? Is there any setup instructions that I missed?

Also, when trying to run topcoder arena by clicking on the topcoder icon in the plugin toolbar, i get an error 'javaws' file not found. Have tried several things with no luck.

Using Intellij Community 2020.1

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

    Yes. I am getting the same error (Error: Could not find or load main class net.egork.chelper.tester.NewTeste). Could Egor please look into this?

    EDIT: The issue has been fixed. See here for a complete fix.

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

When I don't use a task and just let it sit there, the configuration for the task is set to build the project multiple times before launching. This clearly is unnecessary and slows running the task by a lot (due to the excessive build time). Is there any fix for this (without having to archive the task)?

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

Hi Egor,

I have made the chelper IDE configurations gradle-based, so that I could easily change laptops and wouldn't need too much Intellij configuration of the plugin (other than installing the plugin). My build.gradle dependencies sections looks like this:

dependencies {
    // CHelper dependencies
    implementation files('libs/chelper.jar')
    implementation files('libs/cojac.jar')
    implementation 'commons-lang:commons-lang:2.6'
    implementation 'org.json:json:20180130'
    implementation 'com.fasterxml.jackson.core:jackson-core:2.7.4'
    implementation 'com.fasterxml.jackson.core:jackson-annotations:2.7.0'
    implementation 'com.fasterxml.jackson.core:jackson-databind:2.7.4'

    // other stuff
}

Two of the dependencies are not versioned and I guess don't have Maven coordinates — (cojac.jar and chelper.jar).

While running the Task, I get a bunch of errors (seemingly, related to cojac.jar) and are too much and annoying. In the end, the tests are run fine, however those errors take up all the output, sometimes hard to find the real, useful outputs.

ERRORS