Skip to main content

As I wrote in another thread I'm connecting to a database using a custom account.

The account's path is: /u2/quiter/POSVENTA5

In that path I open a file, for example: /u2/quiter/POSVENTA5/BP/ACCSCR0

Then I try to click on another definition (ACCSCR0) to open it:

* Carga datos
   IF HAY.AUTOFILL=1 THEN
      CODIGO.ED=XDATO
* Lee registro
      CALL ACCSCR1(MAT XQ,MAT XXQ,XK,XMACRO,MAT XFIELD,XA,XV,XRESUL,MAT ENTR,XSTACK)
   END ELSE

The editor then tries to open the file in /u2/quiter/POSVENTA5/ACCSCR1 instead of /u2/quiter/POSVENTA5/BP/ACCSCR1 so it fails.

How can I fix the search path for the editor?

Is there a way to do something like this:

https://rocketsoftware.github.io/rocket-mvbasic/usage/Catalog/

for online editing?



------------------------------
Héctor Cortiguera
Quiter Servicios Informaticos SL
------------------------------

As I wrote in another thread I'm connecting to a database using a custom account.

The account's path is: /u2/quiter/POSVENTA5

In that path I open a file, for example: /u2/quiter/POSVENTA5/BP/ACCSCR0

Then I try to click on another definition (ACCSCR0) to open it:

* Carga datos
   IF HAY.AUTOFILL=1 THEN
      CODIGO.ED=XDATO
* Lee registro
      CALL ACCSCR1(MAT XQ,MAT XXQ,XK,XMACRO,MAT XFIELD,XA,XV,XRESUL,MAT ENTR,XSTACK)
   END ELSE

The editor then tries to open the file in /u2/quiter/POSVENTA5/ACCSCR1 instead of /u2/quiter/POSVENTA5/BP/ACCSCR1 so it fails.

How can I fix the search path for the editor?

Is there a way to do something like this:

https://rocketsoftware.github.io/rocket-mvbasic/usage/Catalog/

for online editing?



------------------------------
Héctor Cortiguera
Quiter Servicios Informaticos SL
------------------------------

Anyone?

Anyway, taking a look into the logs I see this in a trace

[client:400613]U2 XToolSub locate CTLG source exception, {global: false, program: ACCSCR1}
com.rs.mv.mvvs.common.exception.MvVsException: An unknown error: 15
	at com.rs.mv.mvvs.client.uoj.subroutine.U2SubRoutine.call(U2SubRoutine.java:53) ~[ls4b.jar:?]
	at com.rs.mv.mvvs.client.uoj.xtoolsub.U2XToolSub.locateCTLGSource(U2XToolSub.java:247) ~[ls4b.jar:?]
	at com.rs.mv.mvvs.client.catalog.IHandler.UvCatalogHandler.lambda$localCatalogUri$6(UvCatalogHandler.java:57) ~[ls4b.jar:?]
	at java.util.Optional.or(Optional.java:313) ~[?:?]
	at com.rs.mv.mvvs.client.catalog.IHandler.UvCatalogHandler.localCatalogUri(UvCatalogHandler.java:57) ~[ls4b.jar:?]

and this

2025-08-25 09:26:23.910 [pool-3-thread-1] WARN  com.rs.mv.mvvs.client.uoj.xtoolsub.U2XToolSub - [client:400612]U2 XToolSub read directory record exception, {account: POSVENTA5, directory: POSVENTA5, xid: ACCSCR1}
com.rs.mv.mvvs.common.exception.MvVsException: An unknown error: 5
	at com.rs.mv.mvvs.client.uoj.subroutine.U2SubRoutine.call(U2SubRoutine.java:91) ~[ls4b.jar:?]
	at com.rs.mv.mvvs.client.uoj.subroutine.U2SubRoutine.callX(U2SubRoutine.java:71) ~[ls4b.jar:?]
	at com.rs.mv.mvvs.client.uoj.xtoolsub.U2XToolSub.readDirRecord(U2XToolSub.java:223) ~[ls4b.jar:?]
	at com.rs.mv.mvvs.lsp.api.OnlineCommService.getRecord(OnlineCommService.java:62) ~[ls4b.jar:?]
	at com.rs.mv.mvvs.lsp.api.BasicWorkspaceService.executeCommand(BasicWorkspaceService.java:149) ~[ls4b.jar:?]
	at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:580) ~[?:?]

Why is the extension trying to read a local catalog when working connected to a server?

Why can't the extension know the path of the file that is currently editing?



------------------------------
Héctor Cortiguera
Quiter Servicios Informaticos SL
------------------------------

As I wrote in another thread I'm connecting to a database using a custom account.

The account's path is: /u2/quiter/POSVENTA5

In that path I open a file, for example: /u2/quiter/POSVENTA5/BP/ACCSCR0

Then I try to click on another definition (ACCSCR0) to open it:

* Carga datos
   IF HAY.AUTOFILL=1 THEN
      CODIGO.ED=XDATO
* Lee registro
      CALL ACCSCR1(MAT XQ,MAT XXQ,XK,XMACRO,MAT XFIELD,XA,XV,XRESUL,MAT ENTR,XSTACK)
   END ELSE

The editor then tries to open the file in /u2/quiter/POSVENTA5/ACCSCR1 instead of /u2/quiter/POSVENTA5/BP/ACCSCR1 so it fails.

How can I fix the search path for the editor?

Is there a way to do something like this:

https://rocketsoftware.github.io/rocket-mvbasic/usage/Catalog/

for online editing?



------------------------------
Héctor Cortiguera
Quiter Servicios Informaticos SL
------------------------------

Have a look in .rmv\\config\\db.mvbasic.json, there seems to be a section for mapping catalogs.



------------------------------
Stuart Boydell
AU
------------------------------