question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

General: Exception when trying to install EF Core tools from plugin

See original GitHub issue

When I open .Net6 project in Rider I got exception. Below is call stack.

  • OS: macOS Monterey 12.5
  • .NET SDK info (installed ones and version used within Rider): Net6
  • Plugin version: 222.0.0
  • Rider version: 2022.2.3345.139

Exception java.lang.NullPointerException: Cannot invoke "java.io.File.toString()" because the return value of "com.intellij.execution.configurations.GeneralCommandLine.getWorkDirectory()" is null at me.seclerp.rider.plugins.efcore.cli.execution.CliCommand.<init>(CliCommand.kt:12) at me.seclerp.rider.plugins.efcore.cli.api.ManagementCommandFactory.installEfCoreTools(ManagementCommandFactory.kt:17) 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)

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
seclerpcommented, Aug 11, 2022

I was able to reproduce it yesterday and created a fix. It will be available from the next version of the plugin. Thanks!

EDIT: 222.1 was released with a fix onboard.

1reaction
luylucas10commented, Aug 8, 2022

I’ve the same, but after install [dotnet tool install --global dotnet-ef], it stopped. I’m using --version 5.0.17, but I think that the last version works too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install any version of dotnet ef for ef core 3.1 #19722
The exception message matches for any version of dotnet ef, no matter what I try, nothing helps.
Read more >
Troubleshoot .NET tool usage issues - Microsoft Learn
A common reason for failure is that the tool name isn't correct. This can happen because of mistyping, or because the tool has...
Read more >
Need to Update EF Core Tools - Stack Overflow
Technique 1: Using Package Manager Console(Especially for Microsoft Visual Studio user) PM> Install-Package Microsoft.EntityFrameworkCore.
Read more >
Installing EF Power Tools into VS2015 (with an update for ...
The Entity Framework Power Tools extension for Visual Studio has been ... But if you try to install the extension into Visual Studio...
Read more >
Entity Framework Core 5 – Pitfalls To Avoid and Ideas to Try
From here, we can install the EF Core CLI tools. ... EF Core defaults as much as possible to avoid strange edge cases...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found