Skip to main content
Question

Visual Studio Code MV BASIC Extension - locating the Includes/Inserts

  • February 20, 2026
  • 0 replies
  • 0 views

BarryR

I’m trying to configure the db.mvbasic.json file for includeMapping.

I’m wondering if the issue I’m having is because in our programs, our $INSERT lines do not contain the file name.  Somehow, don’t ask me how, regardless of which file the $INSERT is in, the compiler finds it and adds it.

For example, here’s a typical line: 

    $insert ENVIRON_CONSTANTS.INS.IBAS

ENVIRON_CONSTANTS.INS.IBAS is not contained within an actual Universe account, nor is it in the same file as the source code.  This is confusing me when configuring the includeMapping section.

Here’s what I tried:

I added my development account to accounts section:

    "accounts": [

        {

            "name": "devbtr",

            "path": "/home/dev/devbtr"

        }

    ],

ENVIRON_CONSTANTS.INS.IBAS is located under /home/dev/cadsrc/INSERT

In the account devbtr, the VOC entry that points to it is CADSRC.INSERT

     CADSRC.INSERT
0001 F
0002 /home/dev/cadsrc/INSERT
0003 /uvdata/uv/D_UFD

/home/dev/cadsrc is NOT a Universe account.

 

I tried:

    "includeMapping": [

        {

            "includeFile": "CADSRC.INSERT",

            "account": "devbtr",

            "fileName": "/home/dev/cadsrc/INSERT"

        }

    ]

I also tried:

    "includeMapping": [

        {

            "includeFile": "CADSRC.INSERT",

            "account": "devbtr",

            "fileName": "CADSRC.INSERT"

        }

    ]

Neither has worked.

Any suggestion on how to make this work?  Note that management within the company won’t let me change the $insert line to:

   $insert CADSRC.INSERT ENVIRON_CONSTANTS.INS.IBAS

it has to remain as:

   $insert ENVIRON_CONSTANTS.INS.IBAS