Skip to content

Commit e0fd409

Browse files
Updating documents for MVVS 2.6.0
1 parent ebcb776 commit e0fd409

8 files changed

Lines changed: 123 additions & 24 deletions
15.5 KB
Loading
45.6 KB
Loading

docs/usage/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## Version 2.6.0: November 21, 2024
4+
- Enhancement: UD compilation will read parameters from basic.mvbasic.json file.
5+
- Support pattern configuration for account, folder and file filtering (only in online mode).
6+
- Customer bug fixes
7+
38
## Version 2.5.1: August 23, 2024
49

510
- Support for cataloging BASIC program files via right-click component in both online and offline modes.

docs/usage/Catalog.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,16 @@ Users can right-click a BASIC program file and select "Catalog" to catalog a sin
105105

106106
![](../img/catalog.png)
107107

108-
## Catalog Settings in "catalog.mvbasic.json" file
108+
## Catalog Settings in "basic.mvbasic.json" file
109109

110110
Cataloging a program makes it available to all users or to users of one account. You must catalog a program before another BASIC program can call it as an external subroutine.
111111

112112
```
113113
{
114114
"catalog": "",
115115
"arguments": "",
116-
"initialCharacter": ""
116+
"initialCharacter": "",
117+
"ud_compile_flavor": ""
117118
}
118119
```
119120

@@ -128,7 +129,8 @@ pointing to the object file, you need not recatalog the program every time you r
128129
{
129130
"catalog": "local",
130131
"arguments": "",
131-
"initialCharacter": ""
132+
"initialCharacter": "",
133+
"ud_compile_flavor": ""
132134
}
133135

134136
**Normal Catalog**: Normal cataloging copies the specified object record to the system catalog space, making it available
@@ -145,7 +147,8 @@ or !, and do not specify the keyword LOCAL.
145147
{
146148
"catalog": "normal",
147149
"arguments": "",
148-
"initialCharacter": ""
150+
"initialCharacter": "",
151+
"ud_compile_flavor": ""
149152
}
150153

151154
**Global Catalog**: Like normal cataloging, global cataloging copies the specified object record to the system catalog
@@ -167,7 +170,8 @@ the keyword LOCAL.
167170
{
168171
"catalog": "global",
169172
"arguments": "",
170-
"initialCharacter": "*"
173+
"initialCharacter": "*",
174+
"ud_compile_flavor": ""
171175
}
172176

173177
### Cataloging in Unidata
@@ -177,7 +181,8 @@ the keyword LOCAL.
177181
{
178182
"catalog": "direct",
179183
"arguments": "",
180-
"initialCharacter": ""
184+
"initialCharacter": "",
185+
"ud_compile_flavor": ""
181186
}
182187

183188
**Local Catalog**: Catalogs the program locally and places a copy of it in a subdirectory of the local CTLG catalog (in the account where the user is running the program). UniData creates a VOC pointer to the subdirectory.UniData creates the CTLG and the subdirectory, if they do not
@@ -186,10 +191,11 @@ already exist.
186191
{
187192
"catalog": "local",
188193
"arguments": "",
189-
"initialCharacter": ""
194+
"initialCharacter": "",
195+
"ud_compile_flavor": ""
190196
}
191197

192198

193-
**Note 1 :** The parameter "arguments" in the catalog.mvbasic.json file is currently not supported by the catalog feature. By default, the argument is set to FORCE for both the UV and UD databases.
199+
**Note 1 :** The parameter "arguments" in the basic.mvbasic.json file is currently not supported by the catalog feature. By default, the argument is set to FORCE for both the UV and UD databases.
194200

195-
**Note 2 :** If the `./rmv` configuration exists, the `catalog.mvbasic.json` file will be created during the first catalog attempt. If the `./rmv` configuration does not exist, the `config/catalog.mvbasic.json` file will be created when the extension is activated.
201+
**Note 2 :** If the `./rmv` configuration exists, the `basic.mvbasic.json` file will be created during the first catalog attempt. If the `./rmv` configuration does not exist, the `config/basic.mvbasic.json` file will be created when the extension is activated.

docs/usage/Compile.md

Lines changed: 64 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ The compilation result will display in the VS Code terminal.
2929

3030
**Note**: Using this method, compiled programs will not be cataloged.
3131

32-
For UniData, different flavors are supported. You can select “Pick” flavor or “UniData” flavor when using right-click compile:
32+
For UniData, different flavors are supported. Right-click in the file you want to compile then select "Compile BASIC programs". It will read the language value from the basic.mvbasic.json file, with the value set to: "ud_compile_flavor". [Please see this section to set ud_compile_flavor value.](./Compile.md#unidata-compile-flavor-in-basicmvbasicjson-file)
3333

34-
![](../img/compile_basic_in_unidata_with_different_flavors.png)
34+
![](../img/compile_from_context.png)
3535

3636
### From a file explorer
3737

@@ -91,18 +91,19 @@ You can find task properties in the [VS Code official documents](https://code.vi
9191
- **targets**: a list that contains the files you want to compile. The value should be the file's relative path. Please see the examples section for more details.
9292
- **compile**: compilation related settings. It contains following configurable items.
9393
- **dataSource**: Must be "UNIVERSE" or "UNIDATA", depending on the connected U2 server.
94-
- **language**: (For UniData only) The programming language flavor. Must be "UniBasic" or "Pick". If not set, "UniBasic" is the default.
94+
- **language**: (For UniData only) The programming language flavor. Must be "UniBasic" or "Pick". If not set, "UniBasic" is the default, **but It will read the language value from the basic.mvbasic.json file, with the value set to: "ud_compile_flavor".** [Please see this section to set ud_compile_flavor value.](./Compile.md#unidata-compile-flavor-in-basicmvbasicjson-file)
9595
- **catalog**: For UniVerse, you can select "global", "local" or "normal". For UniData, you can select "global", "local" or "direct". If not set, files will not be cataloged.
9696
- **initialCharacter**: (For UniVerse only) The initial character of the cataloged program can only be set when the **catalog** parameter is set to “global”.
9797
- **arguments**: Put additional compilation arguments here. For more details, please refer UniVerse / UniData user manual for more details. By default, this setting doesn’t appear in the configuration file. Please add it manually if needed.
9898
#### Run build task
9999

100100
Select "Run build task" from the "Terminal" menu to start the build task.
101101

102-
**Note**: Ensure that a U2 server has been connected. Otherwise, an error will occur.
102+
**Note 1**: Ensure that a U2 server has been connected. Otherwise, an error will occur.
103103

104104
![](../img/compile_from_menu_3.png)
105105

106+
**Note 2**: Once you click on "Run build task," it will compile BASIC using the compile flavor value set to ud_compile_flavor in the basic.mvbasic.json file, instead of compiling with the "language" value specified in the task (for Unidata).
106107

107108
## UniVerse Compile Task Examples
108109

@@ -281,7 +282,7 @@ Select "Run build task" from the "Terminal" menu to start the build task.
281282
- Add source code relative path to "targets". In this example, SAMPLE_FILE is in the BP folder
282283
- "dataSource" must be "UNIDATA" for UniData
283284
- No need to set "catalog" if you don't want to catalog programs
284-
- You can select the language flavor in "language". In this example, the language flavor is "UniBasic"
285+
- You can select the language flavor in "language". In this example, the language flavor is "UniBasic", **but It will read the language value from the basic.mvbasic.json file, with the value set to: "ud_compile_flavor".** [Please see this section to set ud_compile_flavor value.](./Compile.md#unidata-compile-flavor-in-basicmvbasicjson-file)
285286

286287

287288

@@ -315,7 +316,7 @@ Select "Run build task" from the "Terminal" menu to start the build task.
315316
```
316317

317318
- You can add multiple source code relative paths to "targets"
318-
- Set "language" to "Pick" flavor
319+
- Set "language" to "Pick" flavor, **but It will read the language value from the basic.mvbasic.json file, with the value set to: "ud_compile_flavor".** [Please see this section to set ud_compile_flavor value.](./Compile.md#unidata-compile-flavor-in-basicmvbasicjson-file)
319320
- Set "catalog" to "global" if you want to perform global cataloging
320321

321322

@@ -392,4 +393,60 @@ Select "Run build task" from the "Terminal" menu to start the build task.
392393
}
393394
```
394395

395-
- Compile the BASIC program with arguments "-L" and "-X".
396+
- Compile the BASIC program with arguments "-L" and "-X".
397+
398+
## Unidata Compile Flavor in basic.mvbasic.json File
399+
400+
By Uusing the VS Code task, users can compile or catalog multiple BASIC programs at the same time. BASIC compilation will use the specified Task propetiesproperties (except the "language" property).
401+
402+
403+
```json
404+
{
405+
"version": "2.0.0",
406+
"tasks": [
407+
{
408+
"type": "BASIC",
409+
"targets": [
410+
"BP/SAMPLE_FILE"
411+
],
412+
"compile": {
413+
"dataSource":"UNIDATA",
414+
"language": "UniBasic"
415+
},
416+
"problemMatcher": [],
417+
"label": "BASIC: Build",
418+
"group": {
419+
"kind": "build",
420+
"isDefault": true
421+
}
422+
}
423+
]
424+
}
425+
```
426+
427+
It will read the language value from the basic.mvbasic.json file, with the value set to: "ud_compile_flavor"
428+
429+
{
430+
"catalog": "direct",
431+
"arguments": "",
432+
"initialCharacter": "",
433+
"ud_compile_flavor": "Pick"
434+
}
435+
436+
**Example 1**. Compile a single BASIC program with flavor UniBasic.
437+
438+
{
439+
"catalog": "local",
440+
"arguments": "",
441+
"initialCharacter": "",
442+
"ud_compile_flavor": "UniBasic"
443+
}
444+
445+
**Example 2**. Compile a single BASIC program with flavor revelation.
446+
447+
{
448+
"catalog": "local",
449+
"arguments": "",
450+
"initialCharacter": "",
451+
"ud_compile_flavor": "revelation"
452+
}

docs/usage/Configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ This configuration file contains the settings for feature Group View. If you nee
4040

4141
## Catalog Configuration
4242

43-
The configuration file name is "catalog.mvbasic.json".
43+
The configuration file name is "basic.mvbasic.json".
4444

45-
This configuration file contains the parameters for the Catalog feature. If you need to change the catalog type, arguments, or initial character, please update the settings in this file. See [Catalog Settings in "catalog.mvbasic.json" file](./Catalog.md#quick-catalog) for more information.
45+
This configuration file contains the parameters for the Catalog feature. If you need to change the catalog type, arguments, or initial character, please update the settings in this file. See [Catalog Settings in "basic.mvbasic.json" file](./Catalog.md#quick-catalog) for more information.
4646

47-
**Note:** If either `./rmv` or `./rmvonline` configuration exists, the `catalog.mvbasic.json` file will be created during the first catalog attempt. If the `./rmv` configuration does not exist, the `config/catalog.mvbasic.json` file will be created when the extension is activated.
47+
**Note:** If either `./rmv` or `./rmvonline` configuration exists, the `basic.mvbasic.json` file will be created during the first catalog attempt. If the `./rmv` configuration does not exist, the `config/basic.mvbasic.json` file will be created when the extension is activated.
4848

4949
## Configuration Files
5050

docs/usage/Debugging.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,16 @@ Before debugging, open the BASIC program first.
4040

4141
### Debugging without a launch file
4242

43-
- Click the **Run and Debug** icon on left menu bar. The **Run and Debug** view will display if you have no `launch.json` file in your project.
43+
- Click the **Run and Debug** icon on from the left menu bar. The **Run and Debug** view will display if you have no `launch.json` file in your project.
4444

4545
- Click the **Run and Debug** button to start debugging the currently focused BASIC program file.
4646

4747
![](../img/run_and_debug.png)
4848

49-
The BASIC program file will be compiled first. If successful, the debugging process will stop at the first runnable line of code in the program file.
49+
The BASIC program file will be compiled first.
50+
For UniData, there are different compilation flavors and it will read the compile flavor from basic.mvbasic.json, with the value set to: "ud_compile_flavor". [Please see this section to set ud_compile_flavor value.](./Compile.md#unidata-compile-flavor-in-basicmvbasicjson-file)
51+
52+
On successful compilation, the debugging process will stop at the first runnable line of code in the program file.
5053

5154
### Debug with launch file
5255

docs/usage/OnlineEditing.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ By accessing the configuration file, you can perform actions such as adding, edi
5858

5959
- **"port"**: By default, the port is set to 31438, but you can change this according to your U2 server configuration.
6060

61+
- **"filterPatterns"**_(Optional)_: Used to specify filter patterns for Accounts, Folders and Files.
62+
6163
There are additional methods available to edit the configuration file:
6264

6365
- Right-click on a tree view node and select "Add New Server" to add a new U2 server configuration.
@@ -86,6 +88,32 @@ If you wish to disconnect from a U2 server, right-click the corresponding server
8688

8789
![](../img/online_editing_connection_icon.png)
8890

91+
### Filtering
92+
93+
Users can establish filters to filter out information which that they user do not want the MVVS to display. Users can configure MVVS to filter out certain file names. This is done to minimize the amount number of unnecessary files listed.
94+
95+
In the Configure Patterns option, enter the account/folder/file name patterns you want to match. Separate each pattern with a comma. Pattern matching characters are:
96+
* \* = any string
97+
* ? = any character
98+
99+
#### **Steps to Configure Filter Pattern**
100+
**Access Configuration**:
101+
* Right-click the server name, account, or folder.
102+
* Select the "Configure Pattern" option.
103+
104+
![](../img/online_editing_configure_pattern_option.png)
105+
106+
**Enter Filter Pattern**:
107+
* Add your desired filter pattern to the servers.mvbasic.json file.
108+
* Save the changes.
109+
110+
**Refresh Connection**:
111+
* If you are already connected to the server, manually refresh it to apply the changes.
112+
113+
**View Filtered Results**:
114+
* Expand the specific server or folder to see only the filtered accounts, folders, and files.
115+
116+
89117
### Editing BASIC programs
90118

91119
Once connected to a U2 server, you can expand the server node to access and view the BASIC program files stored on that server.
@@ -118,14 +146,14 @@ Users can right-click a BASIC program file and select “” to compile a single
118146

119147
![](../img/catalog_compile.png)
120148

121-
For UniData, there are multiple compilation commands for different flavors.
149+
For UniData, there are multiple compilation commands for different flavors. Please refer [UD Compilation here](./Compile.md#unidata-compile-flavor-in-basicmvbasicjson-file)
122150

123151
#### Quick catalog
124152
Users can right-click a BASIC program file and select "Catalog" to catalog a single file for both Universe and Unidata databases
125153

126154
![](../img/catalog.png)
127155

128-
Clicking on 'Catalog' will use the parameters from the catalog.mvbasic.json file to catalog the file. If you need to change the catalog type, arguments, or initial character, please update the settings in this file. See [Catalog Settings in "catalog.mvbasic.json" file](./Catalog.md#quick-catalog) for more information.
156+
Clicking on 'Catalog' will use the parameters from the basic.mvbasic.json file to catalog the file. If you need to change the catalog type, arguments, or initial character, please update the settings in this file. See [Catalog Settings in "basic.mvbasic.json" file](./Catalog.md#quick-catalog) for more information.
129157

130158
#### Compile / Catalog with configuration file
131159
The configuration file can help a user to compile and catalog multiple files.
@@ -152,4 +180,4 @@ Most of the LSP (Language Server Protocol) features are supported, but there are
152180

153181
- Do not click on another account's folder before completing the cataloging of the current BASIC program. Doing so may result in cataloging the wrong BASIC program on the U2 server side.
154182

155-
- The parameter "arguments" in the catalog.mvbasic.json file is currently not supported by the catalog feature. By default, the argument is set to FORCE for both the UV and UD databases.
183+
- The parameter "arguments" in the basic.mvbasic.json file is currently not supported by the catalog feature. By default, the argument is set to FORCE for both the UV and UD databases.

0 commit comments

Comments
 (0)