Giter VIP home page Giter VIP logo

codeglancepro's People

Contributors

chris54721 avatar dev-null-undefined avatar juherr avatar nasller 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

codeglancepro's Issues

[Feature Request] Show minimap on the left side of the editor window.

First of all, I love your plugin.

And I have a feature request to make it even better for my usage.

Story: With a 34'' display, the editor window is so wide with a single file open, that the distance the Minimap is quite far. Thus, I lose the focus on what i was looking, because I have to navigate the mouse to the Minimap.

Request: Is it possible to make an option to show the minimap on the left side of the editor?

[BUG] Illegal argument exception with Rider 2022.2 EAP5

CodeGlancePro throws an IllegalArgumentException when running on Rider 2022.2 EAP5.

Worker exited due to exception

java.lang.IllegalArgumentException: w and h must be > 0
	at java.desktop/java.awt.image.Raster.createInterleavedRaster(Raster.java:281)
	at java.desktop/java.awt.image.BufferedImage.<init>(BufferedImage.java:391)
	at com.nasller.codeglance.render.Minimap.update(Minimap.kt:29)
	at com.nasller.codeglance.panel.GlancePanel.computeInReadAction(GlancePanel.kt:60)
	at com.nasller.codeglance.panel.AbstractGlancePanel$updateTask$1.computeInReadAction(AbstractGlancePanel.kt:44)
	at com.intellij.openapi.progress.util.ReadTask.performInReadAction(ReadTask.java:49)
	at com.intellij.openapi.progress.util.ReadTask.lambda$runBackgroundProcess$0(ReadTask.java:66)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:941)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:68)
	at com.intellij.openapi.progress.util.ReadTask.runBackgroundProcess(ReadTask.java:66)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runUnderProgress$5(ProgressIndicatorUtils.java:265)
	at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:66)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:188)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:175)
	at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:66)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runUnderProgress(ProgressIndicatorUtils.java:263)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils$4.run(ProgressIndicatorUtils.java:213)
	at com.intellij.codeWithMe.ClientId$Companion$decorateRunnable$1.run(ClientId.kt:288)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:833)
  1. Which Glance version and IDEA version?
    1.28 running in Rider 2022.2 EAP5

  2. Do you enabled reader mode option?
    No, I don't think so...

  3. Could you show Glance config picture and minimap picture?
    Yes

  4. What steps will reproduce the issue?
    Use CodeGlancePro with Rider 2022.2 EAP5

[BUG] Lines are not positioned correctly in the minimap

Hi, thanks for maintaining this plugin!
I am experiencing a bug with how the lines are drawn in the minimap, as you can see in the picture below they are not in the correct position relative to the viewport. However all other elements of the minimap (git changes, current line etc) seem to be positioned correctly.

  1. Which Glance version and IDEA version?
    Glance 1.2.5, IDEA 2021.3.3.

  2. Do you enabled reader mode option?
    No

  3. Could you show Glance config picture and minimap picture?

image

image

(I made the viewport blue so it is easier to see)

  1. What steps will reproduce the issue?
    Open any file, the lines are placed incorrectly relative to the rest of the minimap.

Allow mouse wheel scrolling when hovered over the minimap

  1. Which Glance version and IDEA version?

CodeGlance Pro 1.5.1
JetBrains Rider 2022.2.3

  1. Could you show Glance config picture and minimap picture?

N/A

  1. What steps will reproduce the issue?

This isn't an issue, rather a feature request. It would be nice to be able to hover over the minimap and scroll using the mouse wheel. At the moment the minimap can be clicked and dragged, which is great, but to scoll using the mousewhell you have to first move the cursor into the editor window (or over the original scrollbar, if it's still visible).

In other editors I use the click and drag for big movements, and then use scrolling to find the exact line/block I'm looking for.

Thank you

Concurrent modification error in IDEA

I was just editing code, nothing else in particular going on.

java.util.ConcurrentModificationException
	at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1135)
	at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter.getAttributesKeys(LexerEditorHighlighter.java:492)
	at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter.getAttributes(LexerEditorHighlighter.java:484)
	at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter$HighlighterIteratorImpl.getTextAttributes(LexerEditorHighlighter.java:626)
	at com.intellij.openapi.editor.impl.view.IterationState.setAttributes(IterationState.java:561)
	at com.intellij.openapi.editor.impl.view.IterationState.reinit(IterationState.java:530)
	at com.intellij.openapi.editor.impl.view.IterationState.advance(IterationState.java:349)
	at com.intellij.openapi.editor.impl.view.LineLayout$Chunk.ensureLayout(LineLayout.java:674)
	at com.intellij.openapi.editor.impl.view.LineLayout$VisualOrderIterator.hasNext(LineLayout.java:769)
	at com.intellij.openapi.editor.impl.view.VisualLineFragmentsIterator.hasNext(VisualLineFragmentsIterator.java:232)
	at com.intellij.openapi.editor.impl.view.EditorCoordinateMapper.logicalToVisualPosition(EditorCoordinateMapper.java:110)
	at com.intellij.openapi.editor.impl.view.EditorView.logicalToVisualPosition(EditorView.java:186)
	at com.intellij.openapi.editor.impl.EditorImpl.logicalToVisualPosition(EditorImpl.java:2273)
	at com.intellij.openapi.editor.ex.util.EditorUtil.logicalToVisualLine(EditorUtil.java:673)
	at com.nasller.codeglance.panel.GlancePanel.paintVcs(GlancePanel.kt:108)
	at com.nasller.codeglance.panel.AbstractGlancePanel.paintLast(AbstractGlancePanel.kt:89)
	at com.nasller.codeglance.panel.AbstractGlancePanel.paint(AbstractGlancePanel.kt:135)
	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:910)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1086)
	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:910)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1086)
	at java.desktop/javax.swing.JLayeredPane.paint(JLayeredPane.java:590)
	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:910)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1086)
	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:910)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1086)
	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:910)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1086)
	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:910)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1086)
	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:910)
	at com.intellij.ui.tabs.impl.JBTabsImpl.paintChildren(JBTabsImpl.java:579)
	at com.intellij.openapi.fileEditor.impl.EditorTabbedContainer$EditorTabs.paintChildren(EditorTabbedContainer.java:724)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1086)
	at java.desktop/javax.swing.JComponent.paintToOffscreen(JComponent.java:5263)
	at java.desktop/javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:246)
	at java.desktop/javax.swing.RepaintManager.paint(RepaintManager.java:1333)
	at java.desktop/javax.swing.JComponent._paintImmediately(JComponent.java:5211)
	at java.desktop/javax.swing.JComponent.paintImmediately(JComponent.java:5021)
	at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:868)
	at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:851)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:851)
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:826)
	at java.desktop/javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:775)
	at java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1901)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:898)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:746)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:439)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:803)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:438)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)
	at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:604)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:436)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:479)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)

Platform:

IntelliJ IDEA 2022.1 (Ultimate Edition)
Build #IU-221.5080.210, built on April 11, 2022
Licensed to Washington University School of Medicine in St. Louis / Rick Herrick
Subscription is active until November 21, 2022.
Runtime version: 11.0.14.1+1-b2043.25 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 6144M
Cores: 8
Registry:
    external.system.substitute.library.dependencies=true
    ide.balloon.shadow.size=0

Non-Bundled Plugins:
    org.antlr.intellij.plugin (1.18)
    manjaro.mpb (1.7)
    com.nasller.CodeGlancePro (1.3.2)
    com.intellij.javafx (1.0.4)
    org.jetbrains.plugins.spotbugs (1.2.5)
    YourKit Java Profiler 2021.11-b221 Integration (2021.11.221.0)
    org.asciidoctor.intellij.asciidoc (0.37.17)
    VisualVMLauncher (1.21.211.6085.0)
    com.mallowigi (64.0.0)
    CheckStyle-IDEA (5.66.0)
    Dart (221.5588)
    io.flutter (67.0.4)
    com.haulmont.jpab (2022.2.2-221)
    com.chrisrm.idea.MaterialThemeUI (7.3.2)

Kotlin: 221-1.6.20-release-285-IJ5080.210

Misaligned scrollbar rectangle that indicated code currently shown on screen

As in title. Included screenshots show examples of the issue. First code editor screenshot shows misalign compared to error stripe, 2nd one shows that most of visible area is covered with text, while scrollbar "dark area" shows that only uper part of text editor should be covered with code. I am using macOS Monterey

Answers to standard questions:

  1. Which Glance version and IDEA version? Jetbrains Rider 2022.1.2, glance version 1.4.5

  2. Do you enabled reader mode option? No

  3. Could you show Glance config picture and minimap picture?
    Config
    Misaligned error stripe
    Code covers most of screen and scrollbar selection does not

  4. What steps will reproduce the issue? It just happens and is easily visible on larger source files

Hide minimap by default

How do I make the mini map be hidden by default? I've looked through all the settings and this option is missing. Add it please. Or tell me where it can be enabled?

Show minimap on scrollbar hover is not the same. I need an option that does the same thing as the eye button (hide minimap). But as a default option for all tabs.

[FEATURE] Show breakpoints

I would like to be able to see breakpoints in scroll, taking full width - just like current line is selected in blue color

About Reader Mode Documentation

image
关于在idea中开启reader mode或是点击小图标只渲染一个的情况下,minimap不能够好好显示,因为idea中的reader mode是通过html渲染,我无法去还原在minimap中,所以你可以看到当你开启这个选项,并在项目中打开library中的文件,minimap会显示错误,相应的快速浏览等功能将不会启用(项目中的不受影响),vcs,selection,caret的显示不受影响(已修复).在CodeGlance其他版本中默认是不会渲染出来的,所以会出现大量空白,我选择把他展开是为了更好的显示,但可能会出现一些不必要的错误,谢谢大家

[BUG]

  1. Which Glance version and IDEA version?
    IDEA 2022.1.1/ Datagrip 2022.1.4 最新版本
    Glance 1.3.6.1

  2. Do you enabled reader mode option?
    已开启,但是在Datagrip中未使用文档注释

  3. Could you show Glance config picture and minimap picture?
    image
    image

  4. What steps will reproduce the issue?
    开启自动换行(软换行)后,编辑器中有较多的自动换行代码,导致底部有很大的空白部分

[BUG] java.lang.Error: Destination component not connected to component tree hierarchy

  1. Which Glance version and IDEA version?
    Glance v1.4.8 running in IntelliJ IDEA Ultimate 2022.2 (Build #IU-222.3345.118)

  2. Could you show Glance config picture and minimap picture?
    Unfortunately I did not notice the exception until 15 minutes or so after it happened. So any image would be irrelevant.

  3. What steps will reproduce the issue?
    Unknown. I did not notice when the exception happened. When I did notice the blinking icon nd opend the exception reporter, it was ~15 minutes later.

java.lang.Error: Destination component not connected to component tree hierarchy
	at java.desktop/javax.swing.SwingUtilities.convertPoint(SwingUtilities.java:201)
	at com.nasller.codeglance.panel.scroll.CustomEditorFragmentRenderer.show(CustomEditorFragmentRenderer.kt:82)
	at com.nasller.codeglance.panel.scroll.ScrollBar$MouseHandler.showToolTipByMouseMove(ScrollBar.kt:230)
	at com.nasller.codeglance.panel.scroll.ScrollBar$MouseHandler.showMyEditorPreviewHint$lambda-2(ScrollBar.kt:175)
	at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:241)
	at com.intellij.util.Alarm$Request.runSafely(Alarm.java:388)
	at com.intellij.util.Alarm$Request.run(Alarm.java:377)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:223)
	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
	at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
	at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
	at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:513)
	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:75)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:118)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:42)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:779)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:749)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:898)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:746)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:439)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:791)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:438)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
	at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:604)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:436)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:484)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)

What is the role of the Python code?

Hello, I am learning the source code of your project. I would like to ask what is the function of the Python code in it? I did not find the content compiled by the Python code in the plug-in compressed package downloaded from the plug-in market.

[BUG] Context menu long load when open file is empty

Which Glance version and IDEA version?

CodeGlance Pro 1.3.8
PhpStorm 2022.1.1 Build #PS-221.5591.58

Do you enabled reader mode option?

Don't know what this is or if it applies.

Could you show Glance config picture and minimap picture?

screenshot-20220613-192244

What steps will reproduce the issue?

  1. Create a blank file and open it in the editor.
  2. Right-click on a folder in the project panel. A loader shows for a few seconds before the context menu opens.
  3. Left-click inside editor, then right-click. A loader shows for a few seconds before the context menu opens.
  4. Disable CodeGlance or open a non-empty file. Context menu opens instantly in both cases above.

Peek 2022-06-13 19-38

[BUG] Lock bool does not lock scrollbar size

  1. Which Glance version and IDEA version?
    Code Glance Pro 1.5.0 & Rider 2022.2.2 Build #RD-222.3962.23

  2. Could you show Glance config picture and minimap picture?
    config
    smallScroll
    Blackedout code my code for privacy reasons

  3. What steps will reproduce the issue?
    Open two windows in Rider and resize one window, which will resize the scroll bar

Sync theme with IDE

Would it be possible to change the colors automatically from Light to Dark and vice versa when changing the theme of the IDE?
Currently you have to disable and re-enable the plugin for the colors to change.

[BUG]插件更新到1.3.6后报错:java.lang.ArrayIndexOutOfBoundsException

  1. Which Glance version and IDEA version?
    IntelliJ IDEA 2022.1.1 (Ultimate Edition)

  2. Do you enabled reader mode option?
    image

  3. Could you show Glance config picture and minimap picture?

  4. What steps will reproduce the issue?
    启动报以下错误:

Worker exited due to exception

java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
	at java.desktop/java.awt.image.ComponentSampleModel.setSample(ComponentSampleModel.java:1123)
	at java.desktop/java.awt.image.SampleModel.setPixel(SampleModel.java:1140)
	at java.desktop/java.awt.image.WritableRaster.setPixel(WritableRaster.java:526)
	at com.nasller.codeglance.render.Minimap.setPixel(Minimap.kt:225)
	at com.nasller.codeglance.render.Minimap.renderClean(Minimap.kt:178)
	at com.nasller.codeglance.render.Minimap.renderImage(Minimap.kt:129)
	at com.nasller.codeglance.render.Minimap.update(Minimap.kt:109)
	at com.nasller.codeglance.panel.GlancePanel.computeInReadAction(GlancePanel.kt:82)
	at com.nasller.codeglance.panel.AbstractGlancePanel$updateTask$1.computeInReadAction(AbstractGlancePanel.kt:45)
	at com.intellij.openapi.progress.util.ReadTask.performInReadAction(ReadTask.java:49)
	at com.intellij.openapi.progress.util.ReadTask.lambda$runBackgroundProcess$0(ReadTask.java:66)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:933)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:68)
	at com.intellij.openapi.progress.util.ReadTask.runBackgroundProcess(ReadTask.java:66)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runUnderProgress$5(ProgressIndicatorUtils.java:265)
	at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:58)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:189)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:176)
	at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:58)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runUnderProgress(ProgressIndicatorUtils.java:263)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils$4.run(ProgressIndicatorUtils.java:213)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
	at java.base/java.lang.Thread.run(Thread.java:829)

image

[Question/Request] Dynamic height fixed at 100% of window height?

I'm posting here to ask if you've already tried to do this, or if it's possible.

The feature is something like this. The height of the code-preview is always 100% of the height of the code-window, and all of the document is also always visible, stretched (or squished) to take up 100% of the window height. The scrollbar height and preview-highlight section would always line up, and the preview window never scrolled on it's own. I suppose preview line-height would need to be dynamic.

I've attached a video of what it does that I'm not fond of, the preview scrolls too, showing more or less of the bottom of the document.

What do you think?

Screen.Recording.2022-05-05.at.10.49.01.AM.mov

[BUG] Minimap not showing collapsed custom folding regions

  1. Which Glance version and IDEA version?
    Glance: 1.3.2 (but happens also earlier)
    IJ: IU-221.5080.210

  2. Do you enabled reader mode option?
    no

  3. Could you show Glance config picture and minimap picture?
    sure
    image

  4. What steps will reproduce the issue?

Add custom folding regions and collapse them.
Nothing will be shown in minimap (see screenshot above).
At least a green line would be nice.

[BUG]

hi, in Webstorm, cannot coexist with [React Buddy] Plugin., After installing [React Buddy], it will not display.

插件异常,idea报异常说此插件不是JetBrains产品

java.lang.IndexOutOfBoundsException: Wrong line: 38. Available lines count: 18
at com.intellij.openapi.editor.impl.LineSet.checkLineIndex(LineSet.java:200)
at com.intellij.openapi.editor.impl.LineSet.getLineEnd(LineSet.java:194)
at com.intellij.openapi.editor.impl.DocumentImpl.getLineEndOffset(DocumentImpl.java:1028)
at com.nasller.codeglance.render.Minimap.update(Minimap.kt:91)
at com.nasller.codeglance.panel.GlancePanel.updateImgTask(GlancePanel.kt:64)
at com.nasller.codeglance.panel.AbstractGlancePanel.updateImage$lambda-1(AbstractGlancePanel.kt:65)
at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:513)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:75)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:118)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:42)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:779)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:749)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:898)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:746)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:439)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:791)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:438)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:604)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:436)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:484)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)

Incorrect minimap scrolling in .ipynb files

  1. Which Glance version and IDEA version?
    1.4.3 and Build #DS-221.5080.210, built on April 12, 2022
  2. Do you enabled reader mode option?
    no
  3. Could you show Glance config picture and minimap picture?
    image
    image
  4. What steps will reproduce the issue?
    Create a .ipynb file and run some cells to get output.

Plugin Error in CLion

Installed through marketplace. Restarted IDE. Received this error.
Plugin version is 1.3.2. CLion version is 2022.1.

Catch

java.lang.NoClassDefFoundError: com/intellij/openapi/vcs/changes/ChangeListManagerImpl
	at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
	at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166)
	at java.base/java.lang.Class.getDeclaredMethod(Class.java:2473)
	at java.desktop/java.awt.Component.isCoalesceEventsOverriden(Component.java:6339)
	at java.desktop/java.awt.Component.isCoalesceEventsOverriden(Component.java:6328)
	at java.desktop/java.awt.Component$3.run(Component.java:6293)
	at java.desktop/java.awt.Component$3.run(Component.java:6291)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.desktop/java.awt.Component.checkCoalescing(Component.java:6290)
	at java.desktop/java.awt.Component.<init>(Component.java:6259)
	at java.desktop/java.awt.Container.<init>(Container.java:296)
	at java.desktop/javax.swing.JComponent.<init>(JComponent.java:599)
	at java.desktop/javax.swing.JPanel.<init>(JPanel.java:82)
	at java.desktop/javax.swing.JPanel.<init>(JPanel.java:109)
	at java.desktop/javax.swing.JPanel.<init>(JPanel.java:117)
	at com.nasller.codeglance.panel.AbstractGlancePanel.<init>(AbstractGlancePanel.kt:25)
	at com.nasller.codeglance.panel.AbstractGlancePanel.<init>(AbstractGlancePanel.kt)
	at com.nasller.codeglance.panel.GlancePanel.<init>(GlancePanel.kt:30)
	at com.nasller.codeglance.EditorPanelInjector.getMyPanel(EditorPanelInjector.kt:100)
	at com.nasller.codeglance.EditorPanelInjector.fileOpened(EditorPanelInjector.kt:37)
	at com.intellij.util.messages.impl.MessageBusImpl.invokeMethod(MessageBusImpl.java:642)
	at com.intellij.util.messages.impl.MessageBusImpl.invokeListener(MessageBusImpl.java:617)
	at com.intellij.util.messages.impl.MessageBusImpl.deliverMessage(MessageBusImpl.java:417)
	at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:391)
	at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:373)
	at com.intellij.util.messages.impl.MessageBusImpl.access$200(MessageBusImpl.java:34)
	at com.intellij.util.messages.impl.MessageBusImpl$MessagePublisher.invoke(MessageBusImpl.java:180)
	at com.sun.proxy.$Proxy113.fileOpened(Unknown Source)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl4Edt$20(FileEditorManagerImpl.java:1064)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$7.lambda$run$0(FileEditorManagerImpl.java:1149)
	at com.intellij.openapi.util.ExpirableRunnable$1.run(ExpirableRunnable.java:17)
	at com.intellij.openapi.wm.impl.FocusManagerImpl.lambda$doWhenFocusSettlesDown$3(FocusManagerImpl.java:181)
	at com.intellij.util.ui.EdtInvocationManager.invokeLaterIfNeeded(EdtInvocationManager.java:101)
	at com.intellij.ide.IdeEventQueue.ifFocusEventsInTheQueue(IdeEventQueue.java:179)
	at com.intellij.ide.IdeEventQueue.executeWhenAllFocusEventsLeftTheQueue(IdeEventQueue.java:132)
	at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:172)
	at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:178)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$7.run(FileEditorManagerImpl.java:1148)
	at com.intellij.openapi.util.BusyObject$Impl$Simple.execute(BusyObject.java:105)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.notifyPublisher(FileEditorManagerImpl.java:1145)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl4Edt(FileEditorManagerImpl.java:1061)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl4$17(FileEditorManagerImpl.java:960)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.runBulkTabChange(FileEditorManagerImpl.java:1690)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl4$18(FileEditorManagerImpl.java:959)
	at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:490)
	at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:523)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl4(FileEditorManagerImpl.java:956)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl2$14(FileEditorManagerImpl.java:884)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:219)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:174)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:164)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:150)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:883)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:763)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:723)
	at com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java:127)
	at com.jetbrains.rdclient.fileEditors.FrontendFileEditorManager.openFileFromBackend$intellij_rd_client(FrontendFileEditorManager.kt:75)
	at com.jetbrains.rdclient.fileEditors.FrontendFileEditorHost.openComposite(FrontendFileEditorHost.kt:99)
	at com.jetbrains.rdclient.fileEditors.FrontendFileEditorHost.access$openComposite(FrontendFileEditorHost.kt:32)
	at com.jetbrains.rdclient.fileEditors.FrontendFileEditorHost$MyModelListener$extensionCreated$1.invoke(FrontendFileEditorHost.kt:51)
	at com.jetbrains.rdclient.fileEditors.FrontendFileEditorHost$MyModelListener$extensionCreated$1.invoke(FrontendFileEditorHost.kt:48)
	at com.jetbrains.rd.util.reactive.IViewableMap$view$1.invoke(ViewableCollections.kt:108)
	at com.jetbrains.rd.util.reactive.IViewableMap$view$1.invoke(ViewableCollections.kt:64)
	at com.jetbrains.rd.util.reactive.IViewableMap$adviseAddRemove$1.invoke(ViewableCollections.kt:126)
	at com.jetbrains.rd.util.reactive.IViewableMap$adviseAddRemove$1.invoke(ViewableCollections.kt:64)
	at com.jetbrains.rd.util.reactive.Signal.fire(Signal.kt:32)
	at com.jetbrains.rd.util.reactive.ViewableMap.put(ViewableMap.kt:29)
	at com.jetbrains.rd.framework.impl.RdMap.onWireReceived(RdMap.kt:143)
	at com.jetbrains.rd.platform.codeWithMe.protocol.SecureWireOverStreamTransport$advise$wrapper$1.onWireReceived(SecureWireOverStreamTransport.kt:110)
	at com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:57)
	at com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:12)
	at com.jetbrains.rd.framework.impl.ProtocolContexts.readMessageContextAndInvoke(ProtocolContexts.kt:151)
	at com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:56)
	at com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:12)
	at com.jetbrains.rdclient.protocol.RdDispatcher.flushAll(RdDispatcher.kt:97)
	at com.jetbrains.rdclient.protocol.RdDispatcher.access$flushAll(RdDispatcher.kt:18)
	at com.jetbrains.rdclient.protocol.RdDispatcher$flushAllRunnable$1.run(RdDispatcher.kt:23)
	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:215)
	at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:22)
	at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:197)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:873)
	at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:511)
	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:69)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:112)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:42)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:898)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:746)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:439)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:803)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:438)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)
	at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:604)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:436)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:873)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:484)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Caused by: java.lang.ClassNotFoundException: com.intellij.openapi.vcs.changes.ChangeListManagerImpl PluginClassLoader(plugin=PluginDescriptor(name=CodeGlance Pro, id=com.nasller.CodeGlancePro, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\JetBrainsClient221.5080.224\plugins\CodeGlance Pro, version=1.3.2, package=null, isBundled=false), packagePrefix=null, instanceId=6, state=active)
	at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:215)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
	... 108 more

Setting for scrollbar hover delay before minimap appears

An option to specify a time delay (in milliseconds) before the minimap appears during scrollbar hover would be quite useful. A default of e.g. 100 ms could be a reasonable default.

Currently, every time the mouse passes over the scroll bar, the minimap appears. This can become immensely distracting, e.g. when the IDE is in the background.

Thank you for this wonderful plugin!

[建议]代码错误、警告等的高亮着色要突出一点

代码错误、警告时编辑器滚动条的位置是有突出标记的,虽然小地图内也有标记,但是并不是很突出,不容易找到,且没有警告的标记。
个人的建议是:

  1. 警告也需要在小地图内也突出标记;
  2. 错误、警告的标记还要突出一点,让人一眼就能分辨出来,最好是整行标记。

image
如图中的标记,一但把滚动条隐藏之后,就很难从小地图上定位错误位置了。

[建议] 延时判断是否显示快速预览窗口

PhpStorm 2022.1 MacOS

当我使用两个屏幕工作时,鼠标总是在两个屏幕间移动。
只要鼠标经过了代码小地图,即便速度很快,也会触发预览窗口
我觉得只需 100~200ms 左右的延迟,就可以改善这种现象。

不知道是否好修改,只是个建议。😁

Add viewport border, or increase unfocused viewport background color saturation

The viewport background colour has low saturation when unfocused. The saturation increases on hover, and increases further on click.

CodeGlance only allows one viewport colour to be set for all themes. So for people who use both light and dark themes (and switch regularly), it's hard to find a middle ground background colour that will keep the viewport clearly visible when it's unfocused.

Example with the viewport colour set to #01579B (blue), while using a light theme. Left to right is unfocused, focused and clicked:

image

Although this blue is clearly visible when using a dark theme, it's hard to use with a light theme, particularly when unfocused.

Ideas:

  1. Add a fixed border around the viewport, the colour of which can be set by the user by an option.
  2. Add saturation slider options for the viewport background colour.

For example, Visual Studio's implementation of the minimap is lacking a viewport background colour, but is still usable because of well defined borders:

image

[建议]有两个小小的建议

  1. Which Glance version and IDEA version?
    IntelliJ IDEA 2022.1.2 (Ultimate Edition)

  2. Do you enabled reader mode option?

  3. Could you show Glance config picture and minimap picture?
    image

  4. What steps will reproduce the issue?
    一、当代码达到4000+的时候会导致IDE的明显卡顿,滚动代码卡顿。目前的解决方案是当代码超过2000行不显示map。如果能优化是最好的。
    二、如果装了中文插件之后,能否设置页面也显示为中文(不是很重要)

