MVVS: MV Basic for Visual Studio

 View Only

 v1.8 Error. COMPILE Ignored: The account to which the file belongs does not match the account connected to the server

Aaron Glover's profile image
Aaron Glover posted 12-11-2022 23:47

I am no longer able to compile BASIC programs using the Connection.

The program I am editing and attempting to compile DOES BELONG TO THE ACCOUNT I AM CONNECTED to, but this error has began recently. I'm not aware of any changes (perhaps VS Code extension updated?)

Any steps I can take to troubleshoot and/or workaround this issue?

NOTE: this is only a problem with v1.8.0  I reverted back to 1.7.0 and this issue has gone.

Christian Bristow's profile image
ROCKETEER Christian Bristow
Hi Aaron,
Correct, this error message was introduced in v1.8 to try to resolve multi work space issues where you can have multiple accounts open at the same time yet you can be connected to one. At compilation time there's a check between the local account name you are in and the U2 server account name you are connected to. These now need to match. As an example I have my local BASIC source in a BP folder in the uv HS.SALES account but my local connection is to the uv XDEMO account. At compilation this will fail because account names HS.SALES and XDEMO differ. Previously this would not be a problem as long a just the basic program folder was the same.
Aaron Glover's profile image
Aaron Glover
Hi Christian,

So I'm confused how I am supposed to work with this.

My account is called "THERIS" and within that account I have a folder called RIPROGS

Are you suggesting that my UV Account needs to be renamed to RIPROGS?


Christian Bristow's profile image
ROCKETEER Christian Bristow
Hi Aaron,
We have an enhancement request to change the message to give more detail on exact problem. Allow me to try to clarify using my previous example:
If I am in account HS.SALES editing some source C:\u2\uv\HS.SALES\BP\MYPROGRAM but my mv server connection is to account C:\u2\uv\XDEMO it will at compilation complain because the it's a different account name, even if you have a BP folder in XDEMO. The account names have to match.

I hope this makes sense.