If you encounter issues while working with the IDEA plugin, please report them to support@pricefx.eu. If possible, attach the 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.
1 Table of Contents maxLevel 2
Why Auto-completion Is Not Working?
...
Logics marked must be marked as a 'Source' folder
Did you mark the folder with the logics as a Source folder in Module Settings?
Pricefx Framework must be added to the project
Did you add the Pricefx Framework support?
Re-activate GDSL script execution after it's crash
Navigate to the External Libraries > Pricefx API > logic-debug-xxxx-xx-xx.jar > PFXIdeaPublicGroovyAPI.gdsl. If the auto-completion had probably crashed, then you have to reactivate it by clicking 'Activate back' in the yellow popup. Note that it may take a few seconds before the yellow popup appears.
After
...
pressing "Activate Back",
...
you can also purge the IntelliJ cache: File > Invalidate Caches / Restart > Invalidate and Restart.
...
This should force IntelliJ to rebuild caches for the API documentation.
...
Groovy Library elements folder needs to be marked as 'Source'
- The auto-completion of methods in "libs" works only if the "elements" folder is marked as "Source" in IDEA. All logic elements are created in the default package and therefore the parent folder "elements" must be a root source folder. Best to do this in using right click on the root folder → Open Module Settings → Modules → Sources.
- The auto-completion of methods in "libs" does not work when the Groovy library is in a folder that is not a valid Java package name (= by default it has the date suffix "+YYYY-MM-DD"). In that case, simply rename and remove the suffix part if you do not have a logic with different validFrom.
...
Element names not unique
For cases when auto-completion
...
does not work for referring elements either within the same logic or in libs and lib: if you use two elements of the same name in the project, IDEA does not know which Class should be evaluated. Avoid having elements of the same name, so e.g. add a suffix "Utils" to the names of the Groovy library elements.
Cannot Fetch Due to "Error: Empty Key"
...