If you encounter issues while working with the IntelliJ IDEA plugin, please report them. Internal people can report to JIRA in PFAUT project. Partners or customers can raise a ticket to the Support portal. If possible, add a screenshot or attach the IntelliJ IDEA log file to the message. The log file is located at Help > Show Log in Files/Explorer/Finder; idea.log is the current log file.
Why Auto-completion Is Not Working?
Logic 'elements' Folders Must Be Marked as a 'Source' Folder
Did you mark the logic elements directories as source?
Pricefx Framework Must Be Added to Project
Have you added the Pricefx Framework support? Follow the steps under Upgrade Studio Project Libraries. You should also do this when a major Studio or Pricefx versions are released.
Make Logic Element Names Unique
It can happen that auto-completion does not work for referring elements within the same logic or in 'libs' (resp. legacy 'lib').
If you have two elements of the same name in the project, IntelliJ IDEA does not know which Class (each logic element is turned into a Class) should be evaluated.
The solution is to avoid having elements of the same name in the same project. You can, for example:
For library logics add a suffix "Utils" to the names of the Groovy library elements.
For other logics:
Rename the elements, if possible and reasonable.
Temporarily move the logics with conflicting element names (which you’re not working on and are stored safely in Git) out of the project, so that they do not interfere with the logics which you need to work on.
Auto-Completion Works in General, but Not for Some Classes
Do you have element called "Filter" in one of your logics? Try to give it another name as described in Naming Conventions.
Cannot Upgrade Studio
If you have not switched to JetBrains MarketPlace yet, follow these steps: https://pricefx.atlassian.net/wiki/spaces/KB/pages/1679196175/Install+Studio#Remove/Reinstall-Plugin
PKIX Path Building Failed: SunCertPathBuilderException
If you get a following exception:
“net.pricefx.restapiclient.PfxClientException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”
your computer cannot connect to Pricefx in a secure way.
Troubleshooting steps:
Go to the Pricefx partition using the web browser. If the browser displays a problem with the certificate, check the error message. If the certificate expired, contact Pricefx Support via helpdesk.
If your company requires that a proxy server is used, set up the proxy server also in IDEA. See https://pricefx.atlassian.net/wiki/spaces/KB/pages/1679196175/Install+Studio#Install-Plugin.
If you still cannot connect, your certificate store may be outdated (for older computers). In that case visit the Pricefx partition using the web browser. Export the certificate using the browser and import it to the IDEA certificate store in Preferences > search “Server Certificates”.
IntelliJ IDEA General Troubleshooting
If IntelliJ IDEA is behaving strangely, the last chance is to remove the project related config files:
Invalidate caches: File > Invalidate Cache / Restart > Clear file system cache and Local History.
Close IDEA.
In the MacOS, delete IDEA config files of the project:
Browse to the project folder.
Find the .iml file in the project root and delete it.
Find the .idea folder in the project root and delete it.
Reopen the project in IDEA.
Code Reference Info:
https://www.jetbrains.com/help/idea/viewing-reference-information.html
Install Older Version of IntelliJ IDEA
Verify in the Pricefx Studio Release Notes that you use a supported IntelliJ IDEA version.
Note that Pricefx Studio has been known to have some issues with IntelliJ 2021.3, so try installing 2021.2 or another version and see if that fixes the issue.
Older versions of IntelliJ: https://www.jetbrains.com/idea/download/other.html