Coder Social home page Coder Social logo

ih-reloaded's People

Contributors

olegych avatar

Stargazers

 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

Forkers

vkravets findepi

ih-reloaded's Issues

IllegalArgumentException

Phpstorm 7.1.

Wrong end: 16244; document length=5899; start=16240: Wrong end: 16244; document length=5899; start=16240
java.lang.IllegalArgumentException: Wrong end: 16244; document length=5899; start=16240
    at com.intellij.openapi.editor.impl.RangeMarkerImpl.<init>(RangeMarkerImpl.java:44)
    at com.intellij.openapi.editor.impl.RangeMarkerImpl.<init>(RangeMarkerImpl.java:37)
    at com.intellij.openapi.editor.impl.RangeHighlighterImpl.<init>(RangeHighlighterImpl.java:42)
    at com.intellij.openapi.editor.impl.MarkupModelImpl.addRangeHighlighterAndChangeAttributes(MarkupModelImpl.java:129)
    at com.intellij.openapi.editor.impl.MarkupModelImpl.addRangeHighlighter(MarkupModelImpl.java:170)
    at com.intellij.codeInsight.highlighting.HighlightManagerImpl.a(HighlightManagerImpl.java:132)
    at com.intellij.codeInsight.highlighting.HighlightManagerImpl.addOccurrenceHighlight(HighlightManagerImpl.java:206)
    at com.intellij.codeInsight.highlighting.HighlightManagerImpl.addRangeHighlight(HighlightManagerImpl.java:243)
    at com.intellij.codeInsight.highlighting.HighlightManagerImpl.addRangeHighlight(HighlightManagerImpl.java:222)
    at com.intellij.codeInsight.highlighting.HighlightUsagesHandler.highlightRanges(HighlightUsagesHandler.java:322)
    at com.intellij.codeInsight.highlighting.HighlightUsagesHandler.a(HighlightUsagesHandler.java:391)
    at com.intellij.codeInsight.highlighting.HighlightUsagesHandler.highlightReferences(HighlightUsagesHandler.java:257)
    at com.intellij.codeInsight.highlighting.HighlightUsagesHandler$DoHighlightRunnable.run(HighlightUsagesHandler.java:212)
    at com.intellij.find.findUsages.PsiElement2UsageTargetAdapter.highlightUsages(PsiElement2UsageTargetAdapter.java:142)
    at com.intellij.codeInsight.highlighting.HighlightUsagesHandler.invoke(HighlightUsagesHandler.java:132)
    at com.intellij.codeInsight.highlighting.actions.HighlightUsagesAction$1.run(HighlightUsagesAction.java:58)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:85)
    at com.intellij.codeInsight.highlighting.actions.HighlightUsagesAction.actionPerformed(HighlightUsagesAction.java:51)
    at com.olegych.ihr.actions.BaseIdentifierNavigationAction.invokeAction(BaseIdentifierNavigationAction.java:56)
    at com.olegych.ihr.actions.BaseIdentifierNavigationAction.highlight(BaseIdentifierNavigationAction.java:52)
    at com.olegych.ihr.actions.BaseIdentifierNavigationAction.navigate(BaseIdentifierNavigationAction.java:39)
    at com.olegych.ihr.actions.BaseIdentifierNavigationAction.actionPerformed(BaseIdentifierNavigationAction.java:24)
    at com.olegych.ihr.actions.NextIdentifierAction.actionPerformed(NextIdentifierAction.java:6)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:564)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:611)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:463)
    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)



