Can not make migration
See original GitHub issueI am trying to make a simple migration from following the official Microsoft “RazorPagesMovie” guide, i have:
- Created Models folder with Movie class.
- Created scaffolded item in Pages/Movies folder.
- Installed plugin Entity Framework Core UI
- Tools/Entity Framework Core/Make Migration
- Choosing my project, Startup project and class.
- Skip project build process since i have no build process for this project.
- “OK” But i get the error below: “IDE Internal Errors”
java.lang.NullPointerException
at me.seclerp.rider.plugins.efcore.features.shared.EfCoreAction.getCommonOptions(EfCoreAction.kt:33)
at me.seclerp.rider.plugins.efcore.features.migrations.add.AddMigrationAction.ready(AddMigrationAction.kt:19)
at me.seclerp.rider.plugins.efcore.features.shared.EfCoreAction$actionPerformed$1.run$lambda-0(EfCoreAction.kt:48)
at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:215)
at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:22)
at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:197)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:873)
at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:511)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:69)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:112)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:42)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:898)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:746)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:439)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:803)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:438)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)
at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:604)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:436)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:873)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:484)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
- OS: Linux Ubuntu 22.04
- .NET SDK info (installed ones and version used within Rider): 6.0.302
- Plugin version: 1.4.0 by Andrew Rublyov
- Rider version: Build #RD-221.5787.36, built on June 1, 2022 With .NET 6.0.3
Can someon describe to me how to fix this? been googling all night without luck. I have added image of error below:
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Django models can't migrate - Stack Overflow
As mentioned in error log, problem is in : ginsdb.0002_ginlocal... that is located in ../Path_To_Your_App/ginsdb/migrations.
Read more >Can't get migration to work ? - Laracasts
Hello. When i run php artisan migration it only adds CreateUsersTable and CreatePasswordResetsTable . all my other migrations dont get added ?
Read more >Migrations - Django documentation
You have not changed your models since you made their tables. For migrations to work, you must make the initial migration first and...
Read more >Making Django migrations in Python - LogRocket Blog
Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them. This error message is saying that your ...
Read more >Database: Migrations - The PHP Framework For Web Artisans
The --table and --create options may also be used to indicate the name of the table and whether or not the migration will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you @seclerp and sorry for the missing information
@MichaelAggerholm sorry for the late response.
We are not supporting single project cases (I mean, when you open
csproj
files directly in Rider, notsln
ones) at that moment.So I suggest you to create a solution that will contain build configurations (Debug/Release) alongside with your project and then open it in Rider.
And you should not check “No Build” checkbox, it’s for special cases only.