carlrobertoh / CodeGPT

The leading open-source AI copilot for JetBrains. Connect to any model in any environment, and customize your coding experience in any way you like.
https://codegpt.ee
Apache License 2.0
1.1k stars 232 forks source link

Personas can't be displayed or modified #686

Open CharlesFromBytel opened 2 months ago

CharlesFromBytel commented 2 months ago

What happened?

In the settings, the Personas can't be displayed, keep Loading… The other settings are fine.

Relevant log output or stack trace

Nothing in the log.

Steps to reproduce

I don't know since when it happened. Initially, when I started using the plugin two weeks ago, I deleted all the personas (if I remember right) to only keep one. I was about to modify that one persona when I stumble upon the ever-loading screen. Oddly, when I look in the chat window, my Default persona in the top part of the screen is still there. When I use the @ to list the personas, they seem to be all there too. image image image

CodeGPT version

2.11.0-241.1

Operating System

Windows

carlrobertoh commented 2 months ago

Thanks for reporting!

This seems like some sort of deserialization error where the modified record can no longer be recognized. As a workaround, you could try resetting the state by deleting the file CodeGPT_PersonaSettings.xml from the plugin's settings.

https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs

CharlesFromBytel commented 2 months ago

I deleted this file C:\Users\%USERPROFILE%\AppData\Roaming\JetBrains\IntelliJIdea2024.2\options\CodeGPT_PersonaSettings.xml and it solved my problem.