Question Francis Galiegue · May 20, 2016 How to completely scratch a previously existing Caché installation? Hello! I am trying to install Caché 2016 on a Debian Jessie machine; so I downloaded the latest release from WRC, OS RHEL x86_64, in tarball format. I untarred it, then launched cinstall; unfortunately a library was missing. I then elected to kill all the processes (which wasn't easy), remove the two users created, and start again. #Caché #System Administration 0 6 0 2.2K
Question Francis Galiegue · May 13, 2016 What server does Atelier expect to connect to? Hello, I'm trying to connect to a Caché server from Atelier; the Caché server is 2015.x. The address and port I'm trying to connect to is the SQL gateway server; and I get, each time, an "unexpected end of file from server". Note that unfortunately, for the moment, I connect as _system... And the Caché install has the default privileges. What am I doing wrong? #Development Environment #Caché 1 1 0 486
Question Francis Galiegue · Apr 30, 2016 What is the best practice when the intent is to make a package available to all namespaces? Hello, Still related to the unit test with coverage support project, one goal is to make that package available to everyone. One possible way I already know of is that all fully qualified class names (ie, the package + the class name) start with %, which mean that on installation all classes will end up in the %SYS namespace, but this requires that the install be done as a user with the necessary privileges to write to %SYS. #Caché #ObjectScript 1 6 0 466
Question Francis Galiegue · Apr 27, 2016 Request of sorts: creating a help page on community to work with lists/arrays/multidimensional properties/etc Hello, I am still a beginner with COS and am struggling with these concepts. While digging through the official documentation will eventually tell you everything you need to know, getting started is nevertheless not an easy feat... Is it possible to create a "lists/array/multidimensional 101" page for beginners? And, for instance, its interaction with $data, what it means to use "as list of something" or "as array of something", how to walk lists, how to add/remove elements, how to extract sublists etc? #Object Data Model #ObjectScript #Caché 2 12 0 583
Question Francis Galiegue · Apr 25, 2016 Determining whether a class, which you only have the name of, is a unit test class... I know this code sucks; but how to fix it properly? Hello, Here's the code: #Code Snippet #ObjectScript #Caché 0 6 0 517
Announcement Francis Galiegue · Apr 20, 2016 Experimental project for unit testing + coverage; and help needed Hello community! Heretofore is announced a new project which aims at providing a usable library for both running unit tests and collecting code coverage information at the same time: https://github.com/litesolutions/cache-utcov #Development Environment #ObjectScript #Testing #Caché 0 14 0 648
Question Francis Galiegue · Apr 20, 2016 Is there a way to run unit tests in a given project which _does not_ require that test classes be exported first? Hello, It is time for me to eat my own dog's food and start implementing unit test running with coverage :) I will be inundating IRC with questions at this point, but I have a more general question first. In this tutorial, it is supposed that your unit tests are exported as XML first... But that's not very practical. Is there a way, instead, to run all tests from a given project without having this export? My first thought on how to do this would be to: #ObjectScript #Caché 1 3 0 611
Announcement Francis Galiegue · Apr 18, 2016 IRC channel for Caché developers created! Hello,I hereby announce the creation of an IRC channel dedicated to Caché development:* network: FreeNode (connect to server: irc.freenode.net)* channel: ##cos (yes, two hashes).Topic is anything related to Caché development in spite of the name (and the fact that of Caché development I only really know about COS anyway), so sorry in advance for the restrictive channel name :)Waiting for you here! (my nick is idletask on freenode) #ObjectScript #Caché 3 0 0 349
Question Francis Galiegue · Apr 18, 2016 Is there a table somewhere of deprecated classes/added keywords/etc and _when_ these changes took place? Hello,For CachéQuality I'd love to be able to create issues when the programmer uses classes which are deprecated for this or that version of Caché... But short of reading all the changelogs of all versions, I can't really tell when a command appeared (for instance RETURN; I know now that it appeared in 2014.x, but it took me some time to realize that), or when a (set of) class(es) became deprecated (for instance %GlobalCharacterStream to be replaced with %Stream.GlobalCharacter -- I don't even know since which version this is true :/). #ObjectScript #Caché 2 2 0 371
Question Francis Galiegue · Apr 13, 2016 Followup on the unconference session about unit test and code coverage: it may be doable after all... But I need help Hello everyone, I have discussed extensively with Andrew Cheshire, the author of the Atelier parser (which I'll be able to hack on and reuse for CachéQuality -- yay!), and while we were at it, we also discussed code coverage. We ended up talking about the ZBREAK command and its /TRACE option. #Caché #Debugging #ObjectScript 2 4 0 391
Article Francis Galiegue · Apr 10, 2016 1m read Global summit: short presentation and demo of Caché Quality (static code analysis for ObjectScript); Monday April 11th at 12:30pm, developer community desk, developer zone Hello! Link: https://demo.cachequality.com In this presentation, developer oriented, we will cover this tool, how it works, how you can use it/administer it, etc. Duration 30 minutes. The topics will include: a short presentation of Caché Quality and SonarQube (which this plugin uses), a demonstration of the rules and how to tailor them to your need. Questions will be more than welcome! Hope to see you there! And a big thanks to Evgeny Shvarov who made this possible! #Development Environment #Global Summit 2016 #ObjectScript #Caché #Global Summit 2 0 0 628
Announcement Francis Galiegue · Apr 6, 2016 CachéQuality: two new rules Hello community!Two new rules have been implemented:OS0061: unsafe namespace switchThis rule detects when the body of a method contains two or more of the following statements: #ObjectScript #Caché 2 8 0 510
Discussion Francis Galiegue · Apr 4, 2016 Static code analysis tool for ObjectScript (presented at Phoenix) Hello community! At the global summit in Phoenix, we (Lite Solutions) will be presenting a tool performing static code analysis on ObjectScript source files. You can see it in action at this URL: https://demo.cachequality.com Technically, the tool is a language plugin over SonarQube (http://sonarqube.org) and consists of three main parts: #Global Summit 2016 #ObjectScript #Tools #Caché 5 6 1 2K
Article Francis Galiegue · Feb 15, 2016 1m read Announce: Java package to import XMLs/export as sources Hello,This package may be of interest...Link: https://github.com/litesolutions/cachedb-importI have programmed this over a hunch, in order to facilitate the retrieval of source code from a Caché installation. It makes use of the Java API provided by Caché.Right now, I use it as a means to salvage sources in order to analyze them using the SonarQube plugin I develop for my employer. Unfortunately this plugin is not open source.I am calling for help here, on two fronts: #Tools #Caché 3 10 0 813