nasller / codeglancepro Goto Github PK
View Code? Open in Web Editor NEWMinimap run on jetbrains platform.
License: Apache License 2.0
Minimap run on jetbrains platform.
License: Apache License 2.0
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?
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)
Which Glance version and IDEA version?
1.28 running in Rider 2022.2 EAP5
Do you enabled reader mode option?
No, I don't think so...
Could you show Glance config picture and minimap picture?
Yes
What steps will reproduce the issue?
Use CodeGlancePro with Rider 2022.2 EAP5
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.
Which Glance version and IDEA version?
Glance 1.2.5, IDEA 2021.3.3.
Do you enabled reader mode option?
No
Could you show Glance config picture and minimap picture?
(I made the viewport blue so it is easier to see)
Markers on the minimap,
Just like in Xcode 11 https://medium.com/@mumtaz.hussain/xcode-11-now-makes-mark-comments-a-lot-more-useful-with-minimap-feature-f8c658b293f
The position of the scrollbar on the mini-map is not the same as the position of the code. For example, if I pull the code to the bottom, the scrollbar of the mini-map is not at the bottom.
CodeGlance Pro 1.5.1
JetBrains Rider 2022.2.3
N/A
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
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
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:
代码超过1w行就开始卡了,打字都拖泥带水的
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.
I would like to be able to see breakpoints in scroll, taking full width - just like current line is selected in blue color
Which Glance version and IDEA version?
Glance v1.4.8 running in IntelliJ IDEA Ultimate 2022.2 (Build #IU-222.3345.118)
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.
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)
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.
I do believe that the title says it all good sir.
Please could you provide an option to hide the eye icon displayed in the top right corner of editors ?
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?
What steps will reproduce the issue?
Which Glance version and IDEA version?
Code Glance Pro 1.5.0 & Rider 2022.2.2 Build #RD-222.3962.23
Could you show Glance config picture and minimap picture?
Blackedout code my code for privacy reasons
What steps will reproduce the issue?
Open two windows in Rider and resize one window, which will resize the scroll bar
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.
Which Glance version and IDEA version?
IntelliJ IDEA 2022.1.1 (Ultimate Edition)
Could you show Glance config picture and minimap picture?
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)
Scrollbar currently is offset due to the minimap "coming before it". We should have the ability to place the minimap on the left of the scrollbar, so the scrollbar ends up on the edge of the window with the minimap to the left of it.
Sublime Text | IntelliJ IDEA + CodeGlance Pro | Visual Studio Code |
---|---|---|
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?
Which Glance version and IDEA version?
Glance: 1.3.2 (but happens also earlier)
IJ: IU-221.5080.210
Do you enabled reader mode option?
no
Could you show Glance config picture and minimap picture?
sure
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.
hi, in Webstorm, cannot coexist with [React Buddy] Plugin., After installing [React Buddy], it will not display.
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)
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
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!
Could you please update the plugin so that it can be used in dataspell, or it can also be used normally for files in ipynb format.
PhpStorm 2022.1 MacOS
当我使用两个屏幕工作时,鼠标总是在两个屏幕间移动。
只要鼠标经过了代码小地图,即便速度很快,也会触发预览窗口。
我觉得只需 100~200ms 左右的延迟,就可以改善这种现象。
不知道是否好修改,只是个建议。😁
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:
Although this blue is clearly visible when using a dark theme, it's hard to use with a light theme, particularly when unfocused.
Ideas:
For example, Visual Studio's implementation of the minimap is lacking a viewport background colour, but is still usable because of well defined borders:
Which Glance version and IDEA version?
IntelliJ IDEA 2022.1.2 (Ultimate Edition)
Do you enabled reader mode option?
What steps will reproduce the issue?
一、当代码达到4000+的时候会导致IDE的明显卡顿,滚动代码卡顿。目前的解决方案是当代码超过2000行不显示map。如果能优化是最好的。
二、如果装了中文插件之后,能否设置页面也显示为中文(不是很重要)
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.
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:
(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.
Is it possible to strip out comments from the minimap?
当你看到在minimap中的底部出现大量空白时或者视窗不在正确的位置,这很有可能是Inlay hints导致的,它让编辑器多出了很多行!虽然我可以做到在minimap中补充一行,但是会影响到其他显示功能,为了补充这条线需要更改计算规则,我尝试改过,最后会导致quick glance功能计算位置错误,所以决定不更改这个错误,因为它本身不存在于编辑器中,谢谢大家。
Rider 2022.1.1
CodeGlance 1.3.2
Don't think I did, no
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)
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.
Thanks!
Which Glance version and IDEA version?
Glance: 1.3.2
IJ: IU-221.5080.210
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)
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?
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.
Which Glance version and IDEA version? 1.3.5
Do you enabled reader mode option? No
Could you show Glance config picture and minimap picture? No, it didn't start: crashed at start
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
Love this plugin so much, Thank you for your work.
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
Do you enabled reader mode option?
No.
Could you show Glance config picture and minimap picture?
What steps will reproduce the issue?
This problem occurs when starting the IDE.
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.