data-weave-intellij-plugin icon indicating copy to clipboard operation
data-weave-intellij-plugin copied to clipboard

Fixed plugin crash and add libraries

Open abiharbani opened this issue 1 year ago • 1 comments

In a recent commit, there was a full dispose that caused the WeavePreviewComponent not being able to be reused. This causes plugin crash in the IDE when opening the Dataweave preview. The proposed solution is to recreate the WeavePreviewComponent when setting a new DWL file, because WeavePreviewComponent is always in a disposed state at this time.

In a dataweave that has java import for classes that live in a library, the Dataweave preview complains that it cannot find the class file. The proposed solution is to send all libraries, except SDK, to the agent so that the class file is available when the script engine evaluates the Dataweave in the agent.

abiharbani avatar Jul 03 '24 00:07 abiharbani

Thanks for the contribution! Unfortunately we can't verify the commit author(s): Abi Harbani <a***@g***.com>. One possible solution is to add that email to your GitHub account. Alternatively you can change your commits to another email and force push the change. After getting your commits associated with your GitHub account, sign the Salesforce Inc. Contributor License Agreement and this Pull Request will be revalidated.

salesforce-cla[bot] avatar Jul 03 '24 17:07 salesforce-cla[bot]