Home Applications code-compare

code-compare

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
4.5
1 reviews
0
Awards
150
Views
20
IPM installs
0
0
Details
Releases
Reviews
Issues
Pull requests
Attempt to compare two export files of the same project

What's new in this version

Initial Release

Code Compare

This is my entry for InterSystems Developer Tools Contest 2021.

Inspiration

I often export a project from different systems.
I end up with tons of differences caused by timestamps, storage definitions, or other things I like to ignore.
This is very much a work in progress. Please be patient with me as I make it work.

Getting Started

Point your browser at http://localhost:52673/irisapp/MyApp.Hello.cls.
If you are prompted to login, login as _SYSTEM. Please note the default password for this app is abc123.
screenshot

There are two Browse buttons to select two files from the server.
The files are automatically imported into a global with index by routines and classes.
I initially coded a classmethod to compare two files and show the first difference I find in each class.

The Compare menu option displays a list of routines and classes in a frame.
My idea is to display the changed classes in a different style. This is not yet done.

If I click to select a class or routine, I store its name.
When I click on Details menu option, I show file1 left and file2 right.
Shorter files are padded with empty lines.
This works for also for flat text file as .CPF or .txt or .XML or similar.

Installation with Docker

Prerequisites

Make sure you have git and Docker desktop installed.

Clone/git pull the repo into any local directory e.g. like it is shown below:

$ git clone git@github.com:oliverwilms/zen.git

Open the terminal in this directory and run:

$ docker-compose up -d --build

Installation with ZPM

zpm:USER>install code-compare

Collaboration

Any collaboration is very welcome! Fork and send Pull requests!

Read more
Made with
Install
zpm install code-compare download archive
Version
0.0.116 Apr, 2021
Category
Technology Example
Works with
InterSystems IRIS
First published
16 Apr, 2021
Last checked by moderator
27 Jun, 2023Works