OpenCobolIDE Documentation



Similar documents
Magento OpenERP Integration Documentation

Practice Fusion API Client Installation Guide for Windows

Code::Blocks Student Manual

BIGPOND ONLINE STORAGE USER GUIDE Issue August 2005

Wakanda Studio Features

Eclipse installation, configuration and operation

Kentico CMS 7.0 User s Guide. User s Guide. Kentico CMS

Building a Python Plugin

Code::Block manual. for CS101x course. Department of Computer Science and Engineering Indian Institute of Technology - Bombay Mumbai

Most of your tasks in Windows XP will involve working with information

Programming with the Dev C++ IDE

Table Of Contents. iii

Using GitHub for Rally Apps (Mac Version)

EMC Documentum Composer

POOSL IDE Installation Manual

Notepad++ The COMPSCI 101 Text Editor for Windows. What is a text editor? Install Python 3

SourceAnywhere Service Configurator can be launched from Start -> All Programs -> Dynamsoft SourceAnywhere Server.

Xcode Project Management Guide. (Legacy)

BSDI Advanced Fitness & Wellness Software

Virtual Office Remote Installation Guide

WHAT S NEW IN WORD 2010 & HOW TO CUSTOMIZE IT

Getting Started with the Ed-Fi ODS and Ed-Fi ODS API

Waspmote IDE. User Guide

Getting Started using the SQuirreL SQL Client

MATLAB on EC2 Instructions Guide

Source Code Management for Continuous Integration and Deployment. Version 1.0 DO NOT DISTRIBUTE

Windows XP Pro: Basics 1

Help File. Version February, MetaDigger for PC

Kentico CMS 5.5 User s Guide

Network Shutdown Module V3 Extension of the User Manual for IBM BladeCenter architecture

Andreas Burghart 6 October 2014 v1.0

DEPLOYING A VISUAL BASIC.NET APPLICATION

TakeMySelfie ios App Documentation

Introduction to the TI Connect 4.0 software...1. Using TI DeviceExplorer...7. Compatibility with graphing calculators...9

CSA Software Listing Table of Contents. Both Windows and Mac platforms are supported.

Hypercosm. Studio.

Browsing and working with your files and folder is easy with Windows 7 s new look Windows Explorer.

State of Michigan Data Exchange Gateway. Web-Interface Users Guide

IBM Information Server

Getting Started Guide. Chapter 14 Customizing LibreOffice

Microsoft Word 2011: Create a Table of Contents

Connecting to Remote Desktop Windows Users

Introduction to MS WINDOWS XP

Using an Edline Gradebook. EGP Teacher Guide

Adobe Marketing Cloud Bloodhound for Mac 3.0

EMC Documentum Webtop

Introduction. POP and IMAP Servers. MAC1028 June 2007

MAS 500 Intelligence Tips and Tricks Booklet Vol. 1

UOFL SHAREPOINT ADMINISTRATORS GUIDE

You must have at least Editor access to your own mail database to run archiving.

UH CMS Basics. Cascade CMS Basics Class. UH CMS Basics Updated: June,2011! Page 1

Installing and Using No Machine to connect to the Redhawk Cluster. Mac version

How to Configure Windows 8.1 to run ereports on IE11

Legal Notes. Regarding Trademarks KYOCERA Document Solutions Inc.

Moxa Device Manager 2.3 User s Manual

Using Microsoft Visual Studio API Reference

What is OneDrive for Business at University of Greenwich? Accessing OneDrive from Office 365

Getting Started - The Control Panel

Microsoft Visual Studio Integration Guide

Windows XP Managing Your Files

Kentico CMS User s Guide 5.0

3 IDE (Integrated Development Environment)

Select the barcode font in your farmerswife Client Application

Setting up the Oracle Warehouse Builder Project. Topics. Overview. Purpose

Microsoft Word Quick Reference Guide. Union Institute & University

Microsoft PowerPoint 2010

TAMUS Terminal Server Setup BPP SQL/Alva

Lab 0 (Setting up your Development Environment) Week 1

Desktop, Web and Mobile Testing Tutorials

Adobe Dreamweaver CC 14 Tutorial

State of Ohio DMS Solution for Personnel Records Training

2010 Ing. Punzenberger COPA-DATA GmbH. All rights reserved.

Module One: Getting Started Opening Outlook Setting Up Outlook for the First Time Understanding the Interface...

Instructions for Configuring a SAS Metadata Server for Use with JMP Clinical

1 Download & Installation Usernames and... Passwords

Lotus Notes Client Version 8.5 Reference Guide

Bulk Downloader. Call Recording: Bulk Downloader

Manual. Sealer Monitor Software. Version

Microsoft Migrating to Word 2010 from Word 2003

ATTENTION: End users should take note that Main Line Health has not verified within a Citrix

ebooks: From Adobe InDesign to the Kindle Store

Word basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:

Using a Digital Recorder with Dragon NaturallySpeaking

Installing and Sending with DocuSign for NetSuite v2.2

TYPING IN ARABIC (WINDOWS XP)

BackupAgent Management Console User Manual

Outlook . User Guide IS TRAINING CENTER. 833 Chestnut St, Suite 600. Philadelphia, PA

Call Recorder Oygo Manual. Version

Integrated Accounting System for Mac OS X

Client Instructions - ID Tech Configuration Instructions

Introduction to Source Control ---

Source Control Guide: Git

Python for Series 60 Platform

Continuous Delivery on AWS. Version 1.0 DO NOT DISTRIBUTE

How To Backup On Ubuntu (Amd64) With Back In Time (Amd) On Windows Xp) On A Windows Xp (Amd32) On Ubunus On A Ubuntu

Bitrix Site Manager 4.0. Quick Start Guide to Newsletters and Subscriptions

Witango Application Server 6. Installation Guide for Windows

Getting Started With! CGminer/BFGminer!

How to Edit Your Website

Microsoft Excel 2013 Tutorial

Transcription:

OpenCobolIDE Documentation Release 2.4.0-beta Colin Duquesnoy July 03, 2014

Contents 1 Parts of the documentation: 3 1.1 What s New?............................................... 3 1.2 Download & Install........................................... 7 1.3 Getting started.............................................. 8 1.4 FAQ.................................................... 17 1.5 Contributing............................................... 18 1.6 License.................................................. 18 2 Meta information: 19 3 Indices and tables: 21 4 Disclaimer 23 i

ii

OpenCobolIDE is a simple and lightweight cobol IDE based on the OpenCobol/Gnu Cobol compiler and the pyqode source code editor widget. Contents 1

2 Contents

CHAPTER 1 Parts of the documentation: 1.1 What s New? This page lists the most prominent milestones achieved by the OpenCobolIDE developers. For more specific details about what is planned and what has been accomplished, please visit the issues page on github. 1.1.1 Next Version We don t have any plans for the next release. Please report bugs and share your thoughts to make OpenCobolIDE better! 1.1.2 Changelog 2.4.0 New features: add Mac OSX support move to PyQt5 (to support retina screens) add support for pyqode 2.0: the new api is a lot more stable API and is now fully tested. The editor style and performances have been improved but the folding panel has been temporarely removed (for performance reason) new user interface: the menu and toolbar has gone, instead there is now a compile and run button inside the editor and a drop down button in the status bar for the most important actions. The homepage and the preferences dialog also got redesigned. compiler process management has been improved: We are now using QProcess instead of subprocess, this allow some neat improvements such as auto compile before run. better log message + log window: include information from the log window when you report bugs! Please, read the Getting started section of this manual to get started with the new user interface! 3

2.3.1 drop python 2 support (the main script must now be run by a python3 interpreter) fix bug with encoding error, see bug #31 on github 2.3.0 New features: Fixed bugs: add ability to run the compiled programe in an external terminal. This is useful if you are using the SCREEN SECTION as the embedded terminal does not support redirection. fix bug with detection of submodules call if they are enclosed with single quotes instead of double quotes 2.2.0 New features: pic fields offsets calculator case converter, you can convert selected text to lower or TO UPPER using the editor context menu. full dark style using qdarkstyle new test suite for compiler and parser modules improved go to line dialog add support for _*.pco_ and _*.cpy_ files Fixed bugs: fix compilation for file if path contains spaces (Linux and Windows) fix parser crash that prevents from compiling improve cobol parser to support malformed syntax fix ambiguous shortcut overload: F2 fix outline not informative for cobol files that have data in column 1-6 2.1.0 New features: Go to definition for variables and procedures (ctrl + click on symbol) New debian package on ppa:open-cobol-ide/stable and ppa:open-cobol-ide/unstable Fixed Bugs: code completion should not occur in comments and strings fix column number for navigation panel 4 Chapter 1. Parts of the documentation:

2.0.1 Fixed Bugs: removed un-needed import of pexpect which caused some issue on clean system which does not have pexepect. 2.0.0 This new release is a major update which makes the transition from PCEF to pyqode. Most of the application has been rewritten from scratch. Here are the major changes: port to pyqode 1.0 new compiler errors panel interactive output console for program output uses pyqode.qt in place of PySide support for both python 2 and python 3 on the fly syntax check, OpenCobolIDE compile your code in the background to quickly warn you about wrong syntax. better integration with most linux desktop environments (use icons and colors from theme, desktop entry). Tested with KDE, Gnome, Unity and Cinnamon. allow user to type in lower case (https://github.com/opencobolide/opencobolide/issues/1) 1.4.2 Update code so support pcef 0.2.2 1.4.1 Fixed Bugs: slow in large files: https://bugs.launchpad.net/cobcide/+bug/1179228 1.4.0 New features: Fixed Bugs: shortcuts for dock windows (F9: log panel, F10: navigation panel) show fullscreen shortcut change from F12 to F11 the application will restore its geometry and state (maximised, dock window positions) dock panel shown when switching tab: now the panel is only show when coming from the homepage or when compiling crash when editing/compiling files who have unicode characters in their path focus lost when opening recent files from the menu or the homepage on ubuntu 12.04 -> 13.04 1.1. What s New? 5

Enhancements and fixed bugs in PCEF 0.2.0: improve performances in general support for custom word separator, allow OpenCobolIDE to remove the - character from word separators which brings a better code completion for cobol dirty flag is correctly updated scrollbars are now correctly update when folding/unfolding code blocks 1.3.0 This release improves usability with a focus on the run and compile actions: detect source dependencies and compile them (if a program P requires a subprogram A who requires a subprogram B than the IDE will compile A, B and P) Automatically compile file when the run action is triggered Run the last program if the current tab is a subprogram Avoid compiling a file that is already compiled and up to date 1.2.1 Fix bug: https://launchpad.net/cobcide/+milestone/1.2.1 1.2.0 Added: Home page with list of recent files A settings page to change a few options (mainly related to the editor style) A navigation panel to quickly browse large files (tree with div, sections, variables and paragraphs) A shortcut to comment/uncomment selected or active lines (ctrl+/) On GNU/Linux, at first start the program will ask the user if he wants to create a desktop files Bug fixes: windows path not normalized fix bug with mingw when path contains spaces on windows fix bug where no extension was proposed when creating a new file 1.1.0 better encoding detection using chardet cobol specific code completion model status bar infos (filename, encoding, cursor position) windows port (a windows installer is available in the download section) 6 Chapter 1. Parts of the documentation:

1.0.1 fix packaging issues 1.0.0 Initial development 1.2 Download & Install Here you ll find all the necessary explanations for installing OpenCobolIDE. 1.2.1 Requirements: OpenCobolIDE depends on the following packages: Python 3 PyQt5 OpenCobol pyqode.core pygments >= 1.6 chardet GNU/Linux Install pyqt5, open-cobol and pip using your package manager, then run the following commands: sudo pip3 install OpenCobolIDE If you are on Archlinux, you can install OpenCobolIDE and all its dependencies from the AUR: https://aur.archlinux.org/packages/open-cobol-ide/ Windows There is a windows installer available here: https://launchpad.net/cobcide/+download Mac OSX There is a dmg image available here: https://launchpad.net/cobcide/+download The only thing you have to do is: to install OpenCobol compiler, e.g. using homebrew: brew install open-cobol run the OpenCobolIDE app 1.2. Download & Install 7

Note: If you installed the compiler in a non-standard path and it is not recognized, you can specify and the path to the compiler in the preferences dialog under the Build & Run section. Just make sure to only specify the directory where the compiler can be found, not the full path. 1.3 Getting started Note: All the screenshots were taken on Gnome 3 desktop. You will have different looks and feels on other OS/DE. This is the first window you will see when running OpenCobolIDE. This is your home page. From there you can create new files or open existing one. OpenCobolIDE is simple and lightweight IDE. It works on a single file basis (i.e. it has no concept of project): You create/open a file, compile it then run it. 1.3.1 Create a new file click on New the following dialog should appear: 8 Chapter 1. Parts of the documentation:

fill up the following information: Type: Specify the type of file to create. You can choose from * program: A program is an executable. When compiled, it produces an.exe on Windows and an executable binary file on GNU/Linux and Mac OSX. * module: A module or subprogram is a library, a list of procedures that can be shared among other modules/programs. When compiled, it produces a dynamically linked library (.dll) on Windows and a shared object (.so) on GNU/Linux and Mac OSX. * empty: create an empty file. The type can be changed later. It used now to setup the default code skeleton, to simplify your life ;) Name: file name without extension (you can choose the extension in the drop down list) Directory: directory where the file will be created. Warning: Modules source code must be in the same directory as the parent program source code to work properly. 1.3.2 Open a file Simply click on Open or choose a file in the recent files list. Note: The recent files list have a context menu that let you remove a file or clear the entire list. 1.3.3 The main window Here is the main window of OpenCobolIDE: 1.3. Getting started 9

It is made up of 4 important parts: 1. the text editor tabs: This is where you type your code. 2. the navigation panel (movable and closable): This panel show you the structure of your code and let you navigate quickly inside your document. 3. The Log panel (movable and closable): 4. the status bar: This panel show various log and output. It is made up of the following tabs: Compilation output: textual output of the cobol compiler Issues: the list of issues Output: the program output (when you run it). The output console is interactive and accepts stdin. Application log: the application log, for debugging purpose. This window is not visible when you start the IDE. You can show it by checking: menu -> View -> Appplication log -> Show window 10 Chapter 1. Parts of the documentation:

Since version 2.4, the status bar has become an important part of the application as it now contains the preferences button and the general menu as a drop down menu button: You can click on the button to show the preferences dialog or click on the arrow to reveal the general menu (Open, New, View, Help,...). 1.3.4 Compile a file To compile a file, press F8 or press the compile button (inside the editor). This will compile the current file but also the referenced modules. The compiler output will automatically be shown: 1.3. Getting started 11

You can double click on an entry in the issues table to quickly go to the problematic line in the code editor (if the file hasn t been open, OpenCobolIDE will gently open it for you). To change the program type you must press the down arrow next to the compile button. Doing this will reveal a drop down menu that let you choose the program type: 12 Chapter 1. Parts of the documentation:

1.3.5 Run a compiled program Press F5 or click the run button (inside the editor) to run the file. The program will run in the Output window which is interactive (support for stdin has been tested and works with the ACCEPT keyword). 1.3. Getting started 13

Note: It will recompile the file and all its dependencies before running the compiled program. 1.3.6 Calculate the offset of a selected record Since version 2.2, you can now calculate the offset of a selected record. select the text that contains the record you re interested in, right click on the editor to open the context menu click Calculate PIC offsets. a new side panel will open and will show you a table with the offset of each selected record: 14 Chapter 1. Parts of the documentation:

1.3.7 Switching to a full dark style Since version 2.2, OpenCobolIDE comes with a dark style sheet. To activate it, open the preferences dialog (edit->preferences). Then go to the style page and click on the Dark style radio button. 1.3. Getting started 15

Your IDE shoul look like that: 16 Chapter 1. Parts of the documentation:

1.4 FAQ 1.4.1 1) Where are the generated binaries? The executable program or module can be found in the bin folder next to your source file 1.4.2 2) I cannot compile on Windows, the compiler freeze or I get a execution error. What can I do? First ensure that you do not have a conflicting installation of MinGW in your PATH. If yes, remove it. If the problem persists, do not hesitate to open an issue but OpenCobolIDE is known to work on Windows (from Xp, to 8). Chances are that the issue come from your configuration. 1.4.3 3) Cannot detect OpenCobol compiler on Mac OSX. What can I do? If you installed the open cobol compiler in a non-standard path, you will have to tell OpenCobolIDE where to look. 1.4. FAQ 17

You can specify the path to the compiler in the preferences dialog (Build & Run tab). 1.4.4 4) Is it possible to install from source on Windows or Mac OSX? Installation from source is possible on Mac and Windows: install all requirements (Python3, PyQt5, pyqode.core) run the open-cobol-ide script from the extracted archive or git repository without actually installing Open- CobolIDE. Do not run setup.py install on Windows or Mac OSX, it won t work. 1.5 Contributing OpenCobolIDE is an open-source project, and it needs your help to go on growing and improving. You can contribute in many different ways: reports new bugs/features on the issue tracker fork the project and send pull requests to merge your work If you have any question, just open an issue on the issue tracker. 1.5.1 Recommendation for submitting a bug report: To submit a valuable bug report, the following information is required: Operating System Desktop Environment (for GNU/Linux only) Describe the way you installed the IDE (for GNU/Linux only): pip or apt-get or another method? Include the Application log output content (Menu->View->Application log->show window) 1.5.2 Recommendation for submitting a Pull Request: Pull Requests are great (on the dev branch)! Readme/Documentation changes are ok in the master branch. Fork the Repo on github. Push to your fork and submit a pull request to the dev branch. The master branch is used for the stable releases, following the git workflow. Please use PEP8 to style your code. 1.6 License OpenCobolIDE is licensed under the GPL v3. What s New? What s new since the last release, and what is planned for the next one. Download & Install Instructions on where and how to install pyqode. Getting started Getting started with OpenCobolIDE FAQ Frequently asked questions 18 Chapter 1. Parts of the documentation:

CHAPTER 2 Meta information: Contributing How to contribute and report bugs License OpenCobolIDE license 19

20 Chapter 2. Meta information:

CHAPTER 3 Indices and tables: genindex search 21

22 Chapter 3. Indices and tables:

CHAPTER 4 Disclaimer I am by no way a cobol expert, I just had to work on a cobol project at my night school with an awful IDE (NetExpress on a Windows Xp virtual machine). As I was writing pyqode (a code editor widget for python qt applications), I thought it would be the perfect occasion to show what pyqode can do and write a simple and lightweight cobol IDE that I could run on my favorite Linux distribution I ve only learned COBOL 74 and the IDE has been designed with this standard in mind. I have no plan on working with cobol at the moment nor to learn a new standard but if you found a missing feature, feel free to open a feature request. I m always looking forward to make OpenCobolIDE better. Your advice is needed and will be very appreciated! 23