XSharp Cahors 2.9

This forum is meant for questions and discussions about the X# language and tools
Juraj
Posts: 161
Joined: Mon Jan 09, 2017 7:00 am

XSharp Cahors 2.9

Post 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
ic2
Posts: 1798
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

XSharp Cahors 2.9

Post 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
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

XSharp Cahors 2.9

Post 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 Development Team
The Netherlands
robert@xsharp.eu
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

XSharp Cahors 2.9

Post 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 Development Team
The Netherlands
robert@xsharp.eu
ic2
Posts: 1798
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

XSharp Cahors 2.9

Post 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
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

XSharp Cahors 2.9

Post 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 Development Team
The Netherlands
robert@xsharp.eu
FFF
Posts: 1522
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

XSharp Cahors 2.9

Post by FFF »

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.19, X#2.19.0.2.)
ic2
Posts: 1798
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

XSharp Cahors 2.9

Post 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
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

XSharp Cahors 2.9

Post by Chris »

Hi Karl,

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

XSharp Development Team test
chris(at)xsharp.eu
User avatar
rjpajaron
Posts: 364
Joined: Fri Nov 06, 2015 12:01 am

XSharp Cahors 2.9

Post 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.

--
Post Reply