carlrobertoh / CodeGPT

JetBrains extension providing access to state-of-the-art LLMs, such as GPT-4, Claude 3, Code Llama, and others, all for free
https://codegpt.ee
Apache License 2.0
885 stars 184 forks source link

Codegpt occupies CPU resources #598

Closed 478137607 closed 2 weeks ago

478137607 commented 2 weeks ago

What happened?

I found that the idea is not running at all, but it still consumes a lot of CPU. After troubleshooting, I found that there is a monitor that keeps scanning my desktop folder (with a lot of files), causing the idea to lag. Further investigation reveals that there is a listener in this FileAlterationObserver, which is: ee. carlrobert. codegt FileWatcher。 I think this should be internal to the plugin, but I don't understand why my desktop folder needs to be scanned. idea:2022 image

Relevant log output or stack trace

No response

Steps to reproduce

No response

CodeGPT version

2.6.2

Operating System

Windows

carlrobertoh commented 2 weeks ago

Thanks for pointing that out!

The FileScanner is used to detect and automatically attach images to your chat sessions as they are created. I find this feature very handy, especially on macOS, where each screenshot appears on the desktop by default.

Screenshot 2024-06-24 at 11 59 22

If this is causing issues, you can toggle it off in the settings: Tools > CodeGPT > Configuration > Check for new screenshots automatically

478137607 commented 2 weeks ago

Thank you. Turning off this option will eliminate the issue