Comments (12)
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.
Ah perfect, I'll make sure to test it and let you know as soon as its ready :)
from rider-efcore.
Hey @haarhoff-frs, could you try this one?
To install it from file use Settings
/ Plugins
/ ⚙
/ Install plugin from disk
from rider-efcore.
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.
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.
@haarhoff-frs could you check this one?
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.
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.
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.
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.
@magicnov are you sure that your issue is not related to #92 ?
from rider-efcore.
@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.
Check the following:
- You should have .NET SDK (al least 3.1) installed
- 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)
- Updating from 232.0.0-rc1 -> 232.1.0 HOT 1
- Connection Strings in User Secret no longer shows up in the Update Database dropdown HOT 7
- Connection: trim long connection items in Connection field
- Dependencies: Make dependencies optional
- Go to DBExplorer table for EF models, context action. HOT 1
- Save different migrations paths for different DbContexts
- Cannot start migrations HOT 9
- Add Migrations UI picks up old binaries - requires manually cleaning projects before running HOT 9
- Common: Add "Enable diagnostic logging" checkbox to Additional options
- Common: Save all files before running operations
- Additional Arguments: Configure permanent settings HOT 6
- Plugin menu is not appearing HOT 6
- Add Migration: Ability to open newly created migration in editor
- Proposal for Enhancement of EF Core Plugin for JetBrains Rider
- Update database - does not recognize previous migrations and target migrations is set to "0" HOT 6
- Option to disable EF Core tools notification HOT 1
- Cannot use update database or add migration. HOT 17
- Rider 2023.3.4 "Quick lists" integration HOT 8
- Cannot select target migration in update database, drop down list always contains only one option: 0
- rider-efcore UI does not work with Rider 2024.1.1 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rider-efcore.