go to post Dmitry Maslennikov · Mar 30, 2021 While you have just ordinary system terminal in VSCode you can open IRIS terminal as you would do it outside of VSCode, and it’s depends on where you are working. For Linux it would be just like iris session IRIS. Or if it’s in docker, it should be in docker exec, or docker-compose exec
go to post Dmitry Maslennikov · Mar 30, 2021 Hi, 1. Yes, there a few options for debugging ObjectScript code in VSCode, including running any class method or routine, attach to a running process, only CSP debugging not supported, yet 2. VSCode offers a ways to run system’s terminal internally. And you can run IRIS terminal there, if you working locally. If you working remotely, you’ll need to configure remote access to it, with ssh or telnet, and connect to it from VSCode internal terminal. Yes, as an option could be web terminal.
go to post Dmitry Maslennikov · Mar 30, 2021 You should use flag /importselectivity=1, it has value 2 by default, which keeps existing values if present. Details in the documentation.
go to post Dmitry Maslennikov · Mar 29, 2021 Hi @David Loveluck, and anybody who wanted it. Have a look at one of my latest projects. I did Grafana plugin for IRIS, which can connect and gather any data directly. It's in active development and will be extended with much more possibilities very soon. And I'm going to publish it on Grafana Plugins list as well, for easier installation. Stay tuned, and do not hesitate to contact me directly or through issues in the repository, if you have some advice, what would you like to see there first.
go to post Dmitry Maslennikov · Mar 21, 2021 It looks like the issue in the order of compilation, and you have to properly configure it. Look at the parameter System in class, in most cases, it will be enough. If you have it properly configured if you even uncompile the entire project, and compile everything, just with CompileAll method it should be successful without any errors.
go to post Dmitry Maslennikov · Mar 19, 2021 First place is WRC And it's also available here https://github.com/intersystems-community/iris-driver-distribution/tree/...
go to post Dmitry Maslennikov · Mar 19, 2021 You can do it by yourself. I would recommend looking at the page of all emoji list in Unicode. There you may find a link to the latest version of data in text files, which will be possible to parse quite easily with ObjectScript. So, you can just import that data and use it as you want. And you will need to update it regularly when it gets some new emojis.
go to post Dmitry Maslennikov · Mar 12, 2021 $system.OBJ.Delete("SomePackage.SomeClass") $system.OBJ.DeletePackage("SomePackage")
go to post Dmitry Maslennikov · Mar 11, 2021 You can check how many license units available with this method $SYSTEM.License.LUAvailable() And next depends on the kind of application, you develop. If it's some web application, and you have to achieve it for web session, I would try using %CSP.SessionEvents with OnLogin event, check how many license units are available and who is logging in, and decide to decline the login. If you need it for some else ways of connections, I think the best place would be ZAUTHENTICATE.
go to post Dmitry Maslennikov · Mar 9, 2021 CSP files are real files on disk and case sensitivity is depends on operating system. So, I suppose you using some Linux.
go to post Dmitry Maslennikov · Mar 8, 2021 Since 2016.2 there are no reasons to keep storing source code in XML. Even in transition process, I would recommend to store codebase based on the lowest supported version of platform. Cache and IRIS able to export and import source code in UDL format, as seen in VSCode. If you would stay with XML format just because you’d like to keep history consistent, it can be solved by converting entire history in the like it was always in UDL.
go to post Dmitry Maslennikov · Mar 7, 2021 Btw, I can add such support to any language, and what the language would you prefer next?
go to post Dmitry Maslennikov · Mar 6, 2021 It does not support. Could you explain the reasons to have this ability?
go to post Dmitry Maslennikov · Mar 5, 2021 ahh, you have a just a wrong JSON, I would recommend to find a way how to fix it from the side where it comes from. Key names in the JSON also have to be wrapped by quotes
go to post Dmitry Maslennikov · Mar 5, 2021 You can pass a stream to JSON parser. So, this code should work SET obj = {}.%FromJSON(%httprequest.HttpResponse.Data)
go to post Dmitry Maslennikov · Mar 5, 2021 Deployed classes still have to be delivered but without code, for sure, with just compiled OBJ code.