mulesoft-labs / data-weave-language-server

The DataWeave Language Server
BSD 3-Clause "New" or "Revised" License
13 stars 1 forks source link

Unable to Start DataWeave Agent to Run Preview #49

Open MattDaySappi opened 1 year ago

MattDaySappi commented 1 year ago

I'm not sure this is the right place to post this but I have run out of options. Whenever I press the blue arrow for DataWeave: Run Preview I get an error in the new side window "Unable to Start DataWeave Agent to Run Preview". I was able to use the preview normally until it suddenly stopped working a few weeks ago.

Things I have tried: Reinstalling the DataWeave extension Reinstalling Visual Studio Code Updating the extension Deleting sample data and adding it again as a new payload.xml Trying to run preview on multiple different projects

Any ideas for other things to try would be greatly appreciated.

FrederikSchaff commented 1 year ago

Hi, I could resolve the issue by making sure that Workspace (folder) = Project Source folder. (or not having a workspace at all), i.e. do not use multi-project workspaces.

{
    "folders": [
        {
            "path": "."
        }
    ],
    "settings": {}
}
MattDaySappi commented 1 year ago

Thank you for the response.

I don't use workspaces at all. Whenever I open a folder I use File > Open Folder and if I want multiple folders open I create a new window. If I'm right then opening folder this way avoids creating a workspace. I've even tried deleting all workspace related files in AppData that I could find and I still have my issue.