Nasller / CodeGlancePro

Minimap run on jetbrains platform.
Apache License 2.0
204 stars 22 forks source link

[BUG] White flickering rectangle at bottom of minimap when typing #96

Open Jeremy-Doneghue opened 1 year ago

Jeremy-Doneghue commented 1 year ago
  1. Which Glance version and IDEA version? Glance: 1.7.3 Idea Intellij IntelliJ IDEA 2023.2 Build #IU-232.8660.185, built on July 26, 2023

  2. Could you show Glance config picture and minimap picture? flicker

Using default configuration of codeglance

  1. What steps will reproduce the issue?

Type anything in the file. Seems to affect all file types, but I have observed it in .kt and .tsx files. The white box seems to be in the overflow where the file has no more lines, but intellij renders blank space to fill the height of the window. i.e. It's bigger on files with few lines.

Nasller commented 1 year ago

sorry,unable to reproduce

Nasller commented 1 year ago

can provide your file ?

Jeremy-Doneghue commented 1 year ago

Sorry I can't, commercial software. But this happens on any file including newly created ones. I also disabled all other 3rd party plugins. flicker2

Nasller commented 1 year ago

CodeGlance Pro-1.7.4-SNAPSHOT.zip try this

Jeremy-Doneghue commented 1 year ago

Issue still happening unfortunately.

I'm on Ubuntu 20.04.6 LTS if that's relevant.

Nasller commented 1 year ago

image disable this, then see again

Jeremy-Doneghue commented 1 year ago

Yup that fixed it, thanks.

thosil commented 1 year ago

Got the same bug using CodeGlancePro 1.7.3 on PyCharm 2023.2 on Ubuntu 22.04.3 LTS (X11 + nvidia) The workaround fixed the issue

Nasller commented 1 year ago

It seems to be a platform specific issue and cannot be reproduced without Ubuntu system machines

1015onasaturdaynight commented 1 year ago

Seeing the same here on:

CodeGlance Pro 1.7.3 CLion 2023.2 Build #CL-232.8660.186, built on July 26, 2023 Red Hat Enterprise Linux release 8.8 (Ootpa).

Disabling Fast Minimap resolved it here as well. Thanks!

Nasller commented 1 year ago

https://plugins.jetbrains.com/plugin/18824-codeglance-pro/versions/preview some one can help me test the latest version?

thosil commented 1 year ago

Hi @Nasller I installed the lastest version and unfortunately it still "flash". For the record, I installed 1.7.4-nightly-2023-08-21T13-53 and re-enabled "Experimental: Use FastMinimap For Main Editor" Below a screenshot of the settings image

Let me know if I can be of any help

Nasller commented 1 year ago

Hi @Nasller I installed the lastest version and unfortunately it still "flash". For the record, I installed 1.7.4-nightly-2023-08-21T13-53 and re-enabled "Experimental: Use FastMinimap For Main Editor" Below a screenshot of the settings image

Let me know if I can be of any help

I don't have a Linux machine to debug this issue right now,If you know the development of IDEA's plugin, can it help me catch the value of previewImg and renderDataList variables? This is too strange, I cannot reproduce it on Windows11

thosil commented 1 year ago

I don't have a Linux machine to debug this issue right now,If you know the development of IDEA's plugin, can it help me catch the value of previewImg and renderDataList variables? This is too strange, I cannot reproduce it on Windows11

Unfortunately I'm not used to develop IDEA's plugins, nor java/kotlin projects. I cloned the project and tried to build it (struggling a little with some weird gradle errors) but eventually got stuck with a dependency that couldn't be downloaded (jetbrains annotation 24.0.0).

Nasller commented 1 year ago

I don't have a Linux machine to debug this issue right now,If you know the development of IDEA's plugin, can it help me catch the value of previewImg and renderDataList variables? This is too strange, I cannot reproduce it on Windows11

Unfortunately I'm not used to develop IDEA's plugins, nor java/kotlin projects. I cloned the project and tried to build it (struggling a little with some weird gradle errors) but eventually got stuck with a dependency that couldn't be downloaded (jetbrains annotation 24.0.0).

You can try to open the project with idea instead of building it.idea will automatically download gradle dependencies. Building the project only needs to be done at the time of release.

Nasller commented 1 year ago

When all the dependency work is completed, you can try to use the gradle runIde task to start an idea-like sandbox simulation.

Jeremy-Doneghue commented 1 year ago

https://plugins.jetbrains.com/plugin/18824-codeglance-pro/versions/preview some one can help me test the latest version?

I tested it, it still has the flickering when fast minimap setting is enabled. Maybe you could install Ubuntu in a VM if you don't have a dedicated linux box?

thosil commented 1 year ago

When all the dependency work is completed, you can try to use the gradle runIde task to start an idea-like sandbox simulation.

That's what I did, but I keep getting this error: image

I started from scratch:

In the project settings, I use SDK jbr-17.

When I try to download the .pom file following the url in the error message (this one: https://cache-redirector.jetbrains.com/plugins.jetbrains.com/maven/org/jetbrains/annotations/24.0.0/annotations-24.0.0.pom) it gives a 404:

# curl -L -I  https://cache-redirector.jetbrains.com/plugins.jetbrains.com/maven/org/jetbrains/annotations/24.0.0/annotations-24.0.0.pom
HTTP/2 302 
content-type: text/html
content-length: 138
location: https://dtahfujkndrht.cloudfront.net/plugins.jetbrains.com/maven/org/jetbrains/annotations/24.0.0/annotations-24.0.0.pom
...
...
HTTP/2 404 
content-length: 0
date: Tue, 22 Aug 2023 06:34:06 GMT
server: Kestrel
x-artifact-caching-proxy-cached-status: 404
x-artifact-caching-proxy-cached-until: Tue, 22 Aug 2023 06:39:06 GMT
x-artifact-caching-proxy: NEGATIVE_MISS
x-cache: Error from cloudfront
via: 1.1 a33954238ddc352c152e2314fffad1ae.cloudfront.net (CloudFront)
x-amz-cf-pop: BRU50-C1
x-amz-cf-id: H

Either I didn't configure the project correctly or there's a problem with the annotations package cache :grimacing:

Nasller commented 1 year ago

24.0.0.zip put it into caches\modules-2\files-2.1\org.jetbrains\annotations, then try again image

Nasller commented 1 year ago

do you have discord or other contact method? let me help you

thosil commented 1 year ago

I downloaded the archive, unziped in the ~/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations:

find  ~/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/24.0.0
/home/tsi/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/24.0.0
/home/tsi/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/24.0.0/69b8b443c437fdeefa8d20c18d257b94836a92b9
/home/tsi/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/24.0.0/69b8b443c437fdeefa8d20c18d257b94836a92b9/annotations-24.0.0.jar
/home/tsi/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/24.0.0/d0f77e3bd1ba4927fc8bcf0e1ca3b76f6e9b34f8
/home/tsi/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/24.0.0/d0f77e3bd1ba4927fc8bcf0e1ca3b76f6e9b34f8/annotations-24.0.0-sources.jar

But it didn't help :-(

You'll probably go faster by installing an ubuntu vm + intellij, because I have no more time to spend on it these days, sorry.

Nasller commented 1 year ago

okay,I know. Thanks for your help.

Nasller commented 1 year ago

I downloaded an Ubuntu virtual machine and tried to run the idea and plugin, but unfortunately there was no flashing white box cf911222-5c0e-4bc0-84d6-b7e0ed037299 I created a new kt file for testing later, but it still cannot be reproduced

idle-code commented 11 months ago

I also have this issue on v1.7.6 (on Ubuntu 23.04) - this might be related to HW acceleration: codeglance_flash

After disabling experimental FastMinimap option it goes away.

FichteFoll commented 7 months ago

Since it hasn't been mentioned before, I also experience this problem on Arch Linux and have been for quite a while. As with the other reports, disabling the "experimental" checkbox makes it go away.

Nasller commented 7 months ago

Sorry, since I don't have a Linux machine, I don't know how to fix this problem. If someone happens to know how to develop plugin, please help fix this problem. Thank you.