Giter Club home page Giter Club logo

intellij-rainbow-brackets's People

Contributors

alexsey avatar codacy-badger avatar davymont avatar dependabot-preview[bot] avatar dependabot[bot] avatar gazialankus avatar gitter-badger avatar grandmother avatar imgbot[bot] avatar imgbotapp avatar intellij-rainbow-brackets avatar izhangzhihao avatar k163377 avatar keeganwitt avatar mergify[bot] avatar mpsijm avatar onisuly avatar richardfearn avatar viatorus avatar yiiguxing 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

intellij-rainbow-brackets's Issues

The closing brackets or keywords are not highlighted

Your programming language

Ruby

Expected Behavior

  • The closing brackets or keywords should be highlighted correctly

Current Behavior

  • The closing brackets or keywords are not highlighted

signup_modal rb core 2018-05-07 13-59-17

Your Environment

  • Plugin version: 5.2
  • IDE & Operating System version, comment your env as below(go to "About IntelliJ IDEA" -> click the "copy" icon):
RubyMine 2018.1.1
Build #RM-181.4445.97, built on April 11, 2018
Licensed to Shunwen Hsiao
Subscription is active until February 4, 2019
JRE: 1.8.0_152-release-1136-b27 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.4

Red color is reserved for errors

This is not a duplicate of #18
I don't suggest that colors should be configurable.

I think the red color (and colors very similiar to red like dark pink, dark magenta etc.) should be excluded from all color palettes since red is reserved for errors and red bracket is actually perceived as error

  • Plugin version: 5.0-RC1

Add JSX (React) Support

Expected Behavior

Please add support for JSX (React) highlighting
Intro to React JSX

Current Behavior

  • HTML tags within a JSX expression doesn't have bracket highlighting.

Code snippet for reproducing

const element = ( <div> <h1>Hello, world!</h1> </div> );

Your Environment

  • Plugin version: 5.0 RC3
  • IDEA version: Rider 2017.3.1
  • Operating System and version: Windows 10

Same color if/else/for/while/switch statement's parentheses and its first curly brackets

You should Star this repo before you create a issue, thanks for your support 😁
Done!

Expected Behavior

  • The first curly brackets should have the same color as the parentheses:
    image
    (screenshot from VS Code)

Current Behavior

  • The first curly brackets have a different color from the parentheses:
    image
    (screenshot from WebStorm)

Possible Solution

The plugin could keep count of the block-level and use the same color for each level. In the example the yellow block-level started with ( and was closed with ) so the next set of braces are at the same block-level, thus can reuse the yellow color.

Or perhaps it's easier to just hardcode this rule for these type of statements.

Code snippet for reproduce (for bugs)

if (foo === "bar") {
  // curly braces get the same color as the parentheses
}

Your Environment

  • Plugin version: 5.0-RC3
  • IDEA version: WebStorm 2018.1 EAP, WS-181.4096.25, built on March 8, 2018
  • Operating System and version: macOS 10.13.x

连续的引号遇到html字符串时渲染颜色出错

Your programming language

Javascript

Current Behavior

好像当连续的引号遇到html字符串的时候,渲染颜色出错。
image

Code snippet for reproduce (for bugs)

Please provide code snippet

var a = ''+''+''+""+""+'<li></li>';
a = ''+''+''+""+"()"+'<li></li>';
a = ''+''+'('+""+""+'<li></li>';
a = ''+"<li></li>";

Your Environment

  • Plugin version: 5.0-RC4
  • IDE & Operating System version, comment your env as below(go to "About IntelliJ IDEA" -> click the "copy" icon):
PhpStorm 2017.3.6
Build #PS-173.4674.46, built on March 16, 2018
JRE: 1.8.0_152-release-1024-b15 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

Flat out all text other than brackets on key press.

