Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoCp doesn't work #119

Open
YhlasY opened this issue Apr 15, 2023 · 4 comments
Open

AutoCp doesn't work #119

YhlasY opened this issue Apr 15, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@YhlasY
Copy link

YhlasY commented Apr 15, 2023

Describe the bug
AutoCp doesn't work

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'codeforces.com/problemset/problem/126/B'
  2. Click on 'competitive companion'
  3. Press 'Ctrl + Shift + F10'
  4. 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 10
  • IDE: Clion 2022.3.3
  • Programming Language: C++

Additional context
Please fix it

@YhlasY YhlasY added the bug Something isn't working label Apr 15, 2023
@yizhilurenjia
Copy link

I have also experienced this error. Is it because my Clion configuration is incorrect?

@YhlasY
Copy link
Author

YhlasY commented Aug 29, 2023 via email

@Pushpavel
Copy link
Owner

This is similar to #15 , basically you need g++ to be installed on your system.

@yizhilurenjia
Copy link

But I installed g++ and still cannot use it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants