Code Monkey home page Code Monkey logo

gdelmas / intellijdashplugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from combinatorial/appcodedashsearch

1.1K 41.0 73.0 128 KB

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.

License: MIT License

Java 100.00%
dash velocity zeal intellij idea rubymine webstorm phpstorm pycharm android-studio plugin documentation reference

intellijdashplugin's Introduction

A smart and simple plugin that provides keyboard shortcut access for Dash, Velocity or Zeal in IntelliJ IDEA, RubyMine, WebStorm, PhpStorm, PyCharm, DataGrip, CLion, GoLand and Android Studio.

Installation

To install the plugin in your IDE go to Preferences -> Plugins -> Browse repositories and search for "Dash".

Usage

The default shortcut assigned to smart-search is Cmd-Shift-D (Mac OS X) or Ctrl-Shift-D (Windows, Linux).

A menubar command named "Smart-Search Documentation" can be found in the "Tools" menu.

The plugin either searches for the statement at caret position or the current selection. It will identify the programming language in use and request filtered results accordingly. A non filtered search over all documentation entries can be invoked by adding the Alt modifier key to the shortcut. "Search all Documentation" is also available in the tools menu.

Configuration

Shortcut

You can change the shortcut at Preferences -> Keymap -> Plug-ins -> Dash.

Toolbar Icon

You can add a button to the toolbar. Right-click the menubar -> Customize […]. You will find the button under "Plug-ins -> Dash".

Supported API Documentation Browsers

Kapeli Dash (Mac OS X)

Dash is an API Documentation Browser and Code Snippet Manager. Dash stores snippets of code and instantly searches offline documentation sets for 150+ APIs (for a full list, see below). You can even generate your own docsets or request docsets to be included. http://kapeli.com/dash

Velocity (Windows)

Velocity gives your Windows desktop offline access to over 150 API documentation sets (provided by Dash for OS X). https://velocity.silverlakesoftware.com

Zeal (Linux & Windows)

Zeal is a simple offline API documentation browser inspired by Dash (OS X app). http://zealdocs.org

Troubleshooting

On Windows, when using Zeal the IDE shows Failed to open dash-plugin://... in the Event Log

It looks like the URL handler has not been registered for Zeal. Please run zeal.exe --register.

The plugin does not work on old IDEs

Older IDE versions like AppCode 1.x are not supported anymore. Please manually install version 2.2 of the plugin: https://github.com/gdelmas/IntelliJDashPlugin/releases/tag/2.2

In rare conditions the installation from the repositories does not work

It looks like there is an IntelliJ/Java bug with OS X Mavericks which prevents to install plugins from the repositories. Please install the plugin manually from here. For additional information check issue #13.

intellijdashplugin's People

Contributors

agatti avatar clojj avatar combinatorial avatar gdelmas avatar iamsoorena avatar jafa7250 avatar kapeli avatar symptog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

intellijdashplugin's Issues

cannot create class "de.dreamlab.dash.DashLauncherAction" [Plugin: com.paperetto.dash]

Happened on RubyMine 7 (based on Intellij IDEA 11).

Full Stacktrace:

cannot create class "de.dreamlab.dash.DashLauncherAction" [Plugin: com.paperetto.dash]
com.intellij.diagnostic.PluginException: cannot create class "de.dreamlab.dash.DashLauncherAction" [Plugin: com.paperetto.dash]
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.convertStub(ActionManagerImpl.java:175)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.a(ActionManagerImpl.java:523)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.a(ActionManagerImpl.java:503)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.getAction(ActionManagerImpl.java:480)
at com.intellij.openapi.actionSystem.DefaultActionGroup.unStub(DefaultActionGroup.java:354)
at com.intellij.openapi.actionSystem.DefaultActionGroup.getChildren(DefaultActionGroup.java:312)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$5.compute(ActionManagerImpl.java:1316)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$5.compute(ActionManagerImpl.java:1309)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:928)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.a(ActionManagerImpl.java:1309)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.a(ActionManagerImpl.java:1324)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.preloadActionGroup(ActionManagerImpl.java:1303)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.c(ActionManagerImpl.java:1294)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.access$200(ActionManagerImpl.java:75)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$4.run(ActionManagerImpl.java:1274)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:405)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.intellij.util.ReflectionUtil.newInstance(ReflectionUtil.java:452)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.convertStub(ActionManagerImpl.java:152)
... 21 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at com.intellij.util.ReflectionUtil.newInstance(ReflectionUtil.java:449)
... 22 more
Caused by: java.lang.NoClassDefFoundError: com/intellij/sql/dialects/SqlLanguageDialect
at de.dreamlab.dash.KeywordLookup.(KeywordLookup.java:66)
at de.dreamlab.dash.DashLauncherAction.(DashLauncherAction.java:32)
... 27 more
Caused by: java.lang.ClassNotFoundException: com.intellij.sql.dialects.SqlLanguageDialect PluginClassLoader[com.paperetto.dash, 3.1]
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:68)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 29 more

Language based on Framework

Is there a way I can overwrite to automatic language selection?

I am using Laravel and I want to search the Laravel docs by default not the standard PHP.

Linux Compatibility for Zeal

Similar to #27.

Zeal is an open source version of Dash that uses the Dash docsets.

It seems that zeal doesn't support the dash-plugin:// URI handler, so the canonical way to execute Zeal is by finding it in the path and executing zeal --query <search string>.

Since velocity introduces support for Windows, and windows integration could be complicated, it would probably be OK to just have Linux support.

String to match for Ruby syntax

Minor issue.

Ruby Methods can and often end in a '?', such as Object.present?.

It would be better if the ? was passed to dash to increase the accuracy of the match.

I just tested the plugin in RubyMine and it seems to work well.

Exception in WebStorm

I was testing for Velocity integration on Windows and got the following exception using WebStorm (occured in 7.0.3 and fresh install of latest 8.0.4).

cannot create class "de.dreamlab.dash.DashLauncherAction" [Plugin: com.paperetto.dash]: cannot create class "de.dreamlab.dash.DashLauncherAction" [Plugin: com.paperetto.dash]
com.intellij.diagnostic.PluginException: cannot create class "de.dreamlab.dash.DashLauncherAction" [Plugin: com.paperetto.dash]
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.a(ActionManagerImpl.java:287)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.a(ActionManagerImpl.java:239)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.getAction(ActionManagerImpl.java:232)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.updateCurrentContext(IdeKeyEventDispatcher.java:679)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:416)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:206)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:493)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.a(ActionManagerImpl.java:264)
... 13 more
Caused by: java.lang.NoClassDefFoundError: com/intellij/sql/dialects/SqlLanguageDialect
at de.dreamlab.dash.KeywordLookup.(KeywordLookup.java:66)
at de.dreamlab.dash.DashLauncherAction.(DashLauncherAction.java:32)
... 18 more
Caused by: java.lang.ClassNotFoundException: com.intellij.sql.dialects.SqlLanguageDialect PluginClassLoader[com.paperetto.dash, 3.1]
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:68)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 20 more

Error after Keyboard Shortcut with IntelliJ 11

Intellij 11.1.5

Error during dispatching of java.awt.event.KeyEvent[KEY_PRESSED,keyCode=68,keyText=D,keyChar='d',modifiers=⌘+⇧,extModifiers=⌘+⇧,keyLocation=KEY_LOCATION_STANDARD,rawCode=0,primaryLevelUnicode=0,scancode=0] on frame1: com.intellij.openapi.wm.impl.status.StatusBarUtil.setStatusBarInfo(Lcom/intellij/openapi/project/Project;Ljava/lang/String;)V
java.lang.NoSuchMethodError: com.intellij.openapi.wm.impl.status.StatusBarUtil.setStatusBarInfo(Lcom/intellij/openapi/project/Project;Ljava/lang/String;)V
at de.dreamlab.dash.DashLauncherAction.actionPerformed(DashLauncherAction.java:71)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:542)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:590)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:458)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:206)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Windows Compatibility for Zeal

Is there any support for using Zeal under Windows? I find it to work nicer (especially since I can fork and modify Zeal myself) than Velocity.

No Dash in plugins repository PhpStorm

Hello,
No repository called Dash ;(
Installed manually and it's working just fine.
Can you check it?

PhpStorm 2016.3
Build #PS-163.7743.50, built on November 22, 2016
JRE: 1.8.0_112-release-408-b2 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

How do I add a custom docsets support?

It seems IntelliJDashPlugin just support

php,wordpress,drupal,zend,laravel,yii,joomla,ee,codeigniter,cakephp,phpunit,symfony,typo3,twig,smarty,phpp in PHPSTORM

But if I have my own docsets,how do I add it to IntelliJDashPlugin?

Search in all Docsets without Language/Context filtered results

Hi,

Currently the Dash-plugin seems to be recommending the Python docset when invoked from PyCharm. For PyQt projects, this means whenever the user searches for a Qt term, she/he has to manually select the Qt-docset (or "None" for no scope constraints) in order to get to the Qt documentation.

Thus a way to disable or configure the context sensitive search would improve the usability in this scenario, maybe by allowing the user to select a profile for contexts.

Thank you,
Clemens

screen shot 2014-07-27 at 7 51 47 am

unstub Search in Dash issue

After Installing Dash version 3.2.3 and an update to version 3.2.4 from this git repository intelliJ throws following error:

Can't unstub Search in Dash (Searches word under caret or selected text in Dash)
java.lang.Throwable

idea.txt

This Behavior doesn't appear if i uninstall / reinstall this plugin.

New way for plugins to call Dash with keywords

Dash 1.9.3 comes with a new way for plugins to call Dash and send over a list of keywords which Dash uses to enable/disable docsets.

This is all described at http://kapeli.com/dash_plugins.

In the next weeks I'll go through all plugins and update them myself, so expect a pull request regarding this. However, if you have some free time and want to do it yourself, feel free to do so 👍.

Note: please do not release a new version of the IntelliJ plugin for at least 2-4 weeks, so that Dash users have time to update to 1.9.3.

searching for an AngularTS text inside a TypeScript file

Hi,
when I try to search for a phrase with the shortcut Ctrl+Shift+D
this string will be send to the Zeal:

javascript,jquery,jqueryui,jquerym,backbone,marionette,meteor,sproutcore,moo,prototype,bootstrap,foundation,lodash,underscore,ember,sencha,extjs,titanium,knockout,zepto,yui,d3,dojo,nodejs,express,grunt,mongoose,moment,require,awsjs,jasmine,sinon,chai,cordova,phonegap,angularjs:Routes

as you can see ther is no "angularts" between those lines. that means I cannot search through angularts docs without changing the search term.

Add Tapestry support

Tapestry has html templates, supported by the Tapestry Support plugin. If this could be linked to the HTML docset that would be very helpful.

class with name "de.dreamlab.dash.DashLauncherAction" not found

FIXED with 3.2pre!!!!!
Thank you!

???? did command-shift-D with Dash app running, got:
(in PHPStorm, mavericks, Dash all most recent as of 8/5/2014)

(I put in the issue before I saw the note at the bottom of the blurb on git --
I really appreciate this!!

  • which version of the plugin are you using? 3.2pre fixed it --- download from github as zip had failed after install
  • where did you install the plugin from (repository/manual)? from your special link from the blurb
  • which ide are you using (intellij, webstrom, etc.) : intellij (PHPStorm)
  • which version of the ide are you using? 7.1.3
  • which operating system are you using? Mavericks 10.9.4
  • did the plugin work before? or did you just install it? just installed
  • is the error reported each time you invoke the shortcut or just once? each time
  • is there an error report upon ide startup (please check event window) no
    )

class with name "de.dreamlab.dash.DashLauncherAction" not found [Plugin: com.paperetto.dash]: class with name "de.dreamlab.dash.DashLauncherAction" not found [Plugin: com.paperetto.dash]

class with name "de.dreamlab.dash.DashLauncherAction" not found [Plugin: com.paperetto.dash]: class with name "de.dreamlab.dash.DashLauncherAction" not found [Plugin: com.paperetto.dash]
com.intellij.diagnostic.PluginException: class with name "de.dreamlab.dash.DashLauncherAction" not found [Plugin: com.paperetto.dash]
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.a(ActionManagerImpl.java:262)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.a(ActionManagerImpl.java:232)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.getAction(ActionManagerImpl.java:225)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.updateCurrentContext(IdeKeyEventDispatcher.java:679)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:416)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:206)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:493)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.ClassNotFoundException: de.dreamlab.dash.DashLauncherAction PluginClassLoader[com.paperetto.dash, 3.1]
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:68)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.a(ActionManagerImpl.java:255)
... 13 more

Plugin shortcut not working in PHPStorm

I just installed the plugin from the repository, and the shortcut doesn't seem to be working in PHPStorm.
I'm using the build 131.374, and I'm on OSX 10.9. Is this a known issue?

Great work on the plugin, seems quite useful.

Shortcut does not work. Menu command does.

Hi,

When I first used the plugin I could go to Dash using the key code for it.
Now this does not work anymore.

Using the tools menu everything is ok.

I think it may have to do with the delay I see before something shows (I am running a trial version of Dash). I suspect that this does something with the focus as well...

Recognise Elixir

Hi,

First of thank you so much for creating this plugin, it is really a huge time safer for me :D
I noticed that it does not recognise Elixir yet as language, and was wondering if you could add support for this!

Much appreciated,

Gerard

SDK Version detection

hey @Kapeli

if i remember correctly the keywords with dash-plugin:// are matched against

  • CFBundleIdentifier
  • DocSetPlatformFamily
  • DashDocSetFamily
  • user keyword setting

i see the default user setting for java 6 is "java6". i couldn't find this string in the plist.

i got a great contribution by @agatti. now the plugin can detect which sdk version is being used. could you explain were these version number keywords come from. i would like to use them to query the corresponding sdk documentation. this will help to reduce a lot of double results if docsets for multiple versions are installed.

it would also be great if the same were possible for ruby or python.

thanks,
gerard

Unable to install plugin from repositories

I was unable to install due to the following error message

Plugin Dash was not installed: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

Android Studio install failed.

Install this plugin on android stdio failed with below errors:

Invalid SortKey: Invalid SortKey
java.lang.IllegalArgumentException: Invalid SortKey
at javax.swing.DefaultRowSorter.setSortKeys(DefaultRowSorter.java:288)
at com.intellij.ide.plugins.PluginTable$2.setSortKeys(PluginTable.java:105)
at com.intellij.ide.plugins.PluginManagerMain.modifyPluginsList(PluginManagerMain.java:271)
at com.intellij.ide.plugins.PluginManagerMain$6$1.run(PluginManagerMain.java:343)
at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2053)
at com.intellij.ide.plugins.PluginManagerMain$6.finished(PluginManagerMain.java:339)
at com.intellij.util.concurrency.SwingWorker$1.run(SwingWorker.java:148)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:319)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:697)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
at java.awt.Dialog$1.run(Dialog.java:1049)
at java.awt.Dialog$3.run(Dialog.java:1101)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1099)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:787)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:463)
at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1557)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1524)
at com.intellij.ide.plugins.InstalledPluginsManagerMain$BrowseRepoListener.actionPerformed(InstalledPluginsManagerMain.java:425)
at com.intellij.util.ui.StatusText$1.onClick(StatusText.java:59)
at com.intellij.ui.ClickListener$1.mouseReleased(ClickListener.java:73)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6414)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
at java.awt.Component.processEvent(Component.java:6179)
at java.awt.Container.processEvent(Container.java:2084)
at java.awt.Component.dispatchEventImpl(Component.java:4776)
at java.awt.Container.dispatchEventImpl(Container.java:2142)
at java.awt.Component.dispatchEvent(Component.java:4604)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4209)
at java.awt.Container.dispatchEventImpl(Container.java:2128)
at java.awt.Window.dispatchEventImpl(Window.java:2492)
at java.awt.Component.dispatchEvent(Component.java:4604)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:690)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:697)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:520)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
at java.awt.Dialog$1.run(Dialog.java:1049)
at java.awt.Dialog$3.run(Dialog.java:1101)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1099)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:787)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:463)
at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1557)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1524)
at com.intellij.ide.actions.ShowSettingsUtilImpl._showSettingsDialog(ShowSettingsUtilImpl.java:72)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:54)
at com.intellij.ide.MacOSApplicationProvider$Worker$1.handlePreferences(MacOSApplicationProvider.java:101)
at com.apple.eawt._AppEventLegacyHandler$2.dispatchEvent(_AppEventLegacyHandler.java:90)
at com.apple.eawt._AppEventLegacyHandler.sendEventToEachListenerUntilHandled(_AppEventLegacyHandler.java:168)
at com.apple.eawt._AppEventLegacyHandler.handlePreferences(_AppEventLegacyHandler.java:88)
at com.apple.eawt._AppEventHandler$_PreferencesDispatcher.performUsing(_AppEventHandler.java:253)
at com.apple.eawt._AppEventHandler$_PreferencesDispatcher.performUsing(_AppEventHandler.java:244)
at com.apple.eawt._AppEventHandler$_AppEventDispatcher$1.run(_AppEventHandler.java:489)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:697)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Dash Plugin Error with Velocity

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.

wrong docset names with zeal

When I do a search in both Java and Python code in IntelliJ on Linux it doesn't find anything because the docset names in the query aren't the ones used by zeal.

For example if I search for datetime in a Python 2 project it opens zeal with this query:

python2,python,django,twisted,sphinx,flask,tornado,sqlalchemy,numpy,scipy,salt,cvp:datetime

the problem is that the space is missing on python 2. It works if I add a space before the 2, like this:

python 2,python,django,twisted,sphinx,flask,tornado,sqlalchemy,numpy,scipy,salt,cvp:datetime

Java has a similar problem. Here is a search for Map in a Java 8 project:

java8,java,javafx,grails,groovy,playjava,spring,cvj,processing,javadoc:Map

The "java8" docset should be "java se8" like this:

java se8,java,javafx,grails,groovy,playjava,spring,cvj,processing,javadoc:Map

Recognise Erlang

Hi @gdelmas, thanks a lot for your time of the plugin. Recognition support for the language Erlang would be much appreciated. Dash uses the prefix erl for the language and the IntelliJ plugin for Erlang is https://github.com/ignatov/intellij-erlang.

I'm not familiar with this library, but let me know if I can help anyhow.

Thanks again!

AngularJS

When looking up something in an AngularJS project (e.g. $scope), Dash only looks in JS or HTML documentation. How can I extend the search scope to the Angular docs?

Windows compatibility for Velocity

I was testing integration for Velocity, but it looks like the plugin will need to "launch" the URL a different way for Windows. The error it reports is:

Dash Plugin Error
Cannot run program "\usr\bin\open": CreateProcess error=2, The system cannot find the file specified

This was tested using a fresh install of PhpStorm 7.1.3 on a Windows 8.1 VM.

Context don't work for CMS/Framework project

If I'm in a PHP file in a Drupal or symfony project it will always open with the PHP context even I'm looking for a framework function.

The problem is we need "multi context" because I'm looking in the same file for PHP or framework specific function/class/[...]

Call Dash without activating it

IntelliJDashPlugin calls Dash by opening a dash-plugin:// URL. The problem is that the system forces Dash to become active when this URL is opened.

Currently, this is not an issue. However, a future update of Dash will add support for iOS remotes. While an iOS remote is connected, extensions are redirected to it directly and Dash on OS X is not shown at all. Unfortunately there's no way for me to prevent the system from activating Dash when you open the dash-plugin:// URL.

You currently open Dash by running:

openUri(request);

I have no idea what this does behind the scenes, but it should be the equivalent of this Terminal command:

open dash-plugin://query

Instead of that, you should perform the equivalent of this Terminal command:

open -g dash-plugin://query

The -g causes Dash to not get activated if it does not want to and the user experience is a lot better as the active app does not lose focus anymore. When you make the change, please make sure to test whether or not you need to escape special symbols (e.g. $).

It is safe to make this change as soon as possible (no need to wait for a Dash update), as the current version of Dash already knows to activate itself if it needs to.

Not searching in Android Studio using Zeal

I use this plugin on OSX when working in Android Studio, and it works great and is a boon to my life.

However, when I use it in Android Studio on Debian, I cannot get a search to perform. I've tried this using in both Ctrl+Shift+D and the menu button.

In either case, the status bar shows the message 'Searching "JAVA" docsets in Dash,' which might be an indicator that it's trying to run Dash instead of Zeal.

I thought perhaps it was searching for the wrong docset (Java instead of Android), so I installed the Java6 docset, and it still does not work.

Context aware search support

Version 3 will have context aware search. Beta 1 will only filter results for IntelliJ IDEA, Android Studio, WebStorm and PhpStorm. I hope the community can help create and complete the lists for RubyMine and PyCharm.

After searching, the IDE notification bar will show something like this: "Searching Dash docsets with language: XML (resolved to: *)"

This means there are no keywords registered for the language "XML". Keyword registrations can be found in KeywordLookup.java. Available keywords in a per filetype base are documented here. The idea of context aware search is to use as little keywords as possible for each context, to get better search results.

SQL language detection

The plugin doesn't appear to detect SQL language dialects, whether configured in Preferences > SQL Dialects, or through the "Inject Language/Reference" feature for a specific query in a file.

Example PHP file within PhpStorm:

<?php
$sql = 'SELECT * FROM user LIMIT 1';

Once I make PhpStorm aware that this is a MySQL query, I would expect Mac-Shift-D while cursor is on or highlighting the 'SELECT' keyword to target only "SELECT" in the MySQL docset. Instead, I get 'SELECT * FROM user LIMIT 1' in the PHP docset - the wrong docset, and the entire string instead of just the single keyword.

Of course, if the language injection is PostgreSQL rather than MySQL, it would be expected that the PostgreSQL docset would be used instead.

Can this be done? I'm hoping that since html/js/css can all be independently detected within a file, the same can be done for SQL languages.

Keyboard shortcut not behaving properly

Hi,

What I’ve found using the Intellij Idea plugin, is that the keyboard shortcut does not perform a search. It opens up Dash but nothing is entered into the search field. However, if I use the Tools menu option it works correctly. Any idea why this would be? I cannot tell what version I have of Dash. I have Mac OS 10.12 and Idea 2016.3. I appreciate any help you can provide.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.