Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when calling Add Migration with a shortcut #52

Closed
MelnikovVA opened this issue Feb 1, 2022 · 5 comments
Closed

Exception when calling Add Migration with a shortcut #52

MelnikovVA opened this issue Feb 1, 2022 · 5 comments

Comments

@MelnikovVA
Copy link

Hello! Just discovered your plugin and wanted to give it a try. Everything's working fine when I manually open the project Tools section and click on the "Add Migration" option. However, a much more convenient approach for me would be to call the command with a shortcut, so I assigned one to the "Add Migration" option in Rider's Keymap section. However, after trying to call the command with a shortcut, I'm getting a null pointer exception:
Screenshot_2

In case this is not a bug related to the plugin, is there a way to trigger the plugin's commands by using a shortcut? Opening the explorer window, finding the project, rightclicking it and going through several context menus before reaching the command is a little too much hassle when one could simply open the same tab with a couple key strokes.😅

@seclerp
Copy link
Member

seclerp commented Feb 1, 2022

Hi Vladimir, thanks for trying plugin and for the feedback!

The root cause of this error is the design of all commands of this plugin - they depend on specific project. The reason why you need to go through the context menu levels is that action needs to be run on the project file, that's why detached action execution is not possible at that moment.

But I also think that from UX point of view it's not so handy to have such long journey to all commands every time. I think in next releases I will add alternative way of executing such commands without relying on project file, it will be quite important improvement so it will be in my first priorities.

After that change you will be able to customize action execution in the way you want :)

@seclerp
Copy link
Member

seclerp commented Feb 1, 2022

Little background about why it was made like that initially:

We have "preferred projects" feature. It allows you to set and persist project pairs (Migrations + Startup). When you execute action for some project pair at first time, selected projects are persisted for further execution.

You could have different project pairs in your solution and they will never overlap using such an approach.

Here comes the selected project file - we determine which project is selected and which project pair should be used for current action execution.

@MelnikovVA
Copy link
Author

Got you, thanks, will be waiting for the update!

@seclerp
Copy link
Member

seclerp commented Feb 1, 2022

@MelnikovVA feature is on the way, will be available in 1.3.0:

image

It will be also possible to bind shortcut to open a new Quick Actions popup (just like VCS Operations):

image

Of course, you will be able to bind on specific actions too.

@MelnikovVA
Copy link
Author

Awesome!😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants