Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

XSharp Cahors 2.9 20 Oct 2021 21:54 #20014

  • Juraj


  • Posts: 150
  • Error in my WPF application compiled with 2.9

    in the App.g.prg module, the END CLASS is after the "Start()" function.

    Error message:
    Severity Code Description Project File Line Suppression State
    Error XS9002 Parser: unexpected input 'FUNCTION' eKasaKl F:\_eKasaRest22\eKasaKl\eKasaKl\obj\Debug\App.g.prg 54

    Code:
    .
    .
    .
    PUBLIC PARTIAL CLASS App ;
    INHERIT System.Windows.Application
    /// <summary>
    /// InitializeComponent
    /// </summary>
    [System.Diagnostics.DebuggerNonUserCodeAttribute()] ;
    [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] ;
    PUBLIC METHOD InitializeComponent() AS VOID STRICT
    SELF:StartupUri := System.Uri{"WPFWindow1.xaml", System.UriKind.Relative}
    /// <summary>
    /// Application Entry Point.
    /// </summary>
    /// <summary>
    /// Application Entry Point.
    /// </summary>
    [System.STAThreadAttribute()] ;
    [System.Diagnostics.DebuggerNonUserCodeAttribute()] ;
    [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] ;
    FUNCTION Start() AS VOID
    LOCAL app := eKasaKl.App{} AS eKasaKl.App
    app:InitializeComponent()
    app:Run()


    END CLASS

    Juraj

    Please Log in or Create an account to join the conversation.

    XSharp Cahors 2.9 20 Oct 2021 22:57 #20015

    • ic2


  • Posts: 1183
  • As a matter of exception, I installed the new X#, 2.9, immediately.

    None of my programs work due to the same error as Juraj writes. Every program which starts with a functions fails (we use exactly the same code as Jurj, except the class name).

    I also reinstalled SEUIXP and compiled against 2.9 After removing all error-yielding includes and making a fake change in the basic menu I still have an error

    Severity Code Description Project File Line Suppression State
    Error RC2104 undefined keyword or key name: VK_F4 SEUIXP Sample ReBar C:\SeUiXPXs\Source\SEUIXP Sample ReBar\BasicMenu.BasicMenu_Accelerator.rc 5

    which is on:
    VK_F4, IDM_BasicMenu_Toolbar_Exit_ID, ALT, VIRTKEY

    And new is, that BasicMenu.prg now begins as follows:

    #include "GlobalDefines.vh"
    Define IDM_BasicMenu_File_ID := 21000

    which gives the following error:

    Severity Code Description Project File Line Suppression State
    Error XS9002 Parser: unexpected input '21000' SEUIXP Sample C:\SeUiXPXs\Source\SEUIXP Sample\BasicMenu.prg 2

    When you have a chance (no rush) I would appreciate a new SEUIXP.dll solution which compiles in 2.9.

    Dick

    Please Log in or Create an account to join the conversation.

    XSharp Cahors 2.9 20 Oct 2021 23:10 #20016

    • robert
    • robert's Avatar


  • Posts: 2475
  • Juraj,
    We have made several changes in the code generator because of the reports of the "missing code" in the Windows Forms editor. Most likely this had an (unexpected) side effect.
    I'll look into this tomorrow. I suspect we can fix this with a single DLL update.
    For now you can cut the generated start function (with its attributes) from the class and paste it outside of the class.

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    XSharp Cahors 2.9 20 Oct 2021 23:11 #20017

    • robert
    • robert's Avatar


  • Posts: 2475
  • Dick,
    The (temporary) solution for the WPF problem is in my reply to Juraj.
    For the SEUIXP code you will have to make the (fake) change to the menus and save the menu so the code gets regenerated,
    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    XSharp Cahors 2.9 21 Oct 2021 09:24 #20020

    • ic2


  • Posts: 1183
  • Hello Robert,

    I did make the fake change in the Basic menu and the error remained.

    As said, there's no hurry, I'll just wait until you regenerate SEUIXP..

    Dick

    Please Log in or Create an account to join the conversation.

    XSharp Cahors 2.9 21 Oct 2021 12:16 #20027

    • robert
    • robert's Avatar


  • Posts: 2475
  • Guys,
    For the issue with the start function that is generated in the wrong place I have created a GitHub ticket.
    github.com/X-Sharp/XSharpPublic/issues/820

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    XSharp Cahors 2.9 21 Oct 2021 12:52 #20029

    • FFF


  • Posts: 1241
  • If i understand the ticket correctly, the problem exists ONLY with WPF apps, and working in VS ?
    Regards
    Karl (X# 2.7; Xide 1.27; W8.1/64 German)

    Please Log in or Create an account to join the conversation.

    XSharp Cahors 2.9 21 Oct 2021 13:31 #20030

    • ic2


  • Posts: 1183
  • Hello Karl,

    I also compiled Kees' WinForms program and this compiled without problems (I tried it with a bit older version).

    All my programs are WPF and these failed, so yes, I think so.

    Dick

    Please Log in or Create an account to join the conversation.

    XSharp Cahors 2.9 21 Oct 2021 14:54 #20036

    • Chris
    • Chris's Avatar


  • Posts: 2860
  • Hi Karl,

    Yes, it has to do with some specific code generation in VS with WPF.
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    XSharp Cahors 2.9 22 Oct 2021 09:58 #20078

    • rjpajaron
    • rjpajaron's Avatar


  • Posts: 359
  • Hello X# Team,

    I installed 2.9 but it appears it slowed down BUILD and feedback after successful like "Rebuild All succeeded" is gone and it took forever to build my fairly medium sized libraries.

    I have to uninstall and return to 2.8.3.15 as I have so many things to do.

    Also, it hang VS regularly. I uninstalled and reinstall, same behavior.

    I will try to play 2.9 again and I will let you know.

    --
    --

    Rene Pajaron

    Please Log in or Create an account to join the conversation.

    XSharp Cahors 2.9 22 Oct 2021 10:14 #20080

    • rjpajaron
    • rjpajaron's Avatar


  • Posts: 359
  • rjpajaron wrote: Hello X# Team,

    I installed 2.9 but it appears it slowed down BUILD and feedback after successful like "Rebuild All succeeded" is gone and it took forever to build my fairly medium sized libraries.

    I have to uninstall and return to 2.8.3.15 as I have so many things to do.

    Also, it hang VS regularly. I uninstalled and reinstall, same behavior.

    I will try to play 2.9 again and I will let you know.

    --


    I forgot to include information on what OS and VS this is:
    1. VS 2019 Version 16.11.5
    2. Windows 11 Home
    3. VS have several extensions: Devart dotConnect for PostgreSQL, Telerik UI (6 UI API), Git, .NET Reflector.
    4. 5 year old laptop with i7 7700HQ fairly basic setup, 16 GB, SSD, nothing fancy.

    I will try again next week as I love the update made on 2.9.
    --

    Rene Pajaron

    Please Log in or Create an account to join the conversation.

    XSharp Cahors 2.9 22 Oct 2021 10:20 #20082

    • Chris
    • Chris's Avatar


  • Posts: 2860
  • Hi Rene,

    We're looking into some related issues, an update should be released soon.

    .
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    XSharp Cahors 2.9 24 Oct 2021 02:00 #20098

    • rjpajaron
    • rjpajaron's Avatar


  • Posts: 359
  • Thanks Chris,

    I gonna say this: 2.9 updates is really great. Looking forward to it.

    I will play with it again next week, just so much deadline coming up for next few days.
    --

    Rene
    --

    Rene Pajaron

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1