MVVS: MV Basic for Visual Studio

 View Only
Expand all | Collapse all

$INSERT shown as errors (piopen flavour)

  • 1.  $INSERT shown as errors (piopen flavour)

    Posted 03-30-2022 15:15
    Will this be fixed in a future version?

    ------------------------------
    Jan Van Schalkwyk
    Senior Analyst Developer
    Heritage Bank
    Toowoomba QLD Australia
    ------------------------------


  • 2.  RE: $INSERT shown as errors (piopen flavour)

    ROCKETEER
    Posted 03-30-2022 21:55
    Hi, Jan.
    May I know what is the MV BASIC extension version that you are working with?
    Our latest MVVS 1.5.0 release will be available in the marketing place tomorrow, so if you are using an older version of the extension, then you can try to upgrade to the latest version first and see if $INSERST statement still reporting error.

    If the issue still here, then could you please help to provide screenshot for the error? I did a quick look for this statement in our latest extension build, but didn't see the issue for now, so it's better to get more details about the error, then I can log a bug to fix it in future release, thanks.

    Best Regards.
    Charles.


    ------------------------------
    Chao Han
    Rocket Internal - All Brands
    Dalian CN
    ------------------------------



  • 3.  RE: $INSERT shown as errors (piopen flavour)

    Posted 03-31-2022 18:14

    Hey Charles,

    When I posted this I was on ver 1.4.0. So latest.
    Today 1.5.0 was installed automatically . So now very latest.
    The  $INSERT problem is still there plus a few others but will report those later in a separate post.
    The editor is reporting 333 errors in a  4036 line program.

    "Redundant STRING Basic" is the error reported on most.

    Detailed message:

    [{
    "resource": "/c:/Programming/BPP/SR.AML.INDIVIDUAL_BP.JVS",
    "owner": "_generated_diagnostic_collection_name_#0",
    "severity": 8,
    "message": "Redundant STRING",
    "source": "Basic",
    "startLineNumber": 224,
    "startColumn": 18,
    "endLineNumber": 224,
    "endColumn": 44
    }]

    See screenshot attached for a sample of the errors



    ------------------------------
    Jan Van Schalkwyk
    Developer
    Youi
    Sippy Downs QLD AU
    ------------------------------



  • 4.  RE: $INSERT shown as errors (piopen flavour)

    ROCKETEER
    Posted 03-31-2022 20:30
    Hi, Jan.
    Thanks for the information and I can see the same problem too, seems like our extension can not recognize a relative file path for the $INSERT statement, I will log a bug for this and check with engineers to see if they could fix this, thanks.

    Best Regards.
    Charles.


    ------------------------------
    Chao Han
    Rocket Internal - All Brands
    Dalian CN
    ------------------------------



  • 5.  RE: $INSERT shown as errors (piopen flavour)

    Posted 03-31-2022 22:32

    Thank you Charles

    Cheers

    Jan



    ------------------------------
    Jan Van Schalkwyk
    Senior Analyst Developer
    Heritage Bank
    Toowoomba QLD Australia
    ------------------------------



  • 6.  RE: $INSERT shown as errors (piopen flavour)

    ROCKETEER
    Posted 12-08-2022 02:40
    Hi, Jan.

    I'm working with our dev team to reproduce the issue and fix it now, but currently we have some questions about "$INSERT I_READ.IC\SCREEN.DATA277\SCREEN.DATA277" statement, could you please help to provide some details about your code structure on the system level? We need to know what is the file type and where is it located, thanks.

    Best Regards.
    Charles.

    ------------------------------
    Chao Han
    Rocket Internal - All Brands
    Dalian CN
    ------------------------------



  • 7.  RE: $INSERT shown as errors (piopen flavour)

    Posted 12-08-2022 23:01
    Edited by Jan Van Schalkwyk 12-08-2022 23:03

    Hi Charles,

    $INSERT works exactly like $INCLUDE.
    Please ask Rocket Universe support how this works.

    "$INSERT I_READ.IC\SCREEN.DATA277\SCREEN.DATA277"


    I_READ.IC is in the same file as all our Basic Programs. (Type 19 file)

    When a program is compiled then this piece of code is INSERTED into the BASIC program.
    The above can be used over and over in lots of programs​.

    "\SCREEN.DATA277\SCREEN.DATA277" are merely parameters passed to the code.

    The important part is that I_READ.IC is included in the program.

    We have lots of INSERTs and is used in most of our programs.
    This was only one example. See the original graphic that I posted

    To answer your last question:
    "We need to know what is the file type and where is it located"

    It is located in the same file as the calling program (file)
    Program files live in a Type 19 file

    I hope this is clear enough?

    Thank you



    ------------------------------
    Jan Van Schalkwyk
    Developer
    Heritage Bank Ltd
    ------------------------------



  • 8.  RE: $INSERT shown as errors (piopen flavour)

    ROCKETEER
    Posted 12-09-2022 09:24
    Hi Jan,
    I happened to see this post and found the syntax a little confusing. I would expect the argument to the $INSERT to be a pathname. So I'm not sure I understand how the other information is passed as a parameter to the code. When trying a similar example, the BASIC compiler generates errors. Can you clarify? I'm sure I must be missing something.
    Thanks,
    Neil

    01 COPYP BP INSERT.TEST I_READ.IC (TSN

    INSERT.TEST
    $INSERT I_READ.IC\SCREEN.DATA163\SCREEN.DATA163
    $INSERT I_READ.IC\SCREEN.POSN163\SCREEN.POSN163
    END

    I_READ.IC
    CRT "IN INSERT"
    >BASIC BP INSERT.TEST
    Compiling: Source = 'BP/INSERT.TEST', Object = 'C:\U2/ACCOUNTS/NEIL/BP.O/INSERT.TEST'

    000001 $INSERT I_READ.IC\SCREEN.DATA163\SCREEN.DATA163
    ^
    Cannot find file 'I_READ.IC\SCREEN.DATA163\screen.data163'


    000002 $INSERT I_READ.IC\SCREEN.POSN163\SCREEN.POSN163
    ^
    Cannot find file 'I_READ.IC\SCREEN.POSN163\screen.posn163'



    2 Errors detected, No Object Code Produced.

    ------------------------------
    Neil Morris
    Universe Advanced Technical Support
    Rocket Software
    ------------------------------



  • 9.  RE: $INSERT shown as errors (piopen flavour)

    Posted 12-09-2022 13:15

    Hi Neil,

    It is a bit more complicated :-)

    I am currently on leave and will give a proper explanation in the new year

    Cheers



    ------------------------------
    Jan Van Schalkwyk
    Developer
    Heritage Bank Ltd
    ------------------------------



  • 10.  RE: $INSERT shown as errors (piopen flavour)

    ROCKETEER
    Posted 12-09-2022 13:54
    Hi Jan,
    No worries. Enjoy your leave.
    We can catch up in the New Year.
    Thanks,
    Neil

    ------------------------------
    Neil Morris
    Universe Advanced Technical Support
    Rocket Software
    ------------------------------



  • 11.  RE: $INSERT shown as errors (piopen flavour)

    ROCKETEER
    Posted 02-28-2023 21:08

    Hi, Jan.

    We have implemented some new change in our extension to support this "$INSERT" statement and the new build MVVS 1.10.0 will be released at the end of this month, then you can do some testing for this issue, feel free to reach out to us if you have any feedback, thanks.

    Btw, if possible, could you please also help to review the history of this discussion and see if you can help to provide more details about your source code to Neil?

    Best Regards.

    Charles.



    ------------------------------
    Chao Han
    Rocket Internal - All Brands
    Dalian CN
    ------------------------------



  • 12.  RE: $INSERT shown as errors (piopen flavour)

    Posted 03-01-2023 13:19

    Hi Charles,

    I will certainly have a look at 1.10.0 when it becomes available.
    My apologies  for not getting back to Neil.
    We are a bit swamped with work at the moment and will provide more detail to Neil ASAP

    Cheers



    ------------------------------
    Jan Van Schalkwyk
    Developer
    Heritage Bank Ltd
    ------------------------------



  • 13.  RE: $INSERT shown as errors (piopen flavour)

    Posted 04-09-2023 23:32

    Hi Charles,

    Version 1.10.1 is looking much better for $INSERT and now showing way less errors than before.
    There is however still a small problem which I doubt can be fixed.

    Maybe if Neil can make direct contact on Zoom I can explain better.
    Screenshots do not tell the full story

    Thank you for the effort on the $INCLUDE and $INSERT.
    It made a huge difference



    ------------------------------
    Jan Van Schalkwyk
    Developer
    Heritage Bank Ltd
    ------------------------------



  • 14.  RE: $INSERT shown as errors (piopen flavour)

    ROCKETEER
    Posted 05-10-2023 23:09

    Hi, Jan.

    Many thanks for your feedback, I would like to create a support case for this so we can discuss more, let me know if you have any other thought, thanks.

    Best Regards.
    Charles.



    ------------------------------
    Chao Han
    Rocket Internal - All Brands
    Dalian CN
    ------------------------------