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.

Can not make migration

See original GitHub issue

I am trying to make a simple migration from following the official Microsoft “RazorPagesMovie” guide, i have:

  1. Created Models folder with Movie class.
  2. Created scaffolded item in Pages/Movies folder.
  3. Installed plugin Entity Framework Core UI
  4. Tools/Entity Framework Core/Make Migration
  5. Choosing my project, Startup project and class.
  6. Skip project build process since i have no build process for this project.
  7. “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: jetbrains_error

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MichaelAggerholmcommented, Jul 25, 2022

Hi @MichaelAggerholm, please add all required information from Bug report template.

Thank you @seclerp and sorry for the missing information

0reactions
seclerpcommented, Jul 26, 2022

@MichaelAggerholm sorry for the late response.

We are not supporting single project cases (I mean, when you open csproj files directly in Rider, not sln 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.

Read more comments on GitHub >

github_iconTop 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 >

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