When you have a lot of colors in the editor, the brackets are still hard to match. A good solution should be to gray out all the text other than the brackets on a key press (or when you have mismatched parentheses which is primary when it's needed).

Red brackets feel uncomfortable

Whenever I see red brackets or parenthesis in my code, I feel that I might have made a mistake.
It really confuses me sometimes and make the code look ugly.

Please consider remove the red color from the rainbow.

Not working for PHP sources

I'm working on PhpStorm 2017.3.3 and Ubuntu. I can see javascript and json files with rainbox brackets working just fine, but nothing on PHP sources. Braces and stuff all appear white, as per my current theme.

I'm in Rainbow Brackets 3.1.

image

Performance issue

Expected Behavior

  • Everything running smooth

Current Behavior

  • CPU rising to 100% when editing files with +2700 lines (like .less, .js,...)

Possible Solution

Not obligatory, but suggest a fix/reason for the bug, or ideas how to implement the addition or change

Code snippet for reproduce (for bugs)

Provide code snippet

Your Environment

  • Plugin version: 3.1.1
  • IDEA version: 2017.3.4
  • Operating System and version: macOS 10.13.3

Flashes of indexation every few seconds even while idle

Your programming language

Python/JSX

Expected Behavior

Indexation at plugin install time, then dynamic coloring when typing, and no "white flashes".

Current Behavior

Every few seconds, most of the syntactic coloration disappears then comes back, even while idle. This is very distracting and kind of a deal breaker.
Performance itself is fine.

Your Environment

  • Plugin version: 5.0
  • IDE & Operating System version, comment your env as below(go to "About IntelliJ IDEA" -> click the "copy" icon):
PyCharm 2018.1 (Professional Edition)
Build #PY-181.4203.547, built on March 26, 2018
Licensed to XXXXXX / Raphaël Gomès
Subscription is active until June 23, 2018
JRE: 1.8.0_152-release-1136-b20 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.8.0-53-generic

Exception in v5.7

Your programming language

PHP

Expected Behavior

No exceptions.

Current Behavior

When holding down cmd to navigate to a definition, the IDE locks up for a second and once it comes back, there is an exception with the message: org/jetbrains/kotlin/psi/psiUtil/PsiUtilsKt and stack trace:

org/jetbrains/kotlin/psi/psiUtil/PsiUtilsKt
java.lang.NoClassDefFoundError: org/jetbrains/kotlin/psi/psiUtil/PsiUtilsKt
	at com.github.izhangzhihao.rainbow.brackets.RainbowInfo.containsOffset(RainbowInfo.kt:38)
	at com.github.izhangzhihao.rainbow.brackets.CtrlHandler$Companion.getRainbowInfo(CtrlHandler.kt:118)
	at com.github.izhangzhihao.rainbow.brackets.CtrlHandler$Companion.findRainbowInfoAt(CtrlHandler.kt:110)
	at com.github.izhangzhihao.rainbow.brackets.CtrlHandler$Companion.access$findRainbowInfoAt(CtrlHandler.kt:97)
	at com.github.izhangzhihao.rainbow.brackets.CtrlHandler.addHighlightAt(CtrlHandler.kt:65)
	at com.github.izhangzhihao.rainbow.brackets.CtrlHandler.onKeyPressed(CtrlHandler.kt:50)
	at com.github.izhangzhihao.rainbow.brackets.EditorEventActionManager$EventListener.keyPressed(EditorEventActionManager.kt:70)
	at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:250)
	at java.awt.Component.processKeyEvent(Component.java:6506)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2833)
	at java.awt.Component.processEvent(Component.java:6325)
	at java.awt.Container.processEvent(Container.java:2237)
	at java.awt.Component.dispatchEventImpl(Component.java:4903)
	at java.awt.Container.dispatchEventImpl(Container.java:2295)
	at java.awt.Component.dispatchEvent(Component.java:4725)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
	at com.intellij.ide.IdeKeyboardFocusManager.dispatchEvent(IdeKeyboardFocusManager.java:27)
	at java.awt.Component.dispatchEventImpl(Component.java:4774)
	at java.awt.Container.dispatchEventImpl(Container.java:2295)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4725)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
	at java.awt.EventQueue.access$500(EventQueue.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:715)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
	at java.awt.EventQueue$4.run(EventQueue.java:737)
	at java.awt.EventQueue$4.run(EventQueue.java:735)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
	at com.intellij.ide.IdeEventQueue.p(IdeEventQueue.java:779)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:698)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:395)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.ClassNotFoundException: org.jetbrains.kotlin.psi.psiUtil.PsiUtilsKt PluginClassLoader[izhangzhihao.rainbow.brackets, 5.7] com.intellij.ide.plugins.cl.PluginClassLoader@36d96be
	at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:63)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 46 more

Code snippet for reproduce (for bugs)

Please provide code snippet

/** @var Collection $roles */
$roles = $this->roles->all()->load('users')->reject(function (RoleInterface $role) {
    return in_array($role->getRoleSlug(), [
        'admin',
        'client',
    ]);
});

Your Environment

  • Plugin version: v5.7
  • IDE & Operating System version, comment your env as below(go to "About IntelliJ IDEA" -> click the "copy" icon):