Transparency option

It would be great if we had an option for a transparent background. When splitting code into multiple tiles with a small monitor, the minimap takes up a lot of screen real estate.

This looks like the commit in the original codeglance that added transparency: vektah/CodeGlance@12a5d9e

I'm not sure if this is still possible.

Disable hightlights

I'm currently using CodeGlance Pro 1.5.2 in CLion 2022.1.3.

When there is an inspection warning in the code the respective part in CodeGlance is highlightes yellow:

image

(I don't actually know what this whole yellow line means, but anyway.)

I use CodeGlance to navigate, by basically remembering what each particular part of the code looks like in CodeGlance. The highlights are quite distracting and make it difficult to see the shape of the code.

At first I thought the option "Customize Highlighting Level" in the context menu was what I'm looking for, but that disables the warnings in the whole IDE (i.e. editor and scrollbars), which is not what I want. I want to keep the warnings, I just don't want them to cause highlights in CodeGlance.

About Inlay hints

当你看到在minimap中的底部出现大量空白时或者视窗不在正确的位置,这很有可能是Inlay hints导致的,它让编辑器多出了很多行!虽然我可以做到在minimap中补充一行,但是会影响到其他显示功能,为了补充这条线需要更改计算规则,我尝试改过,最后会导致quick glance功能计算位置错误,所以决定不更改这个错误,因为它本身不存在于编辑器中,谢谢大家。

[BUG] Plugin crash after creating a blank Typescript file

  1. Which Glance version and IDEA version?

Rider 2022.1.1
CodeGlance 1.3.2

  1. Do you enabled reader mode option?

Don't think I did, no

  1. Could you show Glance config picture and minimap picture?

image

  1. What steps will reproduce the issue?

Create a new empty .ts file

Stacktrace:

Worker exited due to exception

java.lang.IndexOutOfBoundsException: Wrong line: 0. Available lines count: 0
	at com.intellij.openapi.editor.impl.LineSet.checkLineIndex(LineSet.java:200)
	at com.intellij.openapi.editor.impl.LineSet.getLineStart(LineSet.java:181)
	at com.intellij.openapi.editor.impl.LineIteratorImpl.getStart(LineIteratorImpl.java:35)
	at com.nasller.codeglance.render.Minimap.update(Minimap.kt:71)
	at com.nasller.codeglance.panel.GlancePanel.computeInReadAction(GlancePanel.kt:83)
	at com.nasller.codeglance.panel.AbstractGlancePanel$updateTask$1.computeInReadAction(AbstractGlancePanel.kt:42)
	at com.intellij.openapi.progress.util.ReadTask.performInReadAction(ReadTask.java:49)
	at com.intellij.openapi.progress.util.ReadTask.lambda$runBackgroundProcess$0(ReadTask.java:66)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:933)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:68)
	at com.intellij.openapi.progress.util.ReadTask.runBackgroundProcess(ReadTask.java:66)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runUnderProgress$5(ProgressIndicatorUtils.java:265)
	at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:58)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:189)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:176)
	at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:58)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runUnderProgress(ProgressIndicatorUtils.java:263)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils$4.run(ProgressIndicatorUtils.java:213)
	at com.intellij.codeWithMe.ClientId$Companion$decorateRunnable$1.run(ClientId.kt:278)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
	at java.base/java.lang.Thread.run(Thread.java:829)

[FEATURE] Add support for click and drag

Hello and thanks for this plugin which I use everyday!

In the current version of the plugin, you can click and drag (up and down) the minimap slider. If you click anywhere within the minimap panel outside of the slider, it jumps to that location but does not allow you to drag the slider up and down. This makes it so I have to click the location I want, and then click the slider again to scroll up and down. Visual Studio Code and Sublime Text's minimap allows you to click and drag anywhere within the minimap. I would love for this ability to be added to CodeGlance Pro.

CodeGlancePro
CodeGlance Minimap

VS Code
VSCode Minimap

Thanks!

[BUG] IndexOutOfBoundsException: Wrong line: 0. Available lines count: 0

  1. Which Glance version and IDEA version?
    Glance: 1.3.2
    IJ: IU-221.5080.210

  2. Do you enabled reader mode option?
    no

Stacktrace:

Worker exited due to exception

java.lang.IndexOutOfBoundsException: Wrong line: 0. Available lines count: 0
	at com.intellij.openapi.editor.impl.LineSet.checkLineIndex(LineSet.java:200)
	at com.intellij.openapi.editor.impl.LineSet.getLineStart(LineSet.java:181)
	at com.intellij.openapi.editor.impl.LineIteratorImpl.getStart(LineIteratorImpl.java:35)
	at com.nasller.codeglance.render.Minimap.update(Minimap.kt:71)
	at com.nasller.codeglance.panel.GlancePanel.computeInReadAction(GlancePanel.kt:83)
	at com.nasller.codeglance.panel.AbstractGlancePanel$updateTask$1.computeInReadAction(AbstractGlancePanel.kt:42)
	at com.intellij.openapi.progress.util.ReadTask.performInReadAction(ReadTask.java:49)
	at com.intellij.openapi.progress.util.ReadTask.lambda$runBackgroundProcess$0(ReadTask.java:66)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:933)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:68)
	at com.intellij.openapi.progress.util.ReadTask.runBackgroundProcess(ReadTask.java:66)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runUnderProgress$5(ProgressIndicatorUtils.java:265)
	at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:58)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:189)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:176)
	at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:58)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runUnderProgress(ProgressIndicatorUtils.java:263)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils$4.run(ProgressIndicatorUtils.java:213)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
	at java.base/java.lang.Thread.run(Thread.java:829)