java.lang.IllegalArgumentException: Wrong end: 16244; document length=5899; start=16240
    at com.intellij.openapi.editor.impl.RangeMarkerImpl.<init>(RangeMarkerImpl.java:44)
    at com.intellij.openapi.editor.impl.RangeMarkerImpl.<init>(RangeMarkerImpl.java:37)
    at com.intellij.openapi.editor.impl.RangeHighlighterImpl.<init>(RangeHighlighterImpl.java:42)
    at com.intellij.openapi.editor.impl.MarkupModelImpl.addRangeHighlighterAndChangeAttributes(MarkupModelImpl.java:129)
    at com.intellij.openapi.editor.impl.MarkupModelImpl.addRangeHighlighter(MarkupModelImpl.java:170)
    at com.intellij.codeInsight.highlighting.HighlightManagerImpl.a(HighlightManagerImpl.java:132)
    at com.intellij.codeInsight.highlighting.HighlightManagerImpl.addOccurrenceHighlight(HighlightManagerImpl.java:206)
    at com.intellij.codeInsight.highlighting.HighlightManagerImpl.addRangeHighlight(HighlightManagerImpl.java:243)
    at com.intellij.codeInsight.highlighting.HighlightManagerImpl.addRangeHighlight(HighlightManagerImpl.java:222)
    at com.intellij.codeInsight.highlighting.HighlightUsagesHandler.highlightRanges(HighlightUsagesHandler.java:322)
    at com.intellij.codeInsight.highlighting.HighlightUsagesHandler.a(HighlightUsagesHandler.java:391)
    at com.intellij.codeInsight.highlighting.HighlightUsagesHandler.highlightReferences(HighlightUsagesHandler.java:257)
    at com.intellij.codeInsight.highlighting.HighlightUsagesHandler$DoHighlightRunnable.run(HighlightUsagesHandler.java:212)
    at com.intellij.find.findUsages.PsiElement2UsageTargetAdapter.highlightUsages(PsiElement2UsageTargetAdapter.java:142)
    at com.intellij.codeInsight.highlighting.HighlightUsagesHandler.invoke(HighlightUsagesHandler.java:132)
    at com.intellij.codeInsight.highlighting.actions.HighlightUsagesAction$1.run(HighlightUsagesAction.java:58)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:85)
    at com.intellij.codeInsight.highlighting.actions.HighlightUsagesAction.actionPerformed(HighlightUsagesAction.java:51)
    at com.olegych.ihr.actions.BaseIdentifierNavigationAction.invokeAction(BaseIdentifierNavigationAction.java:56)
    at com.olegych.ihr.actions.BaseIdentifierNavigationAction.highlight(BaseIdentifierNavigationAction.java:52)
    at com.olegych.ihr.actions.BaseIdentifierNavigationAction.navigate(BaseIdentifierNavigationAction.java:39)
    at com.olegych.ihr.actions.BaseIdentifierNavigationAction.actionPerformed(BaseIdentifierNavigationAction.java:24)
    at com.olegych.ihr.actions.NextIdentifierAction.actionPerformed(NextIdentifierAction.java:6)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:564)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:611)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:463)
    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)

Move to the next/previous identifier occurence without invoking 'highlight usages in file' action (or turn off the added highlits)

Hi!

Current implementation of Identifier Highlighter seems to invoke 'highlight usages in file' action which (when 'highlight usages of element at caret' is on) causes two (for me) unpleasant effects:

  1. the highlight 'darkens' when alt + shift + up/down is pressed
  2. the highlight persists even after caret moves out of the identifier

As a workaround, I tried to disable background color for search results, but this affects search usages as well (which is hard to deal with :))

It would be great if the plugin could somehow only use the search results and navigate through them, without automatically turning on the search highlights. (I think that's the way it worked in IDEA < 10, with Identifier Highlighter :))

Thanks in advance! :)
Artur

[Feature Request] also navigate to opening/closing brackets

Great plugin! Strange this is not included in the main IDE...

But one thing is missing, I think:
Navigating opening/closing block brackets.

Intellij provides such a feature by default.
One can configure these 4 separate keyboard shortcuts:

  • "Move Caret to Code Block End"
  • "Move Caret to Code Block End with Selection"
  • "Move Caret to Code Block Begin"
  • "Move Caret to Code Block Begin with Selection"

The problem:
These are 2-4 additional keyboard shortcuts to set and remember.

The Solution:
I think at least 2 of these features could be integrated (optionally) in the IdentifierHighlighter plugin, reusing the same keyboard shortcuts:
Allow the existing plugin keyboard shortcuts (optionally?) to also navigate from an opening bracket to the corresponding closing bracket or vice versa, when highlighted.
This would make the plugin more versatile and handy, and I can't think of any negative effects when implemented.

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.