PhpStorm 2018.1.3
Build #PS-181.4892.97, built on May 9, 2018
JRE: 1.8.0_152-release-1136-b38 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.4

NOTE: If you are reporting a performance issue, please comment your hardware env like this:

iMac (21.5-inch, Mid 2014)
CPU: 1.4 GHz Intel Core i5
Total Number of Cores: 4
Memory: 8 GB 1600 MHz DDR3
Storage: 256GB SATA SSD
Graphics: Intel HD Graphics 5000 1536 MB

Preview image become unreadable

Expected Behavior

Preview image should be representative

Current Behavior

Preview image is a mess (see screens)

Code snippet for reproduce (for bugs)

preview update
preview plugin

Your Environment

  • Plugin version: 5.2
  • IDE & Operating System version, comment your env as below(go to "About IntelliJ IDEA" -> click the "copy" icon):
WebStorm 2018.1.2
Build #WS-181.4668.60, built on April 23, 2018
Licensed to Oleksii Bobyr
Subscription is active until November 2, 2018
JRE: 1.8.0_152-release-991-b1 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

[auto-generated:992328850] auto generated feedback

  • Plugin Name: Rainbow Brackets
  • Plugin Version: 5.7.1
  • OS Name: Mac OS X
  • Java Version: 1.8.0_144
  • App Name: IDEA
  • App Full Name: IntelliJ IDEA
  • Last Action:
java.lang.RuntimeException: auto generated feedback
	at com.github.izhangzhihao.rainbow.brackets.action.AbstractScopeHighlightingAction.update(AbstractScopeHighlightingAction.kt:29)
	at com.intellij.openapi.actionSystem.AnAction.beforeActionPerformedUpdate(AnAction.java:240)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:129)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:599)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:479)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:213)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:621)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Change Highlight Current Scope Keymap

I use Ctrl in IntelliJ all the time for quite a few operations. Having the scope flash different colours is very off putting when coding. It would be nice if we could remap the Key to something else. If you can get your plugin to register a Keymap in standard IntelliJ then we could change it to whatever suites the programmer.

For now, I am going to disable this feature.
Thank you for the awesome project. Very helpful when coding Flutter/Dart.

Your Environment

  • Plugin version: 5.7.1
  • IDE & Operating System version, comment your env as below(go to "About IntelliJ IDEA" -> click the "copy" icon):
Build #IU-181.4892.42, built on May 8, 2018
JRE: 1.8.0_152-release-1136-b38 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

Rainbow brackets not shown for Dart

Hello! Even after the application of the new "show bracket highlighting for unsupported languages" option, the rainbow bracket effects are not seen in .dart files. WebStorm 2017.3 Build #WS-173.3727.108

Wrong bracket colorization based on spaces

Consider JS code

`open (${f})`

CB: Last round bracket is colored blue with rainbow-brackets
1

EB: Last round bracket should be green the same as the first one and should not be colorized with rainbow-brackets at all because it's a plane text

BTW:

`open (${f} )`

Is working fine. So the issue is about wrong space-based recognition of scopes
2

if elsif else

Your issue may already be reported!
Please search on the issue track before creating one.

Expected Behavior

  • When using if elsif else end blocks in ruby, the else should be styled the same color

Current Behavior

  • "elsif" & "else" is colored the original IDE color, not matching the colored "if" and "end"

Code snippet for reproduce (for bugs)

def foo
if 1 == 1
puts 'true'
elsif 1 != 1
puts 'false'
else
puts 'false'
end
end

Your Environment

  • Plugin version: 5.0 RC3
  • IDEA version: 2017.3.3
  • Operating System and version: Mac High Sierra

Same level square brackets has different color

Your programming language

JavaScript

Expected Behavior

Same level square brackets on line 2 must have the same color

Current Behavior

Same level square brackets on line 2 have different color

Code snippet for reproduce (for bugs)

const a = [[0]]
const a[0][0]

sketch

Your Environment

  • Plugin version: 5.0
  • IDE & Operating System version, comment your env as below(go to "About IntelliJ IDEA" -> click the "copy" icon):
WebStorm 2018.1
Build #WS-181.4203.535, built on March 22, 2018
Licensed to Oleksii Bobyr
Subscription is active until November 2, 2018
JRE: 1.8.0_152-release-991-b1 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

Inconsistent colors

Awesome plugin! Thank you.

Very minor issue:
image

I believe either all four of them should be the same (purple) color, or all four color should be different.

