Written by

Developer at Healthy Reply
Question Pietro Di Leo · Jul 4

How to export a project XML file for deploy with Visual Studio Code?

Hello everybody, 

I would like to export project contents using Visual Studio Code, as well as I do with InterSystems Studio.

However, while attempting the export through the InterSystems extension I get the following error:

- There are no folders in the current workspace that code can be exported to.

These are the step to reproduce my error:

  1. Create and save a new VSCode workspace
  2. Open a local directory 
  3. Go to the InterSystems extension
  4. Open "Projects" panel and right-click on the project you want to export
  5. Click on "Export Project Contents"

Anyone can help me solving this issue?

Thank you in advance 

Product version: IRIS 2025.1

Comments

John Murray · Jul 4

What does your xxx.code-workspace file contain?

0
Pietro Di Leo  Jul 4 to John Murray

Hi John, this is my workspace file:
 

{
	"folders": [
		{
			"path": "."
		},
		{
			"name": "Site Specific - CCN-16778 - Avallo Pazienti Stranieri - fpg_dev_production:DEV",
			"uri": "isfs://fpg_dev_production:dev/?project=Site Specific - CCN-16778 - Avallo Pazienti Stranieri"
		}
	],
	"settings": {}
}
0
John Murray  Jul 4 to Pietro Di Leo

I think the command to export from a project only exports the project's server-side classes / routines to individual client-side files.

Since your title mentions deployment I'm guessing you want all the project members exported into a single XML file.

An export of multiple server-side items to a single XML can already be done using the `ObjectScript: Export Documents to XML File...` command from Palette. But currently this can't auto-select only the members of a project.

0
Pietro Di Leo  Jul 7 to John Murray

Hi John, ok so I misunderstood the meaning of the command. Actually, I tried with the "ObjectScript: Export Documents to XML File", but it's a bit inconvenient since, as you said, it requires you to manually choose the file, negating the purpose of creating a project in advance.

0
Jhonn Mick · Jul 5

Hi Pietro, the error you're seeing usually means that your VS Code workspace doesn't have any folders opened directly. To fix it, make sure you've opened a folder, not just a file or an empty workspace—go to File > Open Folder..., select the folder where you want the exported files saved, and then try exporting the project again from the InterSystems extension. This should enable the "Export Project Contents" feature to work properly.

0
Pietro Di Leo  Jul 7 to Jhonn Mick

Hello Jhonn, that is exactly what I've done but unfortunately it doesn't seem to work

0
Felipe Carvalho · Jul 7

Hello everyone,

I have the same problem. The folder is open in the workspace, but when I choose Export Project Contents, the following message appears:

0
Natale Piluso · Oct 10

Hi Pietro,

have you found any new solutions to the problem you described?

0