I have developed a PyCharm plugin, and there are several functionalities that require accessing the Project object. However, I have encountered an issue where, during the usage of the plugin, if the user modifies the project name or folder name, the names obtained through the API are not the updated ones but the previous ones.
Steps to Reproduce
1. Create a class that implements the interface
ToolWindowFactory. Use the
2. Create an Action and use the
actionPerformed method to obtain the ProjectName from the AnActionEvent object.
Obtain the new project path and name.
Obtain the old data, and even after restarting, the issue remains unresolved.
type.set("PC") // Target IDE Platform
// localPath.set("D:\\Soft\\JetBrains\\PyCharm 2022.3.3")