This is very minor. Feel free to close. 👍

Support for JSX syntax

It would be really nice to have JSX syntax supported, are there any plans to implement it?

Same level brackets should have same color

Consider JS code

const _ = require('lodash') || false
const moment = require('moment')

Current behavior:
Top bracket is green and bottom is yellow
rainbow_color_bug

Expected behavior:
Both brackets should be yellow

Options are dropped after update

Your programming language

JavaScript

Expected Behavior

Options should not get dropped after update

Current Behavior

After update from v5.0 to v5.1, all options checkpoints become checked

I think I was having "Do NOT rainbowify brackets without content" unchecked

  • Plugin version: 5.1
  • IDE & Operating System version, comment your env as below(go to "About IntelliJ IDEA" -> click the "copy" icon):
WebStorm 2018.1.2
Build #WS-181.4668.60, built on April 23, 2018
Licensed to Oleksii Bobyr
Subscription is active until November 2, 2018
JRE: 1.8.0_152-release-991-b1 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

I'm only 90% sure that I was having some options unchecked but I don't know how to reproduce the issue. I'm going to be specifically attentive to 5.2 updates and write here if it would get confirmed

Add version to the Settings page

There should be someplace to see the version of the installed plugin. At least to fill the form below :) I think that Settings page is a good place for that

  • Plugin version: 5.0.0-RC2
  • IDEA version: WebStorm 2017.3.4
  • Operating System and version: Windows 10

Add support of customization of colorization level

Colorization level may looks like this:

  • #35 do not colorize brackets without content
  • do not colorize method()
  • colorize method(param)
  • #233 do not colorize brackets without another brackets inside
  • do not colorize method(param)
  • colorize external brackets of method(array[3])
  • do not colorize brackets without another brackets of the same type inside
  • do not colorize method(array[3])
  • colorize external brackets of method(new Entity())

And separately

  • always colorize multi-line brackets (regardless of colorization level)
  • do not colorize ['firstName', 'secondName', 'city, 'address']
  • always colorize
[
  'firstName', 'secondName',
  'city', 'address'
]
    • sub-option not apply to {...} - ex. if always colorize multi-line brackets is on but colorization level is not forcing to colorize
function f () {
   return 1
}

than {...} should not be colorized

Enablement of round brackets enables all but angle brackets

STR

  1. Disable all brackets but round
    settings
  2. Look at some code with different types of brackets
    code

Expected Behavior

Only round brackets should be colored

Current Behavior

All but angle brackets are colored

  • Plugin version: 5.0.0-RC2
  • IDEA version: WebStorm 2017.3.4
  • Operating System and version: Windows 10

[auto-generated:-2118765078] cannot create configurable component: Can't find resource for bundle java.util.PropertyResourceBundle, key version

  • Plugin Name: Rainbow Brackets
  • Plugin Version: 5.8
  • OS Name: Linux
  • Java Version: 1.8.0_152-release
  • App Name: IDEA
  • App Full Name: IntelliJ IDEA
  • Last Action: GotoAction
java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key version
	at java.util.ResourceBundle.getObject(ResourceBundle.java:450)
	at java.util.ResourceBundle.getString(ResourceBundle.java:407)
	at com.github.izhangzhihao.rainbow.brackets.settings.form.RainbowSettingsForm.$$$setupUI$$$(RainbowSettingsForm.kt)
	at com.github.izhangzhihao.rainbow.brackets.settings.form.RainbowSettingsForm.<init>(RainbowSettingsForm.kt:16)
	at com.github.izhangzhihao.rainbow.brackets.settings.RainbowConfigurable.createComponent(RainbowConfigurable.kt:13)
	at com.intellij.openapi.options.ex.ConfigurableWrapper.createComponent(ConfigurableWrapper.java:163)
	at com.intellij.openapi.options.ex.ConfigurableCardPanel.lambda$createConfigurableComponent$0(ConfigurableCardPanel.java:73)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:927)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:47)
	at com.intellij.openapi.options.ex.ConfigurableCardPanel.createConfigurableComponent(ConfigurableCardPanel.java:69)
	at com.intellij.openapi.options.ex.ConfigurableCardPanel.create(ConfigurableCardPanel.java:55)
	at com.intellij.openapi.options.newEditor.ConfigurableEditor$1.create(ConfigurableEditor.java:73)
	at com.intellij.openapi.options.newEditor.ConfigurableEditor$1.create(ConfigurableEditor.java:70)
	at com.intellij.ui.CardLayoutPanel.createValue(CardLayoutPanel.java:88)
	at com.intellij.ui.CardLayoutPanel.select(CardLayoutPanel.java:116)
	at com.intellij.ui.CardLayoutPanel.lambda$null$0(CardLayoutPanel.java:132)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:447)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:431)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:415)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
	at java.awt.EventQueue.access$500(EventQueue.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:715)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:779)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:720)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:395)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
	at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190)
	at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235)
	at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233)
	at java.awt.Dialog.show(Dialog.java:1077)
	at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:694)
	at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:426)
	at com.intellij.openapi.ui.DialogWrapper.invokeShow(DialogWrapper.java:1688)
	at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1637)
	at com.intellij.openapi.options.newEditor.SettingsDialog.lambda$show$0(SettingsDialog.java:69)
	at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
	at com.intellij.openapi.application.TransactionGuardImpl.submitTransactionAndWait(TransactionGuardImpl.java:153)
	at com.intellij.openapi.options.newEditor.SettingsDialog.show(SettingsDialog.java:69)
	at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:154)
	at com.intellij.ide.actions.GotoActionAction.lambda$openOptionOrPerformAction$4(GotoActionAction.java:293)
	at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
	at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransaction$1(TransactionGuardImpl.java:111)
	at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:120)
	at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransactionLater$4(TransactionGuardImpl.java:271)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:447)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:431)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:415)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
	at java.awt.EventQueue.access$500(EventQueue.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:715)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:779)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:720)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:395)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Modified single quotes's color unnecessarily(jQuery)

