forcedotcom / try-acb-feedback

BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Graphical mode not rendering #49

Open jimdandrews opened 1 year ago

jimdandrews commented 1 year ago

<!— This repo is for feedback on Anypoint Code Builder during open Beta, please limit your issues to those associated with Anypoint Code Builder. Please let us know if you encounter any issues both creating or launching the web IDEs along with issues implementing your use cases.

This is not a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, please use official support channels. -->

Describe the bug Using Desktop ACB, I was trying to open a flow from an existing project which had been built using Studio. This project had some bigger, more significant flows to work with. I was able to import the project just fine, but opening any of the project flow xml's causes the xml to open on the right (as expected) and the graphical mode to hang with the message "Preparing flow canvas". I thought it might be the complexity of the flow, or dependencies it couldn't reach. So, then, as an experiment, i uploaded a very simple project with a single flow that I had built in Desktop ACB to the Web IDE. And the same thing happened. the graphical view hangs up "preparing flow canvas". So, then i took the more complex Studio flow, and in my open simple project in Desktop ACB , I opened an existing flow file and pasted in flows from the complex flow. and it worked. So it doesn't seem like the graphical viewer is finding the flows too complex to render.

To Reproduce Steps to reproduce the behavior:

  1. create a basic API project in ACB Desktop
  2. use a simple flow like an HTTP listener that logs a message and sets the payload as a hard coded string value
  3. upload the project folder to the ACB Web IDE
  4. open the folder
  5. open the flow file.
  6. flow canvas hangs

Likewise,

  1. create a project in Studio,
  2. create a flow
  3. import the project into ACB desktop
  4. open the flow file
  5. flow canvas hangs.

Expected behavior I expect the projects to behave the same regarless of the origin of the project.

Impact Select from

Frequency Select from

Screenshots/Recordings If applicable, add screenshots or recordings to help explain your problem. They really help!

image image

Please complete the following information:

VC version 1.81.1 VC extension pack plugin v1.0.2

Additional context Add any other context about the problem here.

github-actions[bot] commented 1 year ago

Hello @jimdandrews , thank you for submitting an issue - we appreciate your time. Our product team will take a look and give you an update as soon as we can. We aim for a 3 day response time but please be patient if we take longer.

sravannerella commented 11 months ago

Hi, I'm trying the latest version of ACB Desktop and running into this issue. This seems to be happening when I open the Mule code built with the Anypoint Studio code in ACB. It gets stuck in Rendering and even after 15-20 mins, it seems to be stuck there.

simoneegeib commented 11 months ago

Hi @sravannerella , this is likely because there are some dependencies missing in your project. Please open the output and check the errors in the log. In Jim's case, he had to log into Anypoint platform, so that his dependencies from Exchange were loaded into the project

sravannerella commented 11 months ago

@simoneegeib, thanks for getting back to me. I attempted to clean the project and install the dependencies while logged into the Anypoint platform. Even after a refresh, I'm still running into this issue. Please find the below screenshot for reference. Please suggest. Thank you 😊

image
simoneegeib commented 11 months ago

I don't see any errors. Please go to output and select "Mule DX Server" and let me know if you see any exceptions there

sravannerella commented 11 months ago

Hello @simoneegeib, Please find the logs from the Mule DX Server. Btw, I performed mvn clean and opened the project multiple times, yet I run into the same error.

java.lang.IllegalStateException: Cannot explore URL: file:/Users/sravannerella/.m2/repository/org/apache/cxf/cxf-core/3.5.5/cxf-core-3.5.5.jar
    at org.mule.runtime.module.artifact.internal.util.FileJarExplorer.explore(FileJarExplorer.java:127)
    at org.mule.runtime.module.deployment.impl.internal.maven.AbstractMavenClassLoaderModelLoader.discoverLocalPackages(AbstractMavenClassLoaderModelLoader.java:466)
    at org.mule.runtime.module.deployment.impl.internal.maven.AbstractMavenClassLoaderModelLoader.createLightPackageClassLoaderModel(AbstractMavenClassLoaderModelLoader.java:434)

image