Article Gevorg Arutiunian · Mar 29, 2020 2m read

[ISC DEV] Continuous export of Classes/Rutines/DeepSee files to the working directory

Now the Classes/Rutines/DeepSee files will be automatically exported to the working directory after saving or compiling and files will be automatically deleted .

<iframe src="https://www.youtube.com/embed/B1pmqAQqd4M" frameborder="0" allowfullscreen> </iframe>

Installation

To install isc-dev , you just need to download and import the file isc-dev.xml from last release. Some ways to import isc-dev .xml file:

  • Go to Management Portal -> System Explorer -> Classes -> Import and select the XML file.
  • Drag the file over Studio.
  • Terminal command:
NS>do $system.OBJ.Load("yourpath/isc-dev.xml","ck")
NS>zpm
zpm: NS>install isc-dev

How to enable this feature:

  • After importing the class in the target namespace, run the following method to set up the working directory:
NS>do ##class(dev.code).workdir("/path/to/your/working/directory/src/")
  • Go to Management Portal -> System Administration -> Configuration -> Additional Settings -> Source Control.
  • Select the target namespace and set the dev.FileManExtension class as the main one and save it.
  • Try to create a new class in the studio and save/compile it
  • Enjoy!

So what we have, you can work in the studio without being distracted by anything, and all changes in the files will be automatically displayed in the working directory.

If you like it, you can vote for my app on the InterSystems IRIS Contest

Comments

Evgeny Shvarov · Mar 29, 2020

Hi Gev!

Thanks for sharing! This is a good feature for Studio users, but VSCode ObjectScript has it out of the box.

I'm curious, could you please add the option to export all the IRIS Analytics (DeepSee) artifacts?

Currently, to export Pivots and Dashboards I use the call:

d ##class(dev.code).export("*.DFI")

then to export Termlists, Pivot variables and calculated measures I use:

d ##class(dev.code).exportDeepSeeArtefacts()

And to export Cube class call:

d ##class(dev.code).export("MyCube.CLS")

Is it possible to add a method that will export DFI, artifacts and cubes classes at once?

0
Andy Stobirski · Oct 8, 2022

Can this be set to monitor individual folders? I have a series of different projects, each located in different locations, and would like them to reside in their own repositories.

0
Evgeny Shvarov  Oct 8, 2022 to Andy Stobirski

Hi Andy!

It's an open project - you can Fork, Implement and Pull Request. And people will benefit. 

Or at least publish an issue.

0
Gautam Rishi · Jul 13, 2023

hi all,
is there any way to export all my file from iris server to local dir. just like below command used to import it.
 

set dir="/your_download_dir/isc-dev
do $System.OBJ.ImportDir(dir,"*.xml;*.cls;*.mac;*.int;*.inc;*.dfi","cuk",,1)
0