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.
Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Why Auto-completion Is Not Working?
Make sure Groovy API Library Is Added to Project
The Groovy API library must be part of the project, since that contains pricefx interfaces/classes which are used by IDEA for the auto-completion.
Open the project in IntelliJ IDEA.
Open Maven tool window and click the Reload button. If you don’t see Maven tool window, right click the root folder and select Pricefx > Generate pom.xml. Click Local Maven Project in the popup that appears.
This will add Studio: net.pricefx:groovy-api library in External libraries and auto completion should work from now.
File > Invalidate Caches > select Clear file system cache and Local history and Clear VCS Log caches and indexes > confirm Invalidate and Restart.
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.
...
To do that, open Maven tool window and click the Reload button. If you don’t see Maven tool window, right click the root folder and select Pricefx > Generate pom.xml. Click Local Maven Project in the popup that appears.
Auto-Completion Works in General, but Not for Some Classes
Does the auto-completion not work when for Filter? Do you have element called "Filter" in one of your logics? Try to give it another name as described in Naming Conventions. Alternatively explicitely add import com.googlecode.genericdao.search.Filter
.
How to ensure Studio is using the latest Groovy API?
Each Studio version is bundled with certain version the Groovy API. Make sure you are using the latest Studio to have the latest Groovy API.
...
FollowUpgrade Studio Project Libraries
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
...
Invalidate caches: File > Invalidate Cache / Restart > Clear file system cache and Local History and Clear VCS Log caches and indexes > confirm Invalidate and Restart.
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.
...