Current Behavior

The last single quote's color had been changed by this plugin in every pairs single quotes.
开了插件后,每对单引号中的最后一单引号颜色被修改了。好像就jQuery选择器会这样。

Possible Solution

Not obligatory, but suggest a fix/reason for the bug, or ideas how to implement the addition or change

Code snippet for reproduce (for bugs)

  • Enabled this plugin (开启这个插件)

image
image
image

  • Disabled or uninstalled this plugin (禁用或者卸载这个插件)

image
image
image

Your Environment

  • Plugin version: 5.0-RC3
  • IDEA version: I used PHPstorm under ver.2017.3.6
  • Operating System and version: win10 ver.1709 x64

JS字符串中HTML代码的问题

img
像上图的代码应该是要被着色才对。事实上插件也已经向IDE提交了着色信息了的,但IDE并没有着色,原因不明,猜测应该是被覆盖了。
如果指定字符串内容的语言为XML便能着色了:
img2
或者取消HTML Code的默认颜色也能着色:
img3

关于这个问题,可以向JetBrains寻求帮助。

cool idea, super slow on my code base

Your programming language

Python, JS

Your Environment

  • Plugin version: 5.0
  • IDE & Operating System version, comment your env as below(go to "About IntelliJ IDEA" -> click the "copy" icon):

PyCharm 2017.3.3 (Professional Edition)
Build #PY-173.4301.16, built on January 11, 2018
Licensed to --------------------------------
Subscription is active until April 19, 2018
JRE: 1.8.0_152-release-1024-b11 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.13.3

Pycharm just takes seconds, sometimes dozens of seconds, to update.
I use eslint for auto-linting, maybe it conflicts with this plugin.

Enable option to specify scope highlighting and text flattening effect duration

Expected Behavior

  • If you're suggesting a change/improvement, tell us how it should work
    There's an option in the settings menu (Other Settings/Rainbow Brackets) that allows the user to determine for how long does the highlighting/flattening effect stay in place after being activated. I would expect to be the options: "Do not remove effect until clicking", "Remove after releasing Ctrl/Alt key" and "Remove effect after X milliseconds" to be available.

Current Behavior

  • If suggesting a change/improvement, explain the difference from current behavior
    Currently the highlighting/flattening effect disappears after release the Ctrl or Alt key, respectively.

[5.0-RC0] Settings no longer works

Consider settings with disabled squiggly brackets:
conf
But in the code they are still colorized:
bug

And BTW some of them are white. Other brackets are not using white. Is it ok?

Brackets in MXML attribute value

MXML language

Wrong hightlighting
screenshot_274

<?xml version="1.0"?>
<mx:Box
    xmlns:mx="http://www.adobe.com/2006/mxml"
    width="{800}"
    height="{600}"
/>

Plugin version: 5.2

IntelliJ IDEA 2017.3.4 (Ultimate Edition)
Build #IU-173.4548.28, built on January 30, 2018
Windows 7 6.1

Brackets in unsupported languages not consistent with restart

When restarting PHPStorm while having a smarty template file open (not sure if other unsupported languages act the same, couldn't test it yet), after the restart the colouring of squiggly and normal brackets got lost. When i restarted while having another file open, everything worked fine.

this was my code i tested this with

<div class="lp-dialog">
  {if $hasTags}

  {/if}
</div>

When i first created this file, the curly braces got coloured in correctly as well as the html tags, but after restarting, the curly braces lost their colouring, and not even a restart of phpstorm changed that. But, when i closed the file or opened a tab with another file (not another smarty template, bug consists then) before restarting, they got coloured in correctly again.

Ps. The brackets on the closing 'if' are slightly bugged. Depending on if there's a space between the slash and the bracket, only the left or right one gets coloured, never both. But that's probably a different issue.

java.lang.IllegalArgumentException in PhpStorm

Hello! Few times I receive this issue in PhpStorm.

Wrong end: 5176; document length=5162; start=692
java.lang.IllegalArgumentException: Wrong end: 5176; document length=5162; start=692
	at com.intellij.openapi.editor.impl.RangeMarkerImpl.<init>(RangeMarkerImpl.java:49)
	at com.intellij.openapi.editor.impl.RangeMarkerImpl.<init>(RangeMarkerImpl.java:42)
	at com.intellij.openapi.editor.impl.RangeHighlighterImpl.<init>(RangeHighlighterImpl.java:68)
	at com.intellij.openapi.editor.impl.MarkupModelImpl.addRangeHighlighterAndChangeAttributes(MarkupModelImpl.java:115)
	at com.intellij.openapi.editor.impl.MarkupModelImpl.addRangeHighlighter(MarkupModelImpl.java:166)
	at com.intellij.codeInsight.highlighting.HighlightManagerImpl.a(HighlightManagerImpl.java:97)
	at com.intellij.codeInsight.highlighting.HighlightManagerImpl.addOccurrenceHighlight(HighlightManagerImpl.java:170)
	at com.intellij.codeInsight.highlighting.HighlightManagerImpl.addRangeHighlight(HighlightManagerImpl.java:208)
	at com.github.izhangzhihao.rainbow.brackets.CtrlHandler.addHighlightAt(CtrlHandler.kt:73)
	at com.github.izhangzhihao.rainbow.brackets.CtrlHandler.onKeyPressed(CtrlHandler.kt:50)
	at com.github.izhangzhihao.rainbow.brackets.EditorEventActionManager$EventListener.keyPressed(EditorEventActionManager.kt:70)
	at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:250)
	at java.awt.Component.processKeyEvent(Component.java:6506)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2833)
	at java.awt.Component.processEvent(Component.java:6325)
	at java.awt.Container.processEvent(Container.java:2237)
	at java.awt.Component.dispatchEventImpl(Component.java:4903)
	at java.awt.Container.dispatchEventImpl(Container.java:2295)
	at java.awt.Component.dispatchEvent(Component.java:4725)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
	at com.intellij.ide.IdeKeyboardFocusManager.dispatchEvent(IdeKeyboardFocusManager.java:27)
	at java.awt.Component.dispatchEventImpl(Component.java:4774)
	at java.awt.Container.dispatchEventImpl(Container.java:2295)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4725)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
	at java.awt.EventQueue.access$500(EventQueue.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:715)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
	at java.awt.EventQueue$4.run(EventQueue.java:737)
	at java.awt.EventQueue$4.run(EventQueue.java:735)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
	at com.intellij.ide.IdeEventQueue.p(IdeEventQueue.java:779)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:698)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:395)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Curly Braces Color Issue with Laravel Blade

Your programming language

PHP Laravel Blade

Current Behavior

rainbow-brackets-laravel-blade
Color of curly braces is not matching correctly. Seems to consider the $ as the first curly brace.

Expected Behavior

The $ should not change colors. First inner curly brace should.

Code snippet for reproduce (for bugs)

<small>Written on {{$post->created_at}}</small>

Your Environment

  • Plugin version:
    5.5

  • IDE & Operating System version, comment your env as below(go to "About IntelliJ IDEA" -> click the "copy" icon):
    IntelliJ IDEA 2018.1.3 (Ultimate Edition)
    Build #IU-181.4892.42, built on May 8, 2018
    Licensed to Dave Williams
    Subscription is active until March 9, 2019
    JRE: 1.8.0_152-release-1136-b38 amd64
    JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
    Windows 10 10.0

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.