uuid-generator-plugin icon indicating copy to clipboard operation
uuid-generator-plugin copied to clipboard

(MacOS) Option-Enter Replace sometimes places the UUID incorrectly

Open babramovitch opened this issue 3 years ago • 7 comments

When I try to replace the gen command with a new UUID using Option-Enter to speed things up, it sometimes places the new UUID incorrectly. This doesn't happen if I mouse click on the content, then choose additional actions and then choose replace.

This is on version 4.5.1

Screen Shot 2022-05-05 at 12 12 04 PM

into

Screen Shot 2022-05-05 at 12 10 31 PM

It's pretty frequent, like 1 in 4 are wrong

babramovitch avatar May 05 '22 19:05 babramovitch

Hi @babramovitch!

Thanks for the feedback, but I'm not able to reproduce this error... 😞

Could you please share at least:

  • the version of IntelliJ IDEA you're using
  • a sample projet / use-case to reproduce this exact behavior

leomillon avatar May 13 '22 07:05 leomillon

Same problem on linux. It seems to happen in high cpu usage situations with the IDE.

MartinX3 avatar Feb 05 '23 15:02 MartinX3

@leomillon I missed that you'd replied to this, but just saw MartinX3's notification.

It was happening before and up to on this. I'll see if I can reproduce it sometime in the next couple days in a sample project for you, as well as on any newer versions if there is.

Android Studio Chipmunk | 2021.2.1 Patch 1 Build #AI-212.5712.43.2112.8609683, built on May 18, 2022 Runtime version: 11.0.12+0-b1504.28-7817840 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 12.2 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 10 Registry: external.system.auto.import.disabled=true Non-Bundled Plugins: wu.seal.tool.jsontokotlin (3.7.4), com.github.leomillon.uuidgenerator (4.5.1), org.jetbrains.kotlin (212-1.7.0-release-281-AS5457.46), izhangzhihao.rainbow.brackets (6.25)

babramovitch avatar Feb 05 '23 19:02 babramovitch

Probably the project is dead and the author lost in the void due to lack of free time.

MartinX3 avatar Feb 05 '23 21:02 MartinX3

@MartinX3 you're right, I don't have much time to spend on this project right now BUT that does not mean that this projet is dead.

If you want to help solving this, please provide "a sample projet / use-case to reproduce this exact behavior".

And don't forget that you can also open a pull-request to fix it ;)

leomillon avatar Feb 06 '23 09:02 leomillon

Thank you for your info. :)

Sadly it's hard to reproduce. I need to have a large file and a high cpu usage in IntelliJ. Then I need to fast replace many uuid by hand with the Replace at cursor action, maybe with a macro. And then it happens rarely here. Or maybe he can trigger it because the IntelliJ is slow due to his low RAM.

MartinX3 avatar Feb 06 '23 09:02 MartinX3

The only thing I can think of is some "miss alignment" with characters indices when virtual hints are displayed in the document (changing virtually the characters indices).

That's why it would be nice to find a use-case easy to reproduce :/

leomillon avatar Feb 06 '23 10:02 leomillon