[BUG] Laggy scrolling when NOT using CodeGlance Pro

Which Glance version and IDEA version?

PHPStorm 2022.1.3 build 221.5921.28
CodeGlance Pro 1.4.1

What steps will reproduce the issue?

  1. Start a fresh installation of PHPStorm (or similar).
  2. Scroll a long file - scrolling is smooth.
  3. Install CodeGlance Pro and enable it - scrolling is smooth.
  4. Disable CodeGlance Pro - scrolling is laggy/janky.
  5. Disable the CodeGlance Pro plugin - restart IDE - scrolling is laggy/janky.
  6. Uninstall CodeGlance Pro plugin - restart IDE - scrolling is STILL laggy/janky.

It seems like CodeGlance Pro changes the IDE settings in some way that affects scrolling performance, even when CodeGlance Pro is disabled or uninstalled.

Furthermore, scrolling large files with CodeGlance Pro enabled is a bit laggy. On a fresh IDE it's very smooth even for large files. In my opinion this is not an issue as long as I can temporarily disable CodeGlance Pro for large files to make scrolling smooth, like the default. But instead scrolling is always laggy/janky when CodeGlance Pro is disabled.

demo.mp4

[BUG] No error show in the minimap

  1. Which Glance version and IDEA version? Glance: 1.2.8, JetBrains Rider 2022.1 EAP 9

  2. Do you enabled reader mode option? No

  3. Could you show Glance config picture and minimap picture?

Config:
image

With Scrollbar (show):
image

Without Scrollbar (not-show):
image

  1. What steps will reproduce the issue? Any error in code

[BUG] Startup crash on Gateway EAP/Client 2022.1.2 (JBC-221.5787.30)

  1. Which Glance version and IDEA version? 1.3.5

  2. Do you enabled reader mode option? No

  3. Could you show Glance config picture and minimap picture? No, it didn't start: crashed at start

  4. What steps will reproduce the issue? Open a remote project, install the plugin, restart: Crash

Catch

java.lang.NoClassDefFoundError: com/intellij/openapi/vcs/impl/LineStatusTrackerManagerI
	at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
	at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166)
	at java.base/java.lang.Class.getDeclaredMethod(Class.java:2473)
	at java.desktop/java.awt.Component.isCoalesceEventsOverriden(Component.java:6339)
	at java.desktop/java.awt.Component.isCoalesceEventsOverriden(Component.java:6328)
	at java.desktop/java.awt.Component$3.run(Component.java:6293)
	at java.desktop/java.awt.Component$3.run(Component.java:6291)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.desktop/java.awt.Component.checkCoalescing(Component.java:6290)
	at java.desktop/java.awt.Component.<init>(Component.java:6259)
	at java.desktop/java.awt.Container.<init>(Container.java:296)
	at java.desktop/javax.swing.JComponent.<init>(JComponent.java:599)
	at java.desktop/javax.swing.JPanel.<init>(JPanel.java:82)
	at java.desktop/javax.swing.JPanel.<init>(JPanel.java:109)
	at java.desktop/javax.swing.JPanel.<init>(JPanel.java:117)
	at com.nasller.codeglance.panel.AbstractGlancePanel.<init>(AbstractGlancePanel.kt:25)
	at com.nasller.codeglance.panel.AbstractGlancePanel.<init>(AbstractGlancePanel.kt)
	at com.nasller.codeglance.panel.GlancePanel.<init>(GlancePanel.kt:30)
	at com.nasller.codeglance.EditorPanelInjector.getMyPanel(EditorPanelInjector.kt:100)
	at com.nasller.codeglance.EditorPanelInjector.fileOpened(EditorPanelInjector.kt:37)
	at com.intellij.util.messages.impl.MessageBusImpl.invokeMethod(MessageBusImpl.java:642)
	at com.intellij.util.messages.impl.MessageBusImpl.invokeListener(MessageBusImpl.java:617)
	at com.intellij.util.messages.impl.MessageBusImpl.deliverMessage(MessageBusImpl.java:417)
	at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:391)
	at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:373)
	at com.intellij.util.messages.impl.MessageBusImpl.access$200(MessageBusImpl.java:34)
	at com.intellij.util.messages.impl.MessageBusImpl$MessagePublisher.invoke(MessageBusImpl.java:180)
	at com.sun.proxy.$Proxy113.fileOpened(Unknown Source)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl4Edt$20(FileEditorManagerImpl.java:1071)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$7.lambda$run$0(FileEditorManagerImpl.java:1156)
	at com.intellij.openapi.util.ExpirableRunnable$1.run(ExpirableRunnable.java:17)
	at com.intellij.openapi.wm.impl.FocusManagerImpl.lambda$doWhenFocusSettlesDown$3(FocusManagerImpl.java:181)
	at com.intellij.util.ui.EdtInvocationManager.invokeLaterIfNeeded(EdtInvocationManager.java:101)
	at com.intellij.ide.IdeEventQueue.ifFocusEventsInTheQueue(IdeEventQueue.java:179)
	at com.intellij.ide.IdeEventQueue.executeWhenAllFocusEventsLeftTheQueue(IdeEventQueue.java:132)
	at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:172)
	at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:178)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$7.run(FileEditorManagerImpl.java:1155)
	at com.intellij.openapi.util.BusyObject$Impl$Simple.execute(BusyObject.java:105)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.notifyPublisher(FileEditorManagerImpl.java:1152)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl4Edt(FileEditorManagerImpl.java:1068)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl4$17(FileEditorManagerImpl.java:961)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.runBulkTabChange(FileEditorManagerImpl.java:1697)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl4$18(FileEditorManagerImpl.java:960)
	at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:490)
	at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:523)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl4(FileEditorManagerImpl.java:957)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl2$14(FileEditorManagerImpl.java:885)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:219)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:174)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:164)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:150)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:884)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:764)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:724)
	at com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java:127)
	at com.jetbrains.rdclient.fileEditors.FrontendFileEditorManager.openFileFromBackend$intellij_rd_client(FrontendFileEditorManager.kt:75)
	at com.jetbrains.rdclient.fileEditors.FrontendFileEditorHost.openComposite(FrontendFileEditorHost.kt:99)
	at com.jetbrains.rdclient.fileEditors.FrontendFileEditorHost.access$openComposite(FrontendFileEditorHost.kt:32)
	at com.jetbrains.rdclient.fileEditors.FrontendFileEditorHost$MyModelListener$extensionCreated$1.invoke(FrontendFileEditorHost.kt:51)
	at com.jetbrains.rdclient.fileEditors.FrontendFileEditorHost$MyModelListener$extensionCreated$1.invoke(FrontendFileEditorHost.kt:48)
	at com.jetbrains.rd.util.reactive.IViewableMap$view$1.invoke(ViewableCollections.kt:108)
	at com.jetbrains.rd.util.reactive.IViewableMap$view$1.invoke(ViewableCollections.kt:64)
	at com.jetbrains.rd.util.reactive.IViewableMap$adviseAddRemove$1.invoke(ViewableCollections.kt:126)
	at com.jetbrains.rd.util.reactive.IViewableMap$adviseAddRemove$1.invoke(ViewableCollections.kt:64)
	at com.jetbrains.rd.util.reactive.Signal.fire(Signal.kt:32)
	at com.jetbrains.rd.util.reactive.ViewableMap.put(ViewableMap.kt:29)
	at com.jetbrains.rd.framework.impl.RdMap.onWireReceived(RdMap.kt:143)
	at com.jetbrains.rd.platform.codeWithMe.protocol.SecureWireOverStreamTransport$advise$wrapper$1.onWireReceived(SecureWireOverStreamTransport.kt:111)
	at com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:57)
	at com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:12)
	at com.jetbrains.rd.framework.impl.ProtocolContexts.readMessageContextAndInvoke(ProtocolContexts.kt:151)
	at com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:56)
	at com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:12)
	at com.jetbrains.rdclient.protocol.RdDispatcher.flushAll(RdDispatcher.kt:97)
	at com.jetbrains.rdclient.protocol.RdDispatcher.access$flushAll(RdDispatcher.kt:18)
	at com.jetbrains.rdclient.protocol.RdDispatcher$flushAllRunnable$1.run(RdDispatcher.kt:23)
	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:215)
	at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:22)
	at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:197)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:873)
	at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:511)
	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:69)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:112)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:42)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:898)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:746)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:439)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:803)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:438)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)
	at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:604)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:436)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:873)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:484)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Caused by: java.lang.ClassNotFoundException: com.intellij.openapi.vcs.impl.LineStatusTrackerManagerI PluginClassLoader(plugin=PluginDescriptor(name=CodeGlance Pro, id=com.nasller.CodeGlancePro, descriptorPath=plugin.xml, path=~/Library/Application Support/JetBrains/JetBrainsClient221.5787.30/plugins/CodeGlance Pro, version=1.3.5, package=null, isBundled=false), packagePrefix=null, instanceId=5, state=active)
	at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:215)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
	... 108 more

[BUG] Worker exited due to exception

  1. Which Glance version and IDEA version?
    WebStorm 2022.1
    Build #WS-221.5080.193, built on April 11, 2022
    Runtime version: 11.0.14.1+1-b2043.25 x86_64
    VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
    macOS 12.3.1
    GC: G1 Young Generation, G1 Old Generation

  2. Do you enabled reader mode option?
    No.

  3. Could you show Glance config picture and minimap picture?

11

  1. What steps will reproduce the issue?
    This problem occurs when starting the IDE.

  2. Error info:
    Worker exited due to exception

java.lang.IndexOutOfBoundsException: Wrong line: 0. Available lines count: 0
at com.intellij.openapi.editor.impl.LineSet.checkLineIndex(LineSet.java:200)
at com.intellij.openapi.editor.impl.LineSet.getLineStart(LineSet.java:181)
at com.intellij.openapi.editor.impl.LineIteratorImpl.getStart(LineIteratorImpl.java:35)
at com.nasller.codeglance.render.Minimap.update(Minimap.kt:71)
at com.nasller.codeglance.panel.GlancePanel.computeInReadAction(GlancePanel.kt:83)
at com.nasller.codeglance.panel.AbstractGlancePanel$updateTask$1.computeInReadAction(AbstractGlancePanel.kt:42)
at com.intellij.openapi.progress.util.ReadTask.performInReadAction(ReadTask.java:49)
at com.intellij.openapi.progress.util.ReadTask.lambda$runBackgroundProcess$0(ReadTask.java:66)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:933)
at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:68)
at com.intellij.openapi.progress.util.ReadTask.runBackgroundProcess(ReadTask.java:66)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runUnderProgress$5(ProgressIndicatorUtils.java:265)
at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:58)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:189)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:176)
at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:58)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runUnderProgress(ProgressIndicatorUtils.java:263)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils$4.run(ProgressIndicatorUtils.java:213)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)

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.