Giter Site home page Giter Site logo

dima74 / intellij-indent-rainbow Goto Github PK

View Code? Open in Web Editor NEW
61.0 5.0 13.0 1.23 MB

Extension which shows indentation with a faint rainbow colored background to make them more readable

Home Page: https://plugins.jetbrains.com/plugin/13308-indent-rainbow/

License: GNU General Public License v3.0

Kotlin 97.08% Python 2.92%
intellij rainbow indent-rainbow intellij-plugin indentation

intellij-indent-rainbow's Introduction

Indent-Rainbow

Plugin version Plugin downloads GitHub issues Build

A simple extension to make indentation more readable

This extension colorizes the indentation in front of your text alternating six different colors on each step.

Get it here: JetBrains Plugins Repository

Example

Change colors

There are two options to change indent colors in Settings | Indent Rainbow:

  1. You can change indent colors opacity using corresponding slider

  2. You can configure each color (the error color and six indent colors) by specifying custom color palette

Settings page

Feedback

Please welcome to submit issues and feature requests!

Acknowledgment

Our plugin was inspired by Indent-Rainbow plugin for Visual Studio Code.

intellij-indent-rainbow's People

Contributors

bv-torrent avatar dima74 avatar firsttimeinforever 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

Watchers

 avatar  avatar  avatar  avatar  avatar

intellij-indent-rainbow's Issues

Some exceptions reported by intellij-rainbow-brackets

  • Plugin Name:
  • Plugin Version: 6.5
  • OS Name: Mac OS X
  • OS Version: 10.15.4
  • Java Version: 11.0.7
  • App Name: WebStorm
  • App Full Name: WebStorm
  • Is Snapshot: false
  • App Build: WS-201.7846.79
  • StackTrace:
java.lang.ExceptionInInitializerError
	at indent.rainbow.annotators.IrAnnotatorProxy.annotate(IrAnnotatorProxy.kt:15)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.runAnnotators(DefaultHighlightVisitor.java:129)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:110)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.runVisitors(GeneralHighlightingPass.java:346)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$collectHighlights$5(GeneralHighlightingPass.java:280)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:306)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$analyzeByVisitors$6(GeneralHighlightingPass.java:309)
	at com.github.izhangzhihao.rainbow.brackets.visitor.RainbowHighlightVisitor.analyze(RainbowHighlightVisitor.kt:35)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:309)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$analyzeByVisitors$6(GeneralHighlightingPass.java:309)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:93)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:309)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectHighlights(GeneralHighlightingPass.java:277)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:222)
	at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:84)
	at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:52)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:442)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1106)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:435)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:627)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:572)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:434)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:410)
	at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:168)
	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:168)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:408)
	at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:171)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
Caused by: java.lang.IllegalStateException: ServiceManager.getService(IrConfig::class.java) must not be null
	at indent.rainbow.settings.IrConfig$Companion.getINSTANCE(IrConfig.kt:25)
	at indent.rainbow.annotators.IrSimpleAnnotator.<clinit>(IrSimpleAnnotator.kt:71)
	... 33 more

[TypeScript] Method parameter destructuring

Intent rainbow does not seem to like when I destructure typed parameters on methods in TypeScript

image

The indentation is configured as two spaces, and you can see a bright red background if any space is added at the start of the line after the open brackets and before the closing brackets {}

This is verified in Rider on windows 10, but I remember it happening in macOS and other jetbrains products as well

F# support

F# doesn't seem to work with the plugin. Would it be possible to have it look at indentation only and colorize based on that? F# shouldn't be different from any other language in that regard?

log4j issue

At my company all machines are scanned for software "containing" the log4j vulnerability. This plugin is highlighted because it is using sentry in version 1.7.30.

Is there any update planned with a newer sentry version?

Incapable of installing

2022.0.1 - 2022.1.1
Click the install button from the plugins page and nothing happens, after numerous restarts of Pycharm, it shows as uninstalled each time I return to the plugins section in settings.

Different indent size in one file

Thanks for the plugin, but I have a problem with vue SFC file.
image
In the code above, I have 4 spaces for <template> and <style>, but 2 spaces for <script> tag, but the color still changes per 4 spaces in <script> tag.
The plugin is working good in .js file with 2 spaces indent size, but not in the file that with different indent size in different sections.

Disagreement between Indent Rainbow and PhpStorm with Twig

When using Twig, indent rainbow and phpStorm seem to not agree on the correct indentation :

IndentRainbowTwig
This is after re-formating my code. Apparently, for phpStorm inside a twig block you need to indent, but not for IR.

This is what IR wants :

IndentRainbowTwig2

Feature request - some kind of support for wrapped indentations

It will be great to have some sort of support for indentations appearing because of wrapping. Currently, they are reported/colored as errors which significantly reduces usability of otherwise great plugin.

I think it will be enough to allow the option to not color as error indentations which are by grater than the base indentation width by some multiplier.

Tnx.

Custom color scheme not working

Hi,
I used to disable the red error indent from "Color Scheme > Indent Rainbow" but it doesn't work with the new highlighter.
With the old one ("Use formatter highlighter in these files") it still works, but this highlighter doesn't work on empty lines, which makes it not as good.
It would be nice if the "Color Scheme" settings could work with the default highlighter.
Thank you for this great plugin.

Privacy

I'd like to use this plugin as it looks very useful, but in order to get it approved I need information on how it handles privacy.
Does it collect any personal information?
If so, what kind of data is collected and when is it collected?
Would also be great if you could add this to the documentation.

Thank you very much!

An exception occured in initializing

hi,

This error is my environments problem?
I use at RubyMine 2018.3.5 .

thanks.

annotator: indent.rainbow.IrExternalAnnotator@257e2af1 (class indent.rainbow.IrExternalAnnotator)

java.lang.NoClassDefFoundError: Could not initialize class indent.rainbow.IrColors
	at indent.rainbow.IrExternalAnnotatorImpl.annotate(IrExternalAnnotator.kt:97)
	at indent.rainbow.IrExternalAnnotatorImpl.highlight(IrExternalAnnotator.kt:87)
	at indent.rainbow.IrExternalAnnotatorImpl.apply(IrExternalAnnotator.kt:61)
	at indent.rainbow.IrExternalAnnotator.apply(IrExternalAnnotator.kt:32)
	at indent.rainbow.IrExternalAnnotator.apply(IrExternalAnnotator.kt:14)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doApply(ExternalToolPass.java:198)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass.access$700(ExternalToolPass.java:40)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$null$0(ExternalToolPass.java:162)
	at com.intellij.openapi.application.ReadAction.lambda$run$1(ReadAction.java:53)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:977)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:57)
	at com.intellij.openapi.application.ReadAction.run(ReadAction.java:53)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$run$1(ExternalToolPass.java:159)
	at com.intellij.openapi.progress.util.BackgroundTaskUtil.lambda$runUnderDisposeAwareIndicator$10(BackgroundTaskUtil.java:244)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$3(CoreProgressManager.java:180)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:582)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:87)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:180)
	at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:264)
	at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:243)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.run(ExternalToolPass.java:157)
	at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:336)
	at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:326)
	at com.intellij.util.ui.update.MergingUpdateQueue.lambda$flush$1(MergingUpdateQueue.java:276)
	at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:290)
	at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:245)
	at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:232)
	at com.intellij.util.Alarm$Request.runSafely(Alarm.java:356)
	at com.intellij.util.Alarm$Request.run(Alarm.java:343)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:228)
	at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:227)
	at com.intellij.util.concurrency.BoundedTaskExecutor.access$100(BoundedTaskExecutor.java:26)
	at com.intellij.util.concurrency.BoundedTaskExecutor$2$1.run(BoundedTaskExecutor.java:200)
	at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:229)
	at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:194)
	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)

My environment is:
image

In idea.log

2020-01-28 13:27:50,355 [ 107854]  ERROR - t.daemon.impl.ExternalToolPass - IdeaLoggingEvent[message=annotator: indent.rainbow.IrExternalAnnotator@257e2af1 (class indent.rainbow.IrExternalAnnotator), throwable=java.lang.NoClassDefFoundError: Could not initialize class indent.rainbow.IrColors
	at indent.rainbow.IrExternalAnnotatorImpl.annotate(IrExternalAnnotator.kt:97)
	at indent.rainbow.IrExternalAnnotatorImpl.highlight(IrExternalAnnotator.kt:87)
	at indent.rainbow.IrExternalAnnotatorImpl.apply(IrExternalAnnotator.kt:61)
	at indent.rainbow.IrExternalAnnotator.apply(IrExternalAnnotator.kt:32)
	at indent.rainbow.IrExternalAnnotator.apply(IrExternalAnnotator.kt:14)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doApply(ExternalToolPass.java:198)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass.access$700(ExternalToolPass.java:40)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$null$0(ExternalToolPass.java:162)
	at com.intellij.openapi.application.ReadAction.lambda$run$1(ReadAction.java:53)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:977)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:57)
	at com.intellij.openapi.application.ReadAction.run(ReadAction.java:53)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$run$1(ExternalToolPass.java:159)
	at com.intellij.openapi.progress.util.BackgroundTaskUtil.lambda$runUnderDisposeAwareIndicator$10(BackgroundTaskUtil.java:244)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$3(CoreProgressManager.java:180)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:582)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:87)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:180)
	at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:264)
	at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:243)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.run(ExternalToolPass.java:157)
	at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:336)
	at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:326)
	at com.intellij.util.ui.update.MergingUpdateQueue.lambda$flush$1(MergingUpdateQueue.java:276)
	at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:290)
	at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:245)
	at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:232)
	at com.intellij.util.Alarm$Request.runSafely(Alarm.java:356)
	at com.intellij.util.Alarm$Request.run(Alarm.java:343)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:228)
	at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:227)
	at com.intellij.util.concurrency.BoundedTaskExecutor.access$100(BoundedTaskExecutor.java:26)
	at com.intellij.util.concurrency.BoundedTaskExecutor$2$1.run(BoundedTaskExecutor.java:200)
	at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:229)
	at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:194)
	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)
] 

Add a toggle to show only inorrect indentation

Great plugin, but I use it mostly to get the color for incorrect indentation.

So I would suggest to add a toggle that would disable the normal coloring mode and enable just the incorrect indentation.
I know I can change the colors in settings and visually disable all other colorings but it won't save the added CPU usage of this plugin (e.g. when I scroll down a large file I can see how it slowly draws the rainbow indentation colors) hence the idea to have just a simple version with just the incorrect indent.

Configurable Colors

Thanks for this plugin; it's great. My main issue is that the colors are hard to see against my IDE background; is there a way to configure the colors so I can make then a little lighter or less opacity? Thanks!

start error

java.lang.ExceptionInInitializerError
	at indent.rainbow.IrFormatterIndentHelper$Companion.getInstance(IrIndentHelper.kt:123)
	at indent.rainbow.IrAnnotatorImpl$Companion.getInstance(IrAnnotatorImpl.kt:126)
	at indent.rainbow.annotators.IrFormatterIncrementalAnnotator.getOrCreateAnnotatorImpl(IrFormatterIncrementalAnnotator.kt:40)
	at indent.rainbow.annotators.IrFormatterIncrementalAnnotator.tryAnnotate(IrFormatterIncrementalAnnotator.kt:20)
	at indent.rainbow.annotators.IrAnnotatorProxy.annotate(IrAnnotatorProxy.kt:13)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.runAnnotators(DefaultHighlightVisitor.java:139)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:102)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.runVisitors(GeneralHighlightingPass.java:366)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$collectHighlights$5(GeneralHighlightingPass.java:298)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:325)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$analyzeByVisitors$6(GeneralHighlightingPass.java:328)
	at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.lambda$analyze$2(HighlightVisitorImpl.java:160)
	at com.intellij.codeInsight.daemon.impl.analysis.RefCountHolder.analyze(RefCountHolder.java:336)
	at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.analyze(HighlightVisitorImpl.java:159)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:328)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$analyzeByVisitors$6(GeneralHighlightingPass.java:328)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:86)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:328)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectHighlights(GeneralHighlightingPass.java:295)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:238)
	at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:83)
	at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:69)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:423)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1161)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:416)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:415)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:391)
	at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:147)
	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:222)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:389)
	at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:161)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.lang.NoSuchMethodException: com.intellij.formatting.FormatterImpl.buildProcessorAndWrapBlocks(com.intellij.formatting.FormattingModel, com.intellij.psi.codeStyle.CodeStyleSettings, com.intellij.psi.codeStyle.CommonCodeStyleSettings$IndentOptions, com.intellij.openapi.util.TextRange, int)
	at java.lang.Class.getDeclaredMethod(Class.java:2130)
	at indent.rainbow.FormatterImplHelper.<clinit>(IrIndentHelper.kt:138)
	... 38 more

Enable on files setting

How does Enable on files option work? I want the plugin to only work on *.py files and nothing else, however nothing that I put in this field actually works. Only * works, but on all files.

I tried *.py and py

Severe logspam due to calling a deprecated method

The plugin creates a massive amount of logspam in the system log (syslog) because it seems to be calling a deprecated method.

This error was reported 21260 times in just 2-3 hours.

I'm using linux, not sure if other OS are affected. This might possibly be the case since the error refers to some IntelliJ-Plugin-API.

Log-Entry:
Feb 4 13:05:38 my-hostname jetbrains-idea.desktop[7792]: 2022-02-04 13:05:38,200 [11086275] WARN - emon.impl.AnnotationHolderImpl - Exception 'com.intellij.diagnostic.PluginException: 'AnnotationHolder.createInfoAnnotation()' method (the call to which was found in class indent.rainbow.IrAnnotatorImpl) is slow, non-incremental and thus can cause unexpected behaviour (e.g. annoying blinking), is deprecated and will be removed soon. Please use `newAnnotation().create()` instead [Plugin: indent-rainbow.indent-rainbow]' was reported 21260 times

please restore `Never highlight indent as error(in red color)`

I remember the previous version, there is an option to disable the ERROR color to show

there are almost some wrapped long lines, eg. long parameter, long expression, which aligns to the top level. and intellij-indent-rainbow mark these line as ERROR indent.

the (Red) ERROR color makes me nervous :)
please restore the option.

AssertionError: indentSpaces: 2, tabSize: 4

plugin version: 1.4.0

java.lang.AssertionError: indentSpaces: 2, tabSize: 4
	at indent.rainbow.IrFormatterAnnotatorImpl.highlight(IrFormatterAnnotatorImpl.kt:55)
	at indent.rainbow.IrFormatterAnnotatorImpl.runForLine(IrFormatterAnnotatorImpl.kt:44)
	at indent.rainbow.IrFormatterAnnotatorImpl.runForLines(IrFormatterAnnotatorImpl.kt:30)
	at indent.rainbow.annotators.IrFormatterIncrementalAnnotator.annotate(IrFormatterIncrementalAnnotator.kt:25)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.runAnnotators(DefaultHighlightVisitor.java:129)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:110)
	at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass.lambda$runHighlightVisitorsForInjected$5(InjectedGeneralHighlightingPass.java:368)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:93)
	at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass.runHighlightVisitorsForInjected(InjectedGeneralHighlightingPass.java:365)
	at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass.addInjectedPsiHighlights(InjectedGeneralHighlightingPass.java:242)
	at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass.lambda$addInjectedPsiHighlights$4(InjectedGeneralHighlightingPass.java:205)
	at com.intellij.concurrency.JobLauncherImpl.lambda$null$2(JobLauncherImpl.java:125)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:625)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:570)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
	at com.intellij.concurrency.JobLauncherImpl.lambda$processImmediatelyIfTooFew$3(JobLauncherImpl.java:121)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:865)
	at com.intellij.concurrency.JobLauncherImpl.processImmediatelyIfTooFew(JobLauncherImpl.java:132)
	at com.intellij.concurrency.JobLauncherImpl.invokeConcurrentlyUnderProgress(JobLauncherImpl.java:40)
	at com.intellij.concurrency.JobLauncher.invokeConcurrentlyUnderProgress(JobLauncher.java:49)
	at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass.addInjectedPsiHighlights(InjectedGeneralHighlightingPass.java:204)
	at com.intellij.codeInsight.daemon.impl.InjectedGeneralHighlightingPass.collectInformationWithProgress(InjectedGeneralHighlightingPass.java:91)
	at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:84)
	at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:52)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:434)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1107)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:427)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:625)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:570)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:426)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:402)
	at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:168)
	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:169)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:400)
	at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:171)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)

IntelliJ IDEA 2020.1 EAP (Ultimate Edition)
Build #IU-201.6487.11, built on March 18, 2020
IntelliJ IDEA EAP User
Expiration date: April 17, 2020
Runtime version: 11.0.6+8-b765.15 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.4
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 12
Non-Bundled Plugins: KotlinTIOBE, PlantUML integration, String Manipulation, com.ankit.mahadik.json.dart.class, com.github.leomillon.uuidgenerator, com.github.novotnyr.jwt-intellij-plugin, com.github.shchurov.gradlestop, com.idlesign.qrcoder, com.vladsch.git-file-case-fixer, zielu.gittoolbox, Lombook Plugin, com.herbert.george.dart.extensions, com.intellij.bigdecimal-folding, com.jetbrains.embeddedProjectJdk, com.viartemev.requestmapper, com.yhuang.code-smell-detector, de.docksnet.puml.syntaxchecker, launch-url-from-string, marcglasberg.HibernateInspectionsPlugin, org.jetbrains.plugins.hocon, org.pmesmeur.sketchit, woaini.liquibase.plugin, com.intellij.plugins.macoskeymap, com.blackbuild.intellij.maven-wrapper-support, com.intellij.selenium, com.sonnk.iterm, detekt, fr.dco.kotlin.vcs-kotlin-converter, hunspell, ideanginx9, in.thekalinga.snippet.intellij, indent-rainbow.indent-rainbow, name.kropp.intellij.makefile, org.intellij.RegexpTester, BashSupport, AWSCloudFormation, com.intellij.kubernetes, ru.adelf.idea.dotenv, Dart, andrasferenczi.dart-data-plugin, com.localizely.flutter-intl, com.mobiledi.flutter_plugins, io.flutter, org.jetbrains.kotlin, izhangzhihao.rainbow.brackets, com.layernet.plugin.adbwifi, net.aquadc.mike.plugin, cn.yiiguxing.plugin.translate, de.mariushoefler.flutter_enhancement_suite, com.gmail.blueboxware.extsee, com.intellij.bigdatatools, com.jetbrains.packagesearch.intellij-plugin, kotlin-i18n-write-action, kotlintest-plugin-intellij, net.lagerwey.cucumber-kotlin, com.intellij.lang.jsgraphql, lermitage.intellij.extra.icons, org.asciidoctor.intellij.asciidoc, org.apache.camel, org.semonte.intellij.swagger, ru.itbasis.plugins.intellij.hashGenerator

Indents don't appear on soft wraps

If a line is soft-wrapped by the IDE, the part that is soft-wrapped will not display Rainbow Indent.
Thanks~!
2022-08-05 142109

Indent Rainbow:2.0.2
IDE:JetBrains Rider 2022.2 #RD-222.3345.139, built on August 1, 2022
Runtime version: 17.0.3+7-b469.32 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
.NET 6.0.6
GC: G1 Young Generation, G1 Old Generation
Memory: 1500M
Cores: 8

Non-error indentation being highlighted as error

In Typescript (and possibly other languages - I haven't checked), code that is properly indented is being marked with my error-indent color. Here's an example:

image

Sorry to pixelate the actual content - my company is very strict about source code being visible. But I've left all of the punctuation visible so that you can see what's what. The div is definitely indented properly according to our formatting rules. In fact, if I select it and reformat, it doesn't change at all.

IntelliJ "About" info:

IntelliJ IDEA 2021.3 (Ultimate Edition)
Build #IU-213.5744.223, built on November 27, 2021
Licensed to Ab Initio Software

Runtime version: 11.0.13+7-b1751.19 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 8192M
Cores: 12
Registry:
    editor.transparent.scrollbar=false
    analyze.exceptions.on.the.fly=true
    debugger.watches.in.variables=false
    documentation.show.toolbar=true
    ide.allow.merge.buttons=false
    search.everywhere.settings=true
    editor.full.width.scrollbar=true
    debugger.valueTooltipAutoShowOnSelection=true
    ide.new.editor.tabs.vertical.borders=true
    ide.tooltip.initialDelay=509
    ide.balloon.shadow.size=0
    js.debugger.webconsole=false
    typescript.service.node.arguments=--max_old_space_size=8092

Non-Bundled Plugins:
    indent-rainbow.indent-rainbow (2.0.2)
    Alt n 8 (2.2.0)
    Batch Scripts Support (1.0.13)
    HighlightBracketPair (1.3.4)
    MultiHighlight (2.1.1)
    SplitHistory (8)
    com.alexey-anufriev.scopes-manager-intellij-plugin (1.6.2)
    com.andrewbrookins.wrap_to_column (1.8.0)
    com.github.rougsig.duck-progress-bar (0.0.1)
    com.github.syuchan1005.revealinprojectview (1.0.2)
    com.intellij.plugins.watcher (213.5744.122)
    com.jinsihou.react.snippets (1.1.0)
    com.tabnine.TabNine (0.6.0)
    de.achimonline.changelistorganizer (1.9)
    mobi.hsz.idea.gitignore (4.4.0)
    org.nik.presentation-assistant (1.0.9)
    org.turbanov.run.configuration.as.action (1.4.5)
    ski.chrzanow.foldableprojectview (1.1.2)
    tabs.id (1.12)
    GrepConsole (12.12.211.6693.0)
    String Manipulation (9.4.0)
    com.intellij.jira (3.9.2)
    org.jeto.taskfocus (1.1)
    wide-task-browser (1.0.3)
    com.yiycf.plugins.mavenDependencyHelper (2.5)
    com.intellij.selenium (213.5744.172)
    com.intellij.guice (213.5744.125)
    com.mallowigi.colorHighlighter (9.2.0)
    com.github.lppedd.idea-return-highlighter (0.8.2)
    izhangzhihao.rainbow.brackets (6.21)
    org.vepanimas.uml.javascript (0.1.0)
    com.intellij.plugins.html.instantEditing (213.5744.122)
    JSTestDriver Plugin (202.5)
    Karma (213.5744.122)
    com.abinitio.cat.idea.karma-extension (0.0.4)
    me.mbolotov.cypress (1.4.2)
    com.intellij.gwt (213.5744.125)

Kotlin: 213-1.5.10-release-949-IJ5744.223

strange effect on YAML arrays

when I just open a file with YAML arrays, it looks sad:

            Iterator:
              ListAttributeIterator():
                ListAttributeName:
                - _ErrorAttributes
                - _ErrorMessages
                RuleChain: AddErrorCode
                TmpAttributeName:
                - VIP_A
                - VIP_B
                AddErrorCode:

Снимок экрана 2022-04-08 в 20 41 16

But once I edited likes that start with dash, it gets fixed:

Снимок экрана 2022-04-08 в 20 42 12

One that was edited and next one get better.

plugin version 1.7.0

IntelliJ IDEA 2021.2.3 (Ultimate Edition) Build #IU-212.5457.46, built on October 12, 2021

Small gap between indent color and Indent guides lines

Thanks this great plugin, but I met a problem:

image

As the picture above, the vertical line is not in the correct place, it has a small gap with the rainbow color block, is there any method to solve this or hide the vertical line? Thanks in advance!

Feature request: disable on big files

Expected Behavior

Overall IDE performance is negatively affected by this plugin when dealing with big files (hundreds of lines).

I would like to configure a threshold of lines so that, when the file I'm editing has more lines than those set on the threshold, then this plugin is automatically disabled for that file.

That way, I can set a threshold that works for my specific environment (memory settings, type of files I open, number of open files, etc).

Current Behavior

The plugin works for every open file, regardless of their size.

Possible Solution

I'm not sure about the specific implementation of this feature, but I think it would require a new configuration option to enable this feature, and another new configuration field to set the threshold.

Your Environment

  • Plugin version: 1.6.1
  • macOS BigSur 11.1
RubyMine 2020.3
Build #RM-203.5981.152, built on November 30, 2020
Licensed to Guillermo Gutierrez Almazor
Subscription is active until February 20, 2021
Runtime version: 11.0.9+11-b1145.21 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.16
GC: ParNew, ConcurrentMarkSweep
Memory: 8125M
Cores: 8
Registry: ide.balloon.shadow.size=0, jest.test.tree.use.jasmine.reporter=false
Non-Bundled Plugins: com.4lex4.intellij.solarized, com.github.mturlo.intellij.theme.spacegray, com.samdark.intellij-visual-studio-code-dark-plus, com.thvardhan.gradianto, NodeJS, org.jetbrains.plugins.vue, com.dmarcotte.handlebars, ru.adelf.idea.dotenv, indent-rainbow.indent-rainbow

Do not update color scheme when not needed

I'm storing my IntelliJ IDEA settings in a Git repository using the settings repository feature. It will push any configuration changes, including color scheme settings, when IntelliJ IDEA exits. If nothing was changed, it will not push any commit to the settings repository.

The problem is, intellij-indent-rainbow plugin keeps updating the color scheme at every launch, resulting in the change like the following:

image

As you see from the above image, intellij-indent-rainbow plugin doesn't really update anything. It just makes IntelliJ IDEA to update the timestamp value of the color scheme settings.

It'd be really nice if this plugin doesn't try to update anything if the current color scheme matches with the plugin's settings.

Exception: taDefault.backgroundColor must not be null

The rainbow does not work with following exception.

version:

IntelliJ IDEA 2018.2.5 (Community Edition)
Build #IC-182.4892.20, built on October 16, 2018
JRE: 1.8.0_152-release-1248-b19 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.6

Exceptions

java.lang.ExceptionInInitializerError
	at indent.rainbow.MyAnnotator.annotate(MyAnnotator.kt:50)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.runAnnotators(DefaultHighlightVisitor.java:139)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:102)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.runVisitors(GeneralHighlightingPass.java:366)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$collectHighlights$5(GeneralHighlightingPass.java:298)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:325)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$analyzeByVisitors$6(GeneralHighlightingPass.java:328)
	at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.lambda$analyze$2(HighlightVisitorImpl.java:160)
	at com.intellij.codeInsight.daemon.impl.analysis.RefCountHolder.analyze(RefCountHolder.java:336)
	at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.analyze(HighlightVisitorImpl.java:159)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:328)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$analyzeByVisitors$6(GeneralHighlightingPass.java:328)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:86)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:328)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectHighlights(GeneralHighlightingPass.java:295)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:238)
	at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:83)
	at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:69)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:423)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1161)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:416)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:415)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:391)
	at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:147)
	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:222)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:389)
	at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:161)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.lang.IllegalStateException: taDefault.backgroundColor must not be null
	at indent.rainbow.MyColors.updateTextAttributes(MyColors.kt:50)
	at indent.rainbow.MyColors.onSchemeChange(MyColors.kt:41)
	at indent.rainbow.MyColors.<clinit>(MyColors.kt:35)
	... 34 more

Crash report

Unfortunately, I cannot tell what code cause this because I miss the moment it happened. I'll add more details if I'll get it reproduced

Stacktrace

In file: file:///Users/aleksey/code/voyager/components/fullscreenPlayer/verticalSlider.js

java.util.ConcurrentModificationException
	at java.base/java.util.ArrayList$SubList.checkForComodification(ArrayList.java:1444)
	at java.base/java.util.ArrayList$SubList.size(ArrayList.java:1184)
	at java.base/java.util.AbstractCollection.isEmpty(AbstractCollection.java:87)
	at com.intellij.formatting.AlignmentImpl.getOffsetRespBlockBefore(AlignmentImpl.java:106)
	at com.intellij.formatting.CoreFormatterUtil.getAlignment(CoreFormatterUtil.java:72)
	at com.intellij.formatting.engine.IndentAdjuster.adjustIndent(IndentAdjuster.java:40)
	at com.intellij.formatting.engine.AdjustWhiteSpacesState.processToken(AdjustWhiteSpacesState.java:175)
	at com.intellij.formatting.engine.AdjustWhiteSpacesState.doIteration(AdjustWhiteSpacesState.java:75)
	at com.intellij.formatting.engine.State.iteration(State.java:25)
	at com.intellij.formatting.engine.StateProcessor.iteration(StateProcessor.java:26)
	at com.intellij.formatting.FormatProcessor.doIterationsSynchronously(FormatProcessor.java:147)
	at com.intellij.formatting.FormatProcessor.formatWithoutRealModifications(FormatProcessor.java:128)
	at com.intellij.formatting.FormatProcessor.formatWithoutRealModifications(FormatProcessor.java:119)
	at com.intellij.formatting.FormatterImpl.calcIndent(FormatterImpl.java:517)
	at jdk.internal.reflect.GeneratedMethodAccessor130.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at indent.rainbow.IrIndentHelperKt.invokeWithRethrow(IrIndentHelper.kt:163)
	at indent.rainbow.IrIndentHelperKt.access$invokeWithRethrow(IrIndentHelper.kt:1)
	at indent.rainbow.IrFormatterIndentHelper.getIndentAndAlignmentMethod2(IrIndentHelper.kt:107)
	at indent.rainbow.IrFormatterIndentHelper.getIndentAndAlignment(IrIndentHelper.kt:51)
	at indent.rainbow.IrAnnotatorImpl.runForLine(IrAnnotatorImpl.kt:48)
	at indent.rainbow.IrAnnotatorImpl.runForLines(IrAnnotatorImpl.kt:31)
	at indent.rainbow.annotators.IrFormatterIncrementalAnnotator.tryAnnotate(IrFormatterIncrementalAnnotator.kt:21)
	at indent.rainbow.annotators.IrAnnotatorProxy.annotate(IrAnnotatorProxy.kt:13)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.runAnnotators(DefaultHighlightVisitor.java:129)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:110)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.runVisitors(GeneralHighlightingPass.java:346)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$collectHighlights$5(GeneralHighlightingPass.java:280)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:306)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$analyzeByVisitors$6(GeneralHighlightingPass.java:309)
	at com.github.izhangzhihao.rainbow.brackets.visitor.RainbowHighlightVisitor.analyze(RainbowHighlightVisitor.kt:35)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:309)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$analyzeByVisitors$6(GeneralHighlightingPass.java:309)
	at com.github.izhangzhihao.rainbow.brackets.visitor.RainbowHighlightVisitor.analyze(RainbowHighlightVisitor.kt:35)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:309)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$analyzeByVisitors$6(GeneralHighlightingPass.java:309)
	at com.intellij.codeInsight.daemon.impl.analysis.XmlHighlightVisitor.analyze(XmlHighlightVisitor.java:599)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:309)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$analyzeByVisitors$6(GeneralHighlightingPass.java:309)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:93)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:309)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectHighlights(GeneralHighlightingPass.java:277)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:222)
	at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:84)
	at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:52)
	at com.intellij.codeInsight.problems.WolfTheProblemSolverImpl.orderVincentToCleanTheCar(WolfTheProblemSolverImpl.java:281)
	at com.intellij.codeInsight.problems.WolfTheProblemSolverImpl.startCheckingIfVincentSolvedProblemsYet(WolfTheProblemSolverImpl.java:233)
	at com.intellij.codeInsight.daemon.impl.WolfHighlightingPass.collectInformationWithProgress(WolfHighlightingPass.java:43)
	at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:84)
	at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:52)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:442)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1106)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:435)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:627)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:572)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:434)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:410)
	at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:168)
	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:168)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:408)
	at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:171)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)

Configurable file types

It'd be cool if you could specify what file types the plugin should work on, the way you can in the VS Code plugin. I like to have things like Python and YAML highlighted, but not other types.

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.