Why we need a VMS-IDE C/C++ mode for Intellisense. Please VSI :-)

Here you can discuss the universal Integrated Development Environment for OpenVMS.
Post Reply

Topic author
Posts: 20
Joined: Thu Jul 18, 2019 8:18 am
Reputation: 0
Status: Offline

Why we need a VMS-IDE C/C++ mode for Intellisense. Please VSI :-)

Post by l.cedric » Fri Oct 25, 2019 5:26 am


This subject could be reformulate too like this :
How to deal better with VSCode IntelliSense and Code navigation with our old code (~14 000 files : C/C++, Decforms, CDD, ...) from VMS. And with the feeling of being on VMS, because at the very end we build on VMS and not on Windows.
Indeed wihtout doing nothing, some stuffs work but few horribles red tildes appears :(
RedTildes.jpg (22.13 KiB) Viewed 1219 times
First of all, i used the VMS-IDE function : Download system headers.
For our code, this 3 librairies were needed : CXXL$ANSI_DEF, DECC$RTLDEF and SYS$STARLET_C

Remarks :
  • VMS-IDE bug v1.2.6(?) : It doesn't work if you have more than 1 folder un the outdir parameter
    outdir.jpg (18.5 KiB) Viewed 1219 times
  • VMS-IDE enhancement (?) : For the Iast 2, I have to rename the extracted headers with .h. For example with an integrated Powershell terminal :

    Code: Select all

    $ Dir | Rename-Item -NewName {$_.BaseName.ToLower() + ".h"}
  • VMS-IDE enhancement (?) : Few system headers were not in a librairie, we have to dowload them manually
Nevertheless, that not enough to remove the whole red tildes. Here's what i have to add (in c_cpp_properties.json) to approxiamte a VMS-IDE C/C++ mode for Intellisense :

Code: Select all

        "configurations": [
            "name": "VMS",

            "intelliSenseMode": "gcc-x64",
            "cStandard": "c99",
            "cppStandard": "c++98",
            "includePath": [

            "forcedInclude": [

            "defines": [
                "__vms_version=\"V8.4    \"",
                "CC$gfloat=1  __X_FLOAT=1",
                "vms_version=\"V8.4    \"",
                "__DATE__=\"Oct 15 2019\"",
                "VMS_VERSION=\"V8.4    \"",
                "__VMS_VERSION=\"V8.4    \"",

                "__int64=long long"
    "version": 4
Few explanations :
  • intelliSenseMode : so as i didn't yet found a stuff like ~ cc-i64 mode, i gave a try to gcc
  • forcedInclude : few files in which we've extacted our CDD definitions, because #pragma dictionnary is of course not handled by IntelliSense
  • defines :
    • Copied from the end of a .lis file (cc/lis ...)
    • The last 2 were found thru an empirical way ... :roll:
It's not yet perfect, few red tildes left,
  • for example with the variant_... keywords (C VMS, no standard)
  • And doubtless other stuffs i did not see yet
This full explanation to untderstood why i hope a VMS-IDE C/C++ mode for Intellisense for our old code (25 years old ...), and of course to allow a more convenient configuration. :idea:

Thanks :)

Post Reply