minasploit / migration-facilitator

A Plugin designed to help .NET developers using Jetbrains Rider manage their database activities powered by Entity Framework
GNU General Public License v3.0
8 stars 1 forks source link

Plugin tries install dotnet-ef #12

Closed Drenalol closed 2 years ago

Drenalol commented 2 years ago

Hey! I'm installed plugin, and seems doesn’t worked.

After restart Rider gets exception in logs:

23:47 Installation failed: Couldn't install Entity Framework Core .NET Command-line Tool. Please install it manually and restart the IDE.

Looks there success is false, but i have already dotnet ef.

➜ net6.0 (dev) ✗ dotnet ef --vesion 

                     _/\__       
               ---==/    \\      
         ___  ___   |.    \|\    
        | __|| __|  |  )   \\\   
        | _| | _|   \_/ |  //|\\ 
        |___||_|       /   \\\/\\

Entity Framework Core .NET Command-line Tools 6.0.0

Rider version

JetBrains Rider 2021.3 EAP 8
Build #RD-213.5744.78, built on November 13, 2021
Rider EAP User
Expiration date: December 13, 2021
Runtime version: 11.0.13+7-b1751.19 aarch64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.
macOS 12.0.1
.NET 6.0.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1504M
Cores: 8
Registry:
    ide.mac.bigsur.window.with.tabs.enabled=false
    ide.balloon.shadow.size=0
    indexing.enable.entity.provider.based.indexing=false
    rdclient.asyncActions=false
    ide.new.project.model.index.case.sensitivity=true

Non-Bundled Plugins:
    some.awesome (1.14)
    izhangzhihao.rainbow.brackets (6.21)
    commit-message-helper-idea-plugin (1.1.0)
    com.vermouthx.idea (1.12.2)
    com.settler.rider.specflow (1.10.0)
    com.intellij.resharper.StructuredLogging (2021.3.0.175-eap04)
    com.intellij.resharper.HeapAllocationsViewer (2021.3.0-eap05)
    com.github.minasploit.migrationfacilitator (1.0.7)
    cognitivecomplexity-rider (2021.3.0-eap01)
    zielu.gittoolbox (212.8.1)
    mobi.hsz.idea.gitignore (4.3.0)
    com.mallowigi (50.2.0)
    Abc.MoqComplete.Rider (1.4.10)
minasploit commented 2 years ago

I see you have installed .net 6 on your system... Was this also an issue before your upgrade to .net 6? (back when you were using .net 5)

Drenalol commented 2 years ago

I can't say because I didn't use the plugin on .net5.

I have a Mac on M1, and that's it.net6 supports it natively, but I tried to change the Toolset in Rider to .net5, and after restarting I get the same error, maybe the fact is that my X64 version is in a subfolder (/usr/local/share/dotnet/x64)

image

minasploit commented 2 years ago

Ahh, that might be possible. Try three things for me please.

  1. Check how many executables of dotnet you have on your system.
  2. Run dotnet --info using each of those executables.
  3. Also run dotnet ef on the solution folder.

Please send me the results of these and I'll attempt a fix. Thanks 🙏

Drenalol commented 2 years ago

No problem.

1.

where dotnet

/usr/local/share/dotnet/dotnet (arm64 .NET6 only)
/usr/local/share/dotnet/x64/dotnet (x64 .NET5 only)

2.

/usr/local/share/dotnet/dotnet --info

.NET SDK (reflecting any global.json):
 Version:   6.0.100
 Commit:    9e8b04bbff

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  12.0
 OS Platform: Darwin
 RID:         osx-arm64
 Base Path:   /usr/local/share/dotnet/sdk/6.0.100/

Host (useful for support):
  Version: 6.0.0
  Commit:  4822e3c3aa

.NET SDKs installed:
  6.0.100 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

/usr/local/share/dotnet/x64/dotnet --info

.NET SDK (reflecting any global.json):
 Version:   5.0.401
 Commit:    17a9cb47cf

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  11.0
 OS Platform: Darwin
 RID:         osx-x64
 Base Path:   /usr/local/share/dotnet/x64/sdk/5.0.401/

Host (useful for support):
  Version: 5.0.9
  Commit:  208e377a53

.NET SDKs installed:
  5.0.401 [/usr/local/share/dotnet/x64/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 5.0.9 [/usr/local/share/dotnet/x64/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 5.0.9 [/usr/local/share/dotnet/x64/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

3.

dotnet ef (in solution folder)

                     _/\__       
               ---==/    \\      
         ___  ___   |.    \|\    
        | __|| __|  |  )   \\\   
        | _| | _|   \_/ |  //|\\ 
        |___||_|       /   \\\/\\

Entity Framework Core .NET Command-line Tools 6.0.0

Usage: dotnet ef [options] [command]

Options:
  --version        Show version information
  -h|--help        Show help information
  -v|--verbose     Show verbose output.
  --no-color       Don't colorize output.
  --prefix-output  Prefix output with level.

Commands:
  database    Commands to manage the database.
  dbcontext   Commands to manage DbContext types.
  migrations  Commands to manage migrations.

Use "dotnet ef [command] --help" for more information about a command.

/usr/local/share/dotnet/x64/dotnet ef (in solution folder)

                     _/\__       
               ---==/    \\      
         ___  ___   |.    \|\    
        | __|| __|  |  )   \\\   
        | _| | _|   \_/ |  //|\\ 
        |___||_|       /   \\\/\\

Entity Framework Core .NET Command-line Tools 6.0.0

Usage: dotnet ef [options] [command]

Options:
  --version        Show version information
  -h|--help        Show help information
  -v|--verbose     Show verbose output.
  --no-color       Don't colorize output.
  --prefix-output  Prefix output with level.

Commands:
  database    Commands to manage the database.
  dbcontext   Commands to manage DbContext types.
  migrations  Commands to manage migrations.

Use "dotnet ef [command] --help" for more information about a command.

maybe this helps (MSDN about this, in 16 point)

cat /etc/dotnet/install_location

/usr/local/share/dotnet/x64
minasploit commented 2 years ago

Thank you very much, getting on it right now

Drenalol commented 2 years ago

Thank you very much, getting on it right now

Any chances to updates?

taylormleigh commented 2 years ago

@minasploit also struggling with this exact issue - I only have one executable but aside from that I've got the exact same conditions as OP.

Drenalol commented 2 years ago

https://plugins.jetbrains.com/plugin/18147-entity-framework-core-ui this plugin work on Mac M1