gdelmas / IntelliJDashPlugin

A smart and simple plugin that provides keyboard shortcut access for Dash, Velocity or Zeal in IntelliJ IDEA, RubyMine, WebStorm, PhpStorm, PyCharm and Android Studio.
MIT License
1.09k stars 73 forks source link

Dash Plugin Error with Velocity #39

Closed drohm closed 9 years ago

drohm commented 9 years ago

I installed the 3.2.2 version of the plugin in PyCharm 4.0.4 (Windows 8.1 x64), no issues or errors. When I try to "Search in Velocity" I get the following error:

Dash Plugin Error
           Failed to open dash-plugin://keys=python3,python,django,twisted,sphinx,flask,tornado,sqlalchemy,numpy,scipy,salt,cvp&query=getLogger. Error message: A device attached to the system is not functioning.

I have Velocity 1.0.5 installed (licensed). I've tried uninstalling and reinstalling Velocity and also removing and adding the Dash plugin again. Both didn't work. I'm not sure what else to try.

gdelmas commented 9 years ago

can you please try the url from a browser and/or the open with dialog

dash-plugin://keys=python3,python,django,twisted,sphinx,flask,tornado,sqlalchemy,numpy,scipy,salt,cvp&query=getLogger

please also try:

dash-plugin://keys=python3&query=getLogger

drohm commented 9 years ago

I'm getting "Application not found" for both suggestions. Doesn't work in the browser either (Chrome or IE). Should the install of Velocity have created a registry entry or something for 'dash-plugin://' protocol so that it knows to launch Velocity?

gdelmas commented 9 years ago

yes it should have. although i don't know if modern windows versions allow to open the protocols from browsers or the open dialog. but i suspect that the protocol is not registered correctly from the plugin error.

maybe you can try to register it manually. here is a description for how zeal would have registered it.

drohm commented 9 years ago

I'm all set. The author of Velocity sent me a couple reg files to create the necessary registry entries and everything is launching fine from PyCharm via the plugin. Thanks.

kanytu commented 9 years ago

Would be cool if someone share the reg files instead of closing the issue

drohm commented 9 years ago

Email the author. He's more than willing to help.

gdelmas commented 9 years ago

@kanytu this is a velocity issue, therefore it is closed on the plugin's bugtracker. but you can gladly share the regfiles for any other who might be looking for them.

ohwald commented 8 years ago

@drohm if you can share the reg files, that will be nice.

drohm commented 8 years ago

The author sent me two registry files to run:

dash-plugin

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\dash-plugin]
@="Velocity Search (Dash Plugin Protocol)"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\dash-plugin\DefaultIcon]
@="C:\\Program Files (x86)\\Silverlake Software LLC\\Velocity\\Velocity.exe,1"

[HKEY_CLASSES_ROOT\dash-plugin\shell]

[HKEY_CLASSES_ROOT\dash-plugin\shell\open]

[HKEY_CLASSES_ROOT\dash-plugin\shell\open\command]
@="\"C:\\Program Files (x86)\\Silverlake Software LLC\\Velocity\\Velocity.exe\" -url \"%1\""

dash

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\dash]
@="Velocity Search (Dash Protocol)"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\dash\DefaultIcon]
@="C:\\Program Files (x86)\\Silverlake Software LLC\\Velocity\\Velocity.exe,1"

[HKEY_CLASSES_ROOT\dash\shell]

[HKEY_CLASSES_ROOT\dash\shell\open]

[HKEY_CLASSES_ROOT\dash\shell\open\command]
@="\"C:\\Program Files (x86)\\Silverlake Software LLC\\Velocity\\Velocity.exe\" -url \"%1\""

Save these to .reg files and run them. These worked for me.

OndrejMalek commented 8 years ago

@drohm Thx. I also had this trouble. @gdelmas It might have been convenient to display this at last on project main page.

liutf commented 8 years ago

@drohm Thx!

etiennejcharles commented 7 years ago

Is there a reason why this is closed ? ~ Bug still occurs as of today. @gdelmas : Why is this a velocity issue? I can actually open velocity, but can't open it using the plugin.

gdelmas commented 7 years ago

@etiennejcharles this seems to be a velocity bug.

please see: https://github.com/gdelmas/IntelliJDashPlugin/issues/39#issuecomment-164648562

gdelmas commented 7 years ago

this is a velocity issue because velocity needs to register some url handlers to be available to third party integrations like this plugin.

gdelmas commented 7 years ago

i assume velocity usually registers the above mentioned url handlers for third party integrations to work. maybe there is some issue with that?

what do you think, @jdasilva

jdasilva commented 7 years ago

As far as I know Velocity does what it should according to the Windows guidelines. In the handful of cases where I got more information Zeal was installed prior to Velocity. If someone has had this problem under different circumstances, please let me know because then I'm missing something!

I will look into if there is more I can do for detecting and correcting this.