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
XSharp Cahors 2.9
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
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
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
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
robert@xsharp.eu
The Netherlands
robert@xsharp.eu
XSharp Cahors 2.9
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
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
robert@xsharp.eu
The Netherlands
robert@xsharp.eu
XSharp Cahors 2.9
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
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
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
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 Development Team
The Netherlands
robert@xsharp.eu
The Netherlands
robert@xsharp.eu
XSharp Cahors 2.9
If i understand the ticket correctly, the problem exists ONLY with WPF apps, and working in VS ?
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
XSharp Cahors 2.9
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
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
Hi Karl,
Yes, it has to do with some specific code generation in VS with WPF.
Yes, it has to do with some specific code generation in VS with WPF.
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
XSharp Cahors 2.9
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 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.
--