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

Zeal doesn't open in Linux/Ubuntu #68

Closed AnthonyWC closed 6 years ago

AnthonyWC commented 6 years ago

Running latest Zeal v0.4 + Plugin Version: 3.2.3 in Ubuntu 16.04 with Webstorm

TheWeirdDev commented 6 years ago

I have the same problem in Arch linux with PyCharm.

gdelmas commented 6 years ago

i currently have no linux desktop system setup to test. can you please try if the following command opens zeal from the command line:

zeal --query test

or just

zeal
TheWeirdDev commented 6 years ago

The zeal --query test gives this error:

screenshot from 2017-12-14 00-22-10

but it seems like zeal test is working fine:

screenshot from 2017-12-14 00-21-32

gdelmas commented 6 years ago

looks like a zeal bug. can you please open an issue on its tracker and link it to this issue.

gdelmas commented 6 years ago

i see zeal changed some time ago. will try to fix.

duplicate of #54

AnthonyWC commented 6 years ago

Confirmed that it's working /w v3.2.5 Dash plugin.

TheWeirdDev commented 6 years ago

version 3.2.5 does not work for me. had to remove --query from code and recompile the extension to make it work.

gdelmas commented 6 years ago

@alireza6677 where did you remove --query from code in 3.2.5? it shouldn't be in there.

TheWeirdDev commented 6 years ago

@gdelmas Yes it wasn't there and it wasn't working. I downloaded an older version fork and changed the ZealLauncher.java, now it's working fine.

gdelmas commented 6 years ago

@alireza6677 when did you modify the fork and built it?

i suspect there the uri scheme is not registered correctly by zeal. you can try to use the uri scheme manually to debug this issue.

TheWeirdDev commented 6 years ago

@gdelmas Yesterday.

I tried a simple java app:

Desktop desktop = Desktop.getDesktop();
URI uri = new URI("dash-plugin://keys=python&query=open");
desktop.browse(uri);

It opens up Zeal correctly. No idea why the extension doesn't work 🤔.

gdelmas commented 6 years ago

interessting. can you try building the plugin with the following line inserted here:

Notifications.Bus.notify(new Notification("Dash", "Dash: Debug ", uriStr, NotificationType.INFORMATION));

the ide's event window should display the uri then

TheWeirdDev commented 6 years ago
Dash: Debug : dash-plugin://keys=java,javafx,grails,groovy,playjava,spring,cvj,processing,javadoc&query=String

The query is valid and it actually worked !! But it doesn't work when i install the extension from intelliJ repositories.

gdelmas commented 6 years ago

thanks, for testing. it is getting complicated :)

TheWeirdDev commented 6 years ago

screenshot from 2017-12-15 18-30-09

screenshot from 2017-12-15 18-32-08

TheWeirdDev commented 6 years ago

I just removed all the IDE config files and reinstalled it. Then installed the extension. Seems to be working. Thanks !

Still no idea what was causing the problem.

gdelmas commented 6 years ago

probably the old file was stuck in some cache. thank you for debugging.