mvextensions / mvbasic

MultiValue Basic extension for Visual Studio Code
MIT License
30 stars 16 forks source link

[FEATURE] Add precompiler features #117

Open Larrylaswell opened 4 years ago

Larrylaswell commented 4 years ago

OpenQMx64 3_4_19 VSCODE 1.46.1 Date 2020-06-17 Windows NTx64 10.0.18363 MV Basic / MV Extentions 2.08

I have an application that requires that the source code be massaged to add functional capability, enforce formatting standards, and automate insertion of boiler plate code to handle errors. This requires a pre-compiler and should be configurable by the user.

The compiler / pre-compiler / cataloger would need the following information:

run from a OS command Prompt or a application console: if application console, it will need username, password, and region to log into. It would need a method to pass the following on to the pre-compiler, QM filename for the directory that currently holds the program source code to be compiled The name of the program within the source directory which will be handed to the pre-compiler In addition, a method for the pre-compiler to pass the following on to the compiler and cataloger The name that the program should be cataloged under which can be different than the program name. This would be generated by the pre-compiler.

itsxallwater commented 4 years ago

This is an interesting concept and if not for the tie in to compilation and cataloging, I'd wonder if customizing the Snippets would get you most of the way there.

With the compile and catalog reqs I'm wondering if this isn't more of a server side thing, i.e. a custom program to run your pre-compile reqs + compile + catalog versus an MV Basic thing, which out of the box has no context for remote execution of code on a MV system and instead relies on the implementation within the connector you're using (AccuTerm, MV Gateway, or now Linkar--see #120 for more detail on all of that and what it means for core MV Basic).