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

Unable to use the plugin due to a file not found error #102

Open
2 tasks done
cwhy opened this issue May 2, 2022 · 0 comments
Open
2 tasks done

Unable to use the plugin due to a file not found error #102

cwhy opened this issue May 2, 2022 · 0 comments

Comments

@cwhy
Copy link

cwhy commented May 2, 2022

Step 1: Are you in the right place?

  • I have verified there are no duplicate active or recent bugs, questions, or requests
  • I have verified that I am using the latest version of the plugin.

Step 2: Describe your environment

  • Plugin version: 0.14.0
  • PyCharm/IDEA version: 2022.1
  • Mypy version: 0.910

Step 3: Describe the problem:

Steps to reproduce:

  1. install this plugin
  2. open a file with this plugin on

Observed Results:

I see this from mypy widget:

The scan failed due to an error - please see the event log for more information

and this in the logs

The scan failed due to an exception: Error creating Mypy process Root cause: error=2, No such file or directory 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:340 undefined)  
   at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:271 undefined)  
   at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107 undefined)  
   at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071 undefined)  
   at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:438 undefined)  
   at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:352 undefined)  
   at com.leinardi.pycharm.mypy.mpapi.MypyRunner.runMypy(MypyRunner.java:307 undefined)  
   at com.leinardi.pycharm.mypy.mpapi.MypyRunner.scan(MypyRunner.java:266 undefined)  
   at com.leinardi.pycharm.mypy.checker.ScanFiles.scan(ScanFiles.java:109 undefined)  
   at com.leinardi.pycharm.mypy.checker.ScanFiles.checkFiles(ScanFiles.java:100 undefined)  
   at com.leinardi.pycharm.mypy.checker.ScanFiles.call(ScanFiles.java:74 undefined)  
   at com.leinardi.pycharm.mypy.MypyAnnotator.doAnnotate(MypyAnnotator.java:131 undefined)  
   at com.leinardi.pycharm.mypy.MypyAnnotator.doAnnotate(MypyAnnotator.java:62 undefined)  
   at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doAnnotate(ExternalToolPass.java:218 undefined)  
   at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doAnnotate(ExternalToolPass.java:212 undefined)  
   at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$run$0(ExternalToolPass.java:190 undefined)  
   at com.intellij.codeInsight.daemon.impl.ExternalToolPass.runChangeAware(ExternalToolPass.java:287 undefined)  
   at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$run$2(ExternalToolPass.java:190 undefined)  
   at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:189 undefined)  
   at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608 undefined)  
   at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683 undefined)  
   at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639 undefined)  
   at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607 undefined)  
   at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60 undefined)  
   at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:176 undefined)  
   at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:365 undefined)  
   at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:343 undefined)  
   at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.run(ExternalToolPass.java:189 undefined)  
   at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:332 undefined)  
   at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:322 undefined)  
   at com.intellij.util.ui.update.MergingUpdateQueue.lambda$flush$1(MergingUpdateQueue.java:271 undefined)  
   at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:285 undefined)  
   at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:240 undefined)  
   at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:241 undefined)  
   at com.intellij.util.Alarm$Request.runSafely(Alarm.java:388 undefined)  
   at com.intellij.util.Alarm$Request.run(Alarm.java:377 undefined)  
   at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515 undefined)  
   at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264 undefined)  
   at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:223 undefined)  
   at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:241 undefined)  
   at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:31 undefined)  
   at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:214 undefined)  
   at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:212 undefined)  
   at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:203 undefined)  
   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128 undefined)  
   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628 undefined)  
   at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668 undefined)  
   at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665 undefined)  
   at java.base/java.security.AccessController.doPrivileged(Native Method)  
   at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665 undefined)  
   at  java.base/java.lang.Thread.run(Thread.java:829 undefined)

Expected Results:

Successful typecheck

Relevant Code:

It will fail regardless of file content.
using mypy separately will work.
I have tried 0.12.1 and also failed in the same way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant