xsharp.eu • XSharp Cahors 2.9
Page 1 of 2

XSharp Cahors 2.9

Posted: Wed Oct 20, 2021 7:54 pm
by Juraj
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:_eKasaRest22eKasaKleKasaKlobjDebugApp.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

XSharp Cahors 2.9

Posted: Wed Oct 20, 2021 8:57 pm
by ic2
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:SeUiXPXsSourceSEUIXP Sample ReBarBasicMenu.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:SeUiXPXsSourceSEUIXP SampleBasicMenu.prg 2

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

Dick

XSharp Cahors 2.9

Posted: Wed Oct 20, 2021 9:10 pm
by robert
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 Cahors 2.9

Posted: Wed Oct 20, 2021 9:11 pm
by robert
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 Cahors 2.9

Posted: Thu Oct 21, 2021 7:24 am
by ic2
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

XSharp Cahors 2.9

Posted: Thu Oct 21, 2021 10:16 am
by robert
Guys,
For the issue with the start function that is generated in the wrong place I have created a GitHub ticket.
https://github.com/X-Sharp/XSharpPublic/issues/820

Robert

XSharp Cahors 2.9

Posted: Thu Oct 21, 2021 10:52 am
by FFF
If i understand the ticket correctly, the problem exists ONLY with WPF apps, and working in VS ?

XSharp Cahors 2.9

Posted: Thu Oct 21, 2021 11:31 am
by ic2
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

XSharp Cahors 2.9

Posted: Thu Oct 21, 2021 12:54 pm
by Chris
Hi Karl,

Yes, it has to do with some specific code generation in VS with WPF.

XSharp Cahors 2.9

Posted: Fri Oct 22, 2021 7:58 am
by rjpajaron
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.

--