Code Monkey home page Code Monkey logo

Comments (12)

seclerp avatar seclerp commented on June 7, 2024

Hi @haarhoff-frs, thanks for the bug report. It seems like it's a known issue with a plugin bundled JDK on Mac OS X, I will post a potential fix here a bit later, will be happy if you will be able to test it :)

from rider-efcore.

haarhoff-frs avatar haarhoff-frs commented on June 7, 2024

Ah perfect, I'll make sure to test it and let you know as soon as its ready :)

from rider-efcore.

seclerp avatar seclerp commented on June 7, 2024

Hey @haarhoff-frs, could you try this one?

riderefcore-1.1.2.1.zip

To install it from file use Settings / Plugins / / Install plugin from disk

from rider-efcore.

haarhoff-frs avatar haarhoff-frs commented on June 7, 2024

Hey @seclerp
Sorry, that did not resolve the issue, same as before. Are there any logs or anything else I could provide you with that would help?

from rider-efcore.

seclerp avatar seclerp commented on June 7, 2024

I will rewrite the whole logic for command execution to use the Intellij way, not the JDK way. I believe it will solve the problem.

from rider-efcore.

seclerp avatar seclerp commented on June 7, 2024

@haarhoff-frs could you check this one?

riderefcore-1.1.2.2.zip

Before install please remove the old plugin (with restart) for a more clear check.

P.S. Please install the whole .zip file, not only the internal .jar file.

from rider-efcore.

haarhoff-frs avatar haarhoff-frs commented on June 7, 2024

That did it, no more error messages! I was able to create and remove migrations as well as update the database without any problems.
Thanks a lot for the great plugin and resolving my issue so quickly :)

from rider-efcore.

seclerp avatar seclerp commented on June 7, 2024

You're welcome! You could use this temporary version for now.

The official fix will be under 1.1.3 in the near future.

from rider-efcore.

magicnov avatar magicnov commented on June 7, 2024

Hello. It seems like this issue exist on new versions. Rider version 2022.2.3, plugin version 222.2.0

com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "dotnet": error=2, No such file or directory
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:362)
at com.intellij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:92)
at com.intellij.execution.process.OSProcessHandler.(OSProcessHandler.java:45)
at com.intellij.execution.process.CapturingProcessHandler.(CapturingProcessHandler.java:20)
at com.intellij.execution.util.ExecUtil.execAndGetOutput(ExecUtil.kt:88)
at me.seclerp.rider.plugins.efcore.cli.execution.CliCommand.execute(CliCommand.kt:22)
at me.seclerp.rider.plugins.efcore.features.eftools.InstallDotnetEfAction$actionPerformed$1.invoke(InstallDotnetEfAction.kt:18)
at me.seclerp.rider.plugins.efcore.features.eftools.InstallDotnetEfAction$actionPerformed$1.invoke(InstallDotnetEfAction.kt:11)
at me.seclerp.rider.plugins.efcore.cli.execution.ExtensionsKt$executeCommandUnderProgress$$inlined$runBackgroundableTask$1.run(progress.kt:36)
at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:442)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:114)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$5(CoreProgressManager.java:493)
at com.intellij.codeWithMe.ClientId$Companion$decorateFunction$2.apply(ClientId.kt:307)
at com.intellij.codeWithMe.ClientId$Companion$decorateFunction$2.apply(ClientId.kt:307)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:252)
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:608)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:175)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:252)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.io.IOException: Cannot run program "dotnet" (in directory "/Users/mkurbanov/RiderProjects/Vpnafty"): 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)
... 30 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)
... 33 more

from rider-efcore.

seclerp avatar seclerp commented on June 7, 2024

@magicnov are you sure that your issue is not related to #92 ?

from rider-efcore.

magicnov avatar magicnov commented on June 7, 2024

@magicnov are you sure that your issue is not related to #92 ?

Yes, i think i have same problem, but on macos. Is there any solution for now?

from rider-efcore.

seclerp avatar seclerp commented on June 7, 2024

Check the following:

  1. You should have .NET SDK (al least 3.1) installed
  2. You should have "dotnet" CLI command accessible (check your PATH env variable)

If all from above is correct, you should be able to execute dotnet --version from the command line:

> dotnet --version
7.0.100-preview.7.22377.5

Also, note that you need EF Core Tools to execute commands. The plugin should hint you to install it but you could also do it manually:

dotnet tool install dotnet-ef --global

And check it after installation:

dotnet ef --help

from rider-efcore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.