pushpavel / autocp Goto Github PK
View Code? Open in Web Editor NEWGenerate and judge your solution files in Programming Contests π
Home Page: https://pushpavel.github.io/AutoCp/
License: MIT License
Generate and judge your solution files in Programming Contests π
Home Page: https://pushpavel.github.io/AutoCp/
License: MIT License
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Describe the bug
Rust file names cannot contain dots or spaces, and the compilation doesn't work.
Building "B. Incinerate" ...
Error while running the below command
rustc "/my-path/cp-rs/Codeforces - Codeforces Round 840 Div 2 and Enigma 2022 - Cybros LNMIIT/B. Incinerate.rs" -o a
error: invalid character `'.'` in crate name: `B. Incinerate`
error: aborting due to previous error
To Reproduce
Expected behavior
It would be good to create an option to use short problem names e.g. "A.rs".
Workaround (optional)
Is there any workaround? Renaming files doesn't work because it's not recognized by autocp.
Describe the bug
I installed AutoCp into IntelliJ IDEA Ultimate and left all settings at default. But, I am not able to run programs using AutoCp for kotlin in this IDE. It shows "Error : Test Framework quit unexpectedly".
It appears to be the same as this issue #102.
Error Message
Test Framework quit unexpectedly
Testing started at μ€ν 2:24 ...
Building "A+B (2)" ...
This was not supposed to happen, please file an issue
Error message:
Cannot run program "kotlinc" (in directory "C:\Users\DAEHYU1\AppData\Local\Temp\AutoCp146924462823230508"): CreateProcess error=2, μ§μ λ νμΌμ μ°Ύμ μ μμ΅λλ€
Stacktrace:
com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "kotlinc" (in directory "C:\Users\DAEHYU1\AppData\Local\Temp\AutoCp146924462823230508"): CreateProcess error=2, μ§μ λ νμΌμ μ°Ύμ μ μμ΅λλ€
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:362)
at com.github.pushpavel.autocp.tester.base.TwoStepProcessFactory$Companion.from(TwoStepProcessFactory.kt:44)
at com.github.pushpavel.autocp.tester.base.TwoStepProcessFactory$Companion$from$1.invokeSuspend(TwoStepProcessFactory.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.io.IOException: Cannot run program "kotlinc" (in directory "C:\Users\DAEHYU1\AppData\Local\Temp\AutoCp146924462823230508"): CreateProcess error=2, μ§μ λ νμΌμ μ°Ύμ μ μμ΅λλ€
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:438)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:352)
... 8 more
Caused by: java.io.IOException: CreateProcess error=2, μ§μ λ νμΌμ μ°Ύμ μ μμ΅λλ€
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.(ProcessImpl.java:499)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:158)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
... 11 more
To Reproduce
Steps to reproduce the behavior:
Expected behavior
According to the error message, it seems that the kotlin executable cannot be found.
Environment (please complete the following information):
Note that I created this issue by referring to #102 (comment)
Describe the bug
I actually don't know what the error is, but intelliJ just popped it.
To Reproduce
Steps to reproduce the behavior:
Environment (please complete the following information):
Stack trace.txt
ava.lang.IllegalArgumentException: 'other' has different root
at java.base/sun.nio.fs.WindowsPath.relativize(WindowsPath.java:404)
at java.base/sun.nio.fs.WindowsPath.relativize(WindowsPath.java:42)
at com.github.pushpavel.autocp.database.SolutionFiles.relativePath(SolutionFiles.kt:81)
at com.github.pushpavel.autocp.database.SolutionFiles.contains(SolutionFiles.kt:21)
at com.github.pushpavel.autocp.config.AutoCpConfigProducer.setupConfigurationFromContext(AutoCpConfigProducer.kt:27)
at com.github.pushpavel.autocp.config.AutoCpConfigProducer.setupConfigurationFromContext(AutoCpConfigProducer.kt:13)
at com.intellij.execution.actions.RunConfigurationProducer.createConfigurationFromContext(RunConfigurationProducer.java:102)
at com.intellij.execution.actions.RunConfigurationProducer.findOrCreateConfigurationFromContext(RunConfigurationProducer.java:199)
at com.intellij.execution.actions.PreferredProducerFind.doGetConfigurationsFromContext(PreferredProducerFind.java:110)
at com.intellij.execution.actions.PreferredProducerFind.getConfigurationsFromContext(PreferredProducerFind.java:93)
at com.intellij.execution.actions.ConfigurationContext.getConfigurationsFromContext(ConfigurationContext.java:414)
at com.intellij.execution.actions.ConfigurationContext.findPreferredConfiguration(ConfigurationContext.java:292)
at com.intellij.execution.actions.ConfigurationContext.findExisting(ConfigurationContext.java:285)
at com.intellij.execution.actions.BaseRunConfigurationAction.findExisting(BaseRunConfigurationAction.java:62)
at com.intellij.execution.actions.BaseRunConfigurationAction.fullUpdate(BaseRunConfigurationAction.java:232)
at com.intellij.execution.actions.BaseRunConfigurationAction.update(BaseRunConfigurationAction.java:198)
at com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performDumbAwareUpdate$0(ActionUtil.java:131)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:145)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doUpdate(ActionUpdater.java:602)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$updateActionReal$7(ActionUpdater.java:126)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.callAction(ActionUpdater.java:170)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.updateActionReal(ActionUpdater.java:127)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$new$0(ActionUpdater.java:109)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.update(ActionUpdater.java:588)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:434)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$21(ActionUpdater.java:413)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1454)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:413)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:489)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$21(ActionUpdater.java:413)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1454)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:413)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:489)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$21(ActionUpdater.java:413)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1454)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:413)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:489)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$21(ActionUpdater.java:413)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1454)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:413)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:489)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$21(ActionUpdater.java:413)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1454)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:413)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:489)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$21(ActionUpdater.java:413)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1454)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:413)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandActionGroup(ActionUpdater.java:233)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$expandActionGroupAsync$13(ActionUpdater.java:286)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$expandActionGroupAsync$15(ActionUpdater.java:309)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1084)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$expandActionGroupAsync$16(ActionUpdater.java:309)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:158)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$expandActionGroupAsync$17(ActionUpdater.java:305)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:188)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:624)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:698)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:646)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:623)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:175)
at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:277)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$expandActionGroupAsync$18(ActionUpdater.java:304)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:246)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:32)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:225)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:213)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:214)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)
induced.txt
Following exceptions happened soon after this one, most probably they are induced.
2022-01-16T18:29:11.626
java.lang.IllegalArgumentException: 'other' has different root
at java.base/sun.nio.fs.WindowsPath.relativize(WindowsPath.java:404)
at java.base/sun.nio.fs.WindowsPath.relativize(WindowsPath.java:42)
at com.github.pushpavel.autocp.database.SolutionFiles.relativePath(SolutionFiles.kt:81)
at com.github.pushpavel.autocp.database.SolutionFiles.contains(SolutionFiles.kt:21)
at com.github.pushpavel.autocp.config.AutoCpConfigProducer.setupConfigurationFromContext(AutoCpConfigProducer.kt:27)
at com.github.pushpavel.autocp.config.AutoCpConfigProducer.setupConfigurationFromContext(AutoCpConfigProducer.kt:13)
at com.intellij.execution.actions.RunConfigurationProducer.createConfigurationFromContext(RunConfigurationProducer.java:102)
at com.intellij.execution.actions.RunConfigurationProducer.findOrCreateConfigurationFromContext(RunConfigurationProducer.java:199)
at com.intellij.execution.actions.PreferredProducerFind.doGetConfigurationsFromContext(PreferredProducerFind.java:110)
at com.intellij.execution.actions.PreferredProducerFind.getConfigurationsFromContext(PreferredProducerFind.java:93)
at com.intellij.execution.actions.PreferredProducerFind.findConfigurationFromContext(PreferredProducerFind.java:135)
at com.intellij.execution.actions.PreferredProducerFind.createConfiguration(PreferredProducerFind.java:32)
at com.intellij.execution.actions.ConfigurationContext.createConfiguration(ConfigurationContext.java:204)
at com.intellij.execution.actions.ConfigurationContext.getConfiguration(ConfigurationContext.java:195)
at com.intellij.execution.actions.BaseRunConfigurationAction.fullUpdate(BaseRunConfigurationAction.java:235)
at com.intellij.execution.actions.BaseRunConfigurationAction.update(BaseRunConfigurationAction.java:198)
at com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performDumbAwareUpdate$0(ActionUtil.java:131)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:145)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doUpdate(ActionUpdater.java:602)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$updateActionReal$7(ActionUpdater.java:126)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.callAction(ActionUpdater.java:170)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.updateActionReal(ActionUpdater.java:127)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$new$0(ActionUpdater.java:109)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.update(ActionUpdater.java:588)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:434)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$21(ActionUpdater.java:413)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1454)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:413)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:489)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$21(ActionUpdater.java:413)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1454)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:413)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:489)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$21(ActionUpdater.java:413)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1454)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:413)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:489)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$21(ActionUpdater.java:413)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1454)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:413)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:489)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$21(ActionUpdater.java:413)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1454)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:413)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:489)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$21(ActionUpdater.java:413)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1454)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:413)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandActionGroup(ActionUpdater.java:233)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$expandActionGroupAsync$13(ActionUpdater.java:286)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$expandActionGroupAsync$15(ActionUpdater.java:309)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1084)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$expandActionGroupAsync$16(ActionUpdater.java:309)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:158)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$expandActionGroupAsync$17(ActionUpdater.java:305)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:188)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:624)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:698)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:646)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:623)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:175)
at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:277)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$expandActionGroupAsync$18(ActionUpdater.java:304)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:246)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:32)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:225)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:213)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:214)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)
Is your feature request related to a problem? Please describe.
I'm using IntelliJ IDEA 2022.1 and PyCharm 2022.1.1. When I try to install the plugin from the marketplace, there is a warning message Not compatible with the version of your running IDE (IntelliJ IDEA 2022.1, PyCharm 2022.1.1)
and I can't install the plugin.
Describe the solution you'd like
I hope to use this awesome plugin for latest PyCharm.
Describe alternatives you've considered
I also tried installing the plugin from ZIP but IDE shows Plugin 'AutoCp' (version 'v0.7.3') is not compatible with the current version of the IDE, ~~
.
Additional context
This is my first issue for GitHub open source project so please tell me if I missed some important notice or broke community rules.
Hello!
I hope you are doing well!
We are a security research team. Our tool automatically detected a vulnerability in this repository. We want to disclose it responsibly. GitHub has a feature called Private vulnerability reporting, which enables security research to privately disclose a vulnerability. Unfortunately, it is not enabled for this repository.
Can you enable it, so that we can report it?
Thanks in advance!
PS: you can read about how to enable private vulnerability reporting here: https://docs.github.com/en/code-security/security-advisories/repository-security-advisories/configuring-private-vulnerability-reporting-for-a-repository
However, I will do my best to review any pull requests submitted. Feel free to submit pull requests for bug fixes or improvements. I appreciate any contributions. If you have any questions or need assistance, you can open an issue, and I'll do my best to provide guidance or clarification. There are still open issues to be dealt with and again pull requests are appreciated.
Is your feature request related to a problem? Please describe.
When the competitive companion plugin goes to create a new file, you cannot customize the file name, defaulting to the problem name. However, sometimes, problems can have the same name, which will create confusion when I look back at the code in the future, as one of them will not be the correct name since I had to rename it to something else. Of course, I can just rename the files after they have been created, but that is annoying as 1. it takes extra time, which is the exact opposite of what using this plugin is for, and 2. it has been placed in multiple locations, such as the cmake file.
Describe the solution you'd like
One thing that is unique among problems is its code (e.i. CCC18S1, coci19c4p2, etc.). What I always did was just copy the problem code from the link. Since I mainly use DMOJ, that is possible. I'm not sure about others, but I checked CodeForces and there was something similar. My solution would be for us to be allowed to customize the template for the file names. Give macros for the problem code/contest code/problem name/contest name/etc.
Describe alternatives you've considered
A simpler alternative would be for there to be just an option to name the files using the problem code rather than the problem name.
Additional context
The link on DMOJ to the problem CCC18S1:
The code on CodeForces for the problem Weighted Tree Radius:
Suppose I close CLion, and restart it, AutoCp stops working. I can add test cases, but when I run the program, these test cases are not run, instead, the console opens asking to enter input.
I have to disable and re-enable the plugin to make it work again every time I close the IDE. Is it supposed to be like that?
Pressing the + competitive companion button successfully displays the generate files popup and asks what name I would like to use for the folder. There are two issues:
Describe the bug
IDE shows an error message when opening settings page.
It seems to be caused by unnecessary <html>
tag in string commandTemplateDesc
in file AutoCpStrings.kt
.
To Reproduce
Steps to reproduce the behavior:
Tools -> AutoCp -> Languages
Environment
stacktrace.txt
java.lang.Throwable: Invalid html: tag <html> inserted automatically and shouldn't be used, text: <html>The executable in these commands are run in an isolated temporary directory. But not the command itself.<br>So, relative path to executable won't work and should use <b>$dir</b> to build absolute path.<br>Make sure you wrap this absolute path with double quotes.<br><br>Macros:<br><b>@in</b> : absolute path to a solution file with quotes.<br><b>$dir</b> : absolute path to the isolated temp directory without quotes.<br><b>@dir</b> : "<b>$dir</b>"</html>
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:184)
at com.intellij.ui.dsl.UiDslException$Companion.error(UiDslException.kt:20)
at com.intellij.ui.dsl.builder.components.DslLabel.updateEditorPaneText(DslLabel.kt:111)
at com.intellij.ui.dsl.builder.components.DslLabel.setText(DslLabel.kt:99)
at com.intellij.ui.dsl.builder.impl.UtilsKt.createComment(utils.kt:116)
at com.intellij.ui.dsl.builder.impl.RowImpl.comment(RowImpl.kt:290)
at com.intellij.ui.dsl.builder.impl.RowImpl.comment(RowImpl.kt:47)
at com.intellij.ui.dsl.builder.Row$DefaultImpls.comment$default(Row.kt:284)
at com.github.pushpavel.autocp.build.settings.ui.LangPanel$component$1$3.invoke(LangPanel.kt:40)
at com.github.pushpavel.autocp.build.settings.ui.LangPanel$component$1$3.invoke(LangPanel.kt:39)
at com.intellij.ui.dsl.builder.impl.PanelImpl.row(PanelImpl.kt:64)
at com.intellij.ui.dsl.builder.impl.PanelImpl.row(PanelImpl.kt:24)
at com.intellij.ui.dsl.builder.Panel$DefaultImpls.row$default(Panel.kt:59)
at com.github.pushpavel.autocp.build.settings.ui.LangPanel$component$1.invoke(LangPanel.kt:39)
at com.github.pushpavel.autocp.build.settings.ui.LangPanel$component$1.invoke(LangPanel.kt:29)
at com.intellij.ui.dsl.builder.BuilderKt.panel(builder.kt:19)
at com.github.pushpavel.autocp.build.settings.ui.LangPanel.<init>(LangPanel.kt:29)
at com.github.pushpavel.autocp.build.settings.ui.LangSettingsPanel.<init>(LangSettingsPanel.kt:25)
at com.github.pushpavel.autocp.build.settings.ui.LangSettingsConfigurable$createPanel$1$1.invoke(LangSettingsConfigurable.kt:16)
at com.github.pushpavel.autocp.build.settings.ui.LangSettingsConfigurable$createPanel$1$1.invoke(LangSettingsConfigurable.kt:15)
at com.intellij.ui.dsl.builder.impl.PanelImpl.row(PanelImpl.kt:64)
at com.intellij.ui.dsl.builder.impl.PanelImpl.row(PanelImpl.kt:24)
at com.intellij.ui.dsl.builder.Panel$DefaultImpls.row$default(Panel.kt:59)
at com.github.pushpavel.autocp.build.settings.ui.LangSettingsConfigurable$createPanel$1.invoke(LangSettingsConfigurable.kt:15)
at com.github.pushpavel.autocp.build.settings.ui.LangSettingsConfigurable$createPanel$1.invoke(LangSettingsConfigurable.kt:14)
at com.intellij.ui.dsl.builder.BuilderKt.panel(builder.kt:19)
at com.github.pushpavel.autocp.build.settings.ui.LangSettingsConfigurable.createPanel(LangSettingsConfigurable.kt:14)
at com.intellij.openapi.options.DslConfigurableBase$panel$1.compute(BoundConfigurable.kt:35)
at com.intellij.openapi.options.DslConfigurableBase$panel$1.compute(BoundConfigurable.kt:30)
at com.intellij.openapi.util.ClearableLazyValue.getValue(ClearableLazyValue.java:39)
at com.intellij.openapi.options.DslConfigurableBase.createComponent(BoundConfigurable.kt:43)
at com.intellij.openapi.options.ex.ConfigurableWrapper.createComponent(ConfigurableWrapper.java:169)
at com.intellij.openapi.options.ex.ConfigurableCardPanel.lambda$createConfigurableComponent$4(ConfigurableCardPanel.java:116)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:941)
at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:68)
at com.intellij.openapi.options.ex.ConfigurableCardPanel.createConfigurableComponent(ConfigurableCardPanel.java:112)
at com.intellij.openapi.options.ex.ConfigurableCardPanel.create(ConfigurableCardPanel.java:60)
at com.intellij.openapi.options.newEditor.ConfigurableEditor$1.create(ConfigurableEditor.java:57)
at com.intellij.openapi.options.newEditor.ConfigurableEditor$1.create(ConfigurableEditor.java:54)
at com.intellij.ui.CardLayoutPanel.createValue(CardLayoutPanel.java:75)
at com.intellij.ui.CardLayoutPanel.select(CardLayoutPanel.java:103)
at com.intellij.ui.CardLayoutPanel.lambda$selectLater$0(CardLayoutPanel.java:135)
at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:513)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:75)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:118)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:42)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:779)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:749)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:918)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:766)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:450)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:791)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:449)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:113)
at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:624)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:447)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:493)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:121)
at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191)
at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236)
at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234)
at java.desktop/java.awt.Dialog.show(Dialog.java:1080)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:712)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:453)
at com.intellij.openapi.ui.DialogWrapper.doShow(DialogWrapper.java:1672)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1630)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:90)
at com.intellij.ide.actions.ShowSettingsAction.perform(ShowSettingsAction.java:56)
at com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.java:43)
at com.intellij.openapi.actionSystem.ex.ActionUtil.doPerformActionOrShowPopup(ActionUtil.java:315)
at com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performActionDumbAwareWithCallbacks$4(ActionUtil.java:294)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:337)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:294)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda$performAction$4(ActionMenuItem.java:293)
at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:227)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.performAction(ActionMenuItem.java:286)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda$new$0(ActionMenuItem.java:67)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda$fireActionPerformed$3(ActionMenuItem.java:109)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:94)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:109)
at com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:546)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:578)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6648)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3392)
at java.desktop/java.awt.Component.processEvent(Component.java:6413)
at java.desktop/java.awt.Container.processEvent(Container.java:2266)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5022)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4854)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2802)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4854)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:781)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:754)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:752)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:751)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:918)
at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:840)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:763)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:450)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:791)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:449)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:113)
at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:624)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:447)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:493)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Describe the bug
AutoCp doesn't work
To Reproduce
Steps to reproduce the behavior:
Expected behavior
run the program
Screenshots
Error message:
Cannot run program "g++" (in directory "C:\Users\SUMBAR\AppData\Local\Temp\AutoCp1035667180991975189"): CreateProcess error=2, The system cannot find the file specified
Stacktrace:
com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "g++" (in directory "C:\Users\SUMBAR\AppData\Local\Temp\AutoCp1035667180991975189"): CreateProcess error=2, The system cannot find the file specified
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:359)
at com.github.pushpavel.autocp.tester.base.TwoStepProcessFactory$Companion.from(TwoStepProcessFactory.kt:45)
at com.github.pushpavel.autocp.tester.base.TwoStepProcessFactory$Companion$from$1.invokeSuspend(TwoStepProcessFactory.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.io.IOException: Cannot run program "g++" (in directory "C:\Users\SUMBAR\AppData\Local\Temp\AutoCp1035667180991975189"): CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:435)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:349)
... 8 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.(ProcessImpl.java:499)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:158)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
... 11 more
Environment (please complete the following information):
Additional context
Please fix it
After updating CLion to the latest version, I discovered that it doesn't support !
Very thank you for this plugin. It is very useful.
Is your feature request related to a problem? Please describe.
I am using cerr
as local debugging with local macro.
Not only me, other competitive programmers may use cerr
with debugging.
Even the test case corrects with cout(stdout)
, when I print with cerr(stderr)
the judge will be failed like the following.
I don't know it is related with internal system or behavior of c++. I am not good at c++ well. If it is, then close issue π
Describe the solution you'd like
Don't treat stdout as a RUNTIME ERROR
Describe the bug
I am not able to run programs using autocp for java in intellij idea ultimate.It shows "Error : Test Framework quit unexpectedly".
I am using UBUNTU 22.04.1 LTS.
BELOW IS THE FULL ERROR MESSAGE :
Testing started at 11:38 pm ...
Building "C. Sereja and Brackets" ...
This was not supposed to happen, please file an issue
Error message:
Cannot run program "javac" (in directory "/tmp/AutoCp8746492203352981476"): error=2, No such file or directory
Stacktrace:
com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "javac" (in directory "/tmp/AutoCp8746492203352981476"): error=2, No such file or directory
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:362)
at com.github.pushpavel.autocp.tester.base.TwoStepProcessFactory$Companion.from(TwoStepProcessFactory.kt:43)
at com.github.pushpavel.autocp.tester.base.TwoStepProcessFactory$Companion$from$1.invokeSuspend(TwoStepProcessFactory.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.io.IOException: Cannot run program "javac" (in directory "/tmp/AutoCp8746492203352981476"): error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:438)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:352)
... 8 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.(ProcessImpl.java:314)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
... 11 more
END OF ERROR MSG:
Environment (please complete the following information):
Hey, first of all thank for the plugin! I like it a lot.
Unfortunately I still have troubles with Intellij:
After clicking on the browser plugin, the code rarely creates a working module that can be run. I either have to reindex or manually change the project structure.
I eventually get autocp to run the tests, but somehow IntelliJ does not let me debug the code anymore.
When I try to add a run configuration manually then IntelliJ complains, that it can not find the Main class in the module
Is your feature request related to a problem? Please describe.
Non-ascii letters in the problem name disappeared so I can't use this nice plugin at Backjoon Online Judge, because most problems on this site are Korean.
For example, if a problem has non-ascii letters like Dr. Spacemanμ νΉλ³ν μκ³ λ¦¬μ¦
, AutoCp generates a file which has only an alphanumeric name like Dr_Spaceman__
.
Original problem: https://www.acmicpc.net/problem/12353
Describe the solution you'd like
In my opinion, non-ascii characters in the filename should be allowed as in most OS.
In the example above, it could be Dr_Spacemanμ_νΉλ³ν_μκ³ λ¦¬μ¦
or Dr. Spacemanμ νΉλ³ν μκ³ λ¦¬μ¦
(I think allowing non-ascii letters and allowing whitespaces or special letters are different topics)
Describe alternatives you've considered
I found some lines associated with refining filenames.
I tried to test in IDE but I failed with some configuration issues.
So I only tested in Kotlin tests and verified it works.
I want to make a pull request but I'm wondering how do you think about this issue.
Describe the bug
AutoCp doesn't work
To Reproduce
Steps to reproduce the behavior:
Go to 'codeforces.com/problemset/problem/126/B'
Click on 'competitive companion'
Press 'Ctrl + Shift + F10'
See an error
Expected behavior
run the program
Screenshots
Error message:
Cannot run program "g++" (in directory "C:\Users\SUMBAR\AppData\Local\Temp\AutoCp1035667180991975189"): CreateProcess error=2, The system cannot find the file specified
Stacktrace:
com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "g++" (in directory "C:\Users\SUMBAR\AppData\Local\Temp\AutoCp1035667180991975189"): CreateProcess error=2, The system cannot find the file specified
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:359)
at com.github.pushpavel.autocp.tester.base.TwoStepProcessFactory$Companion.from(TwoStepProcessFactory.kt:45)
at com.github.pushpavel.autocp.tester.base.TwoStepProcessFactory$Companion$from$1.invokeSuspend(TwoStepProcessFactory.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.io.IOException: Cannot run program "g++" (in directory "C:\Users\SUMBAR\AppData\Local\Temp\AutoCp1035667180991975189"): CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:435)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:349)
... 8 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.(ProcessImpl.java:499)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:158)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
... 11 more
Environment (please complete the following information):
OS: Windows 11
IDE: Clion 2023.2.1
Programming Language: C++
Additional context
I have installed g++, but I am unable to use the plugin.
Error message:
Cannot run program "g++" (in directory "C:\Users\UseR\AppData\Local\Temp\AutoCp17191170129971631139"): CreateProcess error=2, The system cannot find the file specified
Stacktrace:
com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "g++" (in directory "C:\Users\UseR\AppData\Local\Temp\AutoCp17191170129971631139"): CreateProcess error=2, The system cannot find the file specified
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:362)
at com.github.pushpavel.autocp.tester.base.TwoStepProcessFactory$Companion.from(TwoStepProcessFactory.kt:44)
at com.github.pushpavel.autocp.tester.base.TwoStepProcessFactory$Companion$from$1.invokeSuspend(TwoStepProcessFactory.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.io.IOException: Cannot run program "g++" (in directory "C:\Users\UseR\AppData\Local\Temp\AutoCp17191170129971631139"): CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:438)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:352)
... 8 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.(ProcessImpl.java:487)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:154)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
... 11 more
I love this plugin, it helps my cp a lot.
However in some problems, simply comparing stdout
with answer doesn't work -- special judge and interactive type.
assert
to make sure answer is right.So I think there should be an option to temporarily disable autocp as users want. π
Describe the bug
When I click on the competitive companion icon, it should result in opening of a popup in clion but it doesn't. I have tested the competitive companion extension with cphelper in vscode and cpeditor too, they work fine.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A popup should open, or a new file should be created automatically.
Environment (please complete the following information):
Upon attempting to run the program using the shortcut Alt + X in CLion, an error message appears: "Cannot run 'B_Binary_Path' in debug". Additionally, an error is also encountered in the terminal. After installing the Competitive Programming Companion and Auto CP plugins, I parsed the question from https://codeforces.com/problemset/problem/1937/B. When I try to run the program by clicking Alt + X, it gives me the error "Cannot run 'B_Binary_Path' in debug".
Steps to Reproduce the Behavior:
Install Competitive Programming Companion and Auto CP plugins in CLion.
Parse https://codeforces.com/problemset/problem/1937/B on Codeforces, which creates a file named 'B_Binary_Path'.
Retrieve test cases using View > Tool Windows > AutoCp.
Attempt to run the program using the shortcut Alt + X.
Expected Behavior:
The program should run without errors when using the Alt + X shortcut.
Additional Context:
The error message "Cannot run 'B_Binary_Path' in debug" persists, and further details from the terminal are provided below.
Describe the bug
AutoCp does not work with the latest IntelliJ IDEA Ultimate version 2023.1.4 (Build #IU-231.9225.16, built on July 12, 2023)
Environment:
Describe the bug
Plugin 'AutoCp' (version 'v0.7.9') is not compatible with the current version of the IDEs.
Environment (please complete the following information):
Many thanks to the plugin.
As clion now support single file execution, can we disable automatically add executable? Which could make cmakelist more clear.
Is your feature request related to a problem? Please describe.
Now, this chrome extension works well for generating a new file in CLION editor.
But if it can import testcase only for current opened file, it maybe wonderful.
I don't want to make new file for a new problem.
Describe the solution you'd like
Chrome extension supports "importing testcase only for opened cpp file(remove previous test cases also)"
I pressed the extension icon but no project is made.
Is your feature request related to a problem? Please describe.
When I use AutoCP in PyCharm it does not show the ability to debug python code
Describe the solution you'd like
I would like to be able to debug the code with PyCharm by setting a breakpoint
I love what you done, super useful.
Hi, I'm having a trouble using this plugin to solve a problem to which requires the tool to read a certain file in the solution file directory. How would I achieve this?
Describe the bug
After adding test cases, the program is working fine, but when IDE is restarted again, all test cases are lost, and the final image in the screenshots section is displayed.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Test cases should persist even after closing the IDE.
Also, If possible adding a Run with AutoCp option would be good, because currently pressing the Run near int main() function sometimes triggers test framework and sometimes does not. Also, it seems, it is not compatible with the keyboard shortcut to Run.
Screenshots
A simple program that takes an integer and output.
It displays the console when using a keyboard shortcut to Run.
So, using the 2nd Run option as in the 3rd screenshot and selecting the file triggers the testing framework.
Restart the IDE and this screenshot is shown.
If I disable and re-enable the plugin, it starts working again but test cases are still lost.
Environment
Describe the bug
Is there a limit on the number of characters for the File template? I have a live template that I have been using, but when I use the same template, it creates the folder but doesn't create any files. When I remove some of the lines from my template, it can create the files as well.
To Reproduce
Steps to reproduce the behavior:
https://ideone.com/u8PL9b
This is the template that I have pasted on Ideone.
Expected behavior
Large file templates should also be allowed.
Environment (please complete the following information):
It is not a bug, but an inconvenience when using java.
The default naming scheme creates a the following folder structure:
my-cp-project
-- Codeforces - Codeforces Round ABC
---- B. Foo Bar
------ Main.java
-- Codeforces - Codeforces Round XYZ
---- A. Baz Qik
------ Main.java
Autocp sets the folders as excluded in the project structure. This disables syntax highlighting in the ide. Auto-complete works though. When I add any of the folders as a content root, then syntax highlighting works, but as soon as I have more than one Main,java file. I get a naming conflict, because there can't be two Main.java classes on the classpath. When I rename Main.java or any of the folders it resides in, then this breaks autocp, even if I specify, the new path in the run configuration.
I would really love to have more than one solution in my project, without running into this issue.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Workaround is to have one contest per project.
Describe the bug
Can't run it at all. I enabled it on my file and tried to run it (alt - x). It said "Cannot run on debug". So I figured that I would have to manually edit the run/debug configuration myself and add AutoCP configuration and select my file as "Solution File"
Error message:
`Testing started at 12:11 PM ...
Building "2" ...
This was not supposed to happen, please file an issue
Error message:
Cannot run program "g++" (in directory "C:\Users\Asus\AppData\Local\Temp\AutoCp1867462911877868614"): CreateProcess error=2, The system cannot find the file specified
Stacktrace:
com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "g++" (in directory "C:\Users\Asus\AppData\Local\Temp\AutoCp1867462911877868614"): CreateProcess error=2, The system cannot find the file specified
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:364)
at com.github.pushpavel.autocp.tester.base.TwoStepProcessFactory$Companion.from(TwoStepProcessFactory.kt:43)
at com.github.pushpavel.autocp.tester.base.TwoStepProcessFactory$Companion$from$1.invokeSuspend(TwoStepProcessFactory.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Caused by: java.io.IOException: Cannot run program "g++" (in directory "C:\Users\Asus\AppData\Local\Temp\AutoCp1867462911877868614"): CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:440)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:354)
... 8 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.(ProcessImpl.java:487)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:154)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
... 11 more
`
Environment (please complete the following information):
Describe the bug
Any problem grabbed by Competitive Companion from acwing.com
ends up with a file named .cpp
(empty file name) in CLion. The reason is probably that the problem name is in Chinese on AcWing.
CMake does not allow .cpp
to be a target name, so some code insight features in CLion do not work.
To Reproduce
Steps to reproduce the behavior:
https://www.acwing.com/problem/content/1279/
and grab it using Competitive Companion Chrome extension..cpp
in CLion..cpp
to CMake project produces an error "CMake Error at CMakeLists.txt:10 (add_executable):Expected behavior
Ideally, the generated file should be named ProblemName.cpp
. In case parsing problem name in Chinese is hard, the problem number or a random string may be used for file name to avoid empty file name.
Environment (please complete the following information):
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.