Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Extended property issues for 2.3(Extended property issues for 2.3)
Extended property issues for 2.3 [message #1843922] Tue, 24 August 2021 14:03 Go to next message
Arseniy Isakov is currently offline Arseniy IsakovFriend
Messages: 118
Registered: May 2012
Senior Member
Hi

I. have created two error simulation applications (See attachment)

1. VarUpdatedErrorEglEngine.java
If you run this file it will print

java.net.MalformedURLException1
2
3

Ignore "java.net.MalformedURLException" Dimitris mentions it will be fixed in 2.4.
But it should print

java.net.MalformedURLException1
2
2

2. ExtPropretyLostError
If you run this file it will print

java.net.MalformedURLException1
*8
*
Should be

java.net.MalformedURLException1
*8
*8

Actually second error connected with template "reset" method. You are cleaning cache and delete all extended properties





[Updated on: Tue, 24 August 2021 14:06]

Report message to a moderator

Re: Extended property issues for 2.3 [message #1843944 is a reply to message #1843922] Wed, 25 August 2021 09:51 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2165
Registered: July 2009
Location: York, UK
Senior Member

Hi Arseniy,

Many thanks for preparing these minimal examples. I've been able to reproduce the issues you're encountering and will look into them as soon as possible.

Best,
Dimitris
Re: Extended property issues for 2.3 [message #1843947 is a reply to message #1843944] Wed, 25 August 2021 12:50 Go to previous messageGo to next message
Arseniy Isakov is currently offline Arseniy IsakovFriend
Messages: 118
Registered: May 2012
Senior Member
Can you please provide bug number for tracking
Re: Extended property issues for 2.3 [message #1843958 is a reply to message #1843947] Wed, 25 August 2021 14:43 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2165
Registered: July 2009
Location: York, UK
Senior Member

I'll need to look into these to verify that they are bugs indeed. Does this code run as expected with an earlier version of Epsilon?

Best,
Dimitris
Re: Extended property issues for 2.3 [message #1843959 is a reply to message #1843958] Wed, 25 August 2021 14:56 Go to previous messageGo to next message
Arseniy Isakov is currently offline Arseniy IsakovFriend
Messages: 118
Registered: May 2012
Senior Member
Yes
With version. 1.4 working fine;
Thanks
Arseniy Isakov
Re: Extended property issues for 2.3 [message #1855795 is a reply to message #1843959] Thu, 03 November 2022 14:31 Go to previous messageGo to next message
Arseniy Isakov is currently offline Arseniy IsakovFriend
Messages: 118
Registered: May 2012
Senior Member
Hi
Any updates for this issue?
Thanks
Arseniy Isakov

Re: Extended property issues for 2.3 [message #1855800 is a reply to message #1855795] Thu, 03 November 2022 19:29 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2165
Registered: July 2009
Location: York, UK
Senior Member

Hi Arseniy,

Apologies; this somehow fell through the cracks.

Regarding the first example, would it be possible to use EGL's higher-level API for parsing/loading templates as follows?

//VarUpdatedErrorEglEngine.java
...
EglTemplateFactoryModuleAdapter module = new EglTemplateFactoryModuleAdapter();
module.parse(Util.class.getResource("a1.egl").toURI());
module.execute();
...

//a2.egl
...
var templ : Template = TemplateFactory.load("b2.egl");
var buffer = templ.process();
...


In the second example, if b1.egl was not to have access to the variables of a1.egl, then var1="3" in b1.egl would throw an exception because var1 would be undefined. Replacing var var1="3" with var var1="3" does the trick.

I have attached a copy of the project with the proposed updates.

Thanks,
Dimitris
Re: Extended property issues for 2.3 [message #1855871 is a reply to message #1855800] Tue, 08 November 2022 14:16 Go to previous messageGo to next message
Arseniy Isakov is currently offline Arseniy IsakovFriend
Messages: 118
Registered: May 2012
Senior Member
Hi Dimitris

Regarding second issue I understood. So variables created in top module treated as Global variables. Variable created in child module is local.

Not sure if this is good solution. It gives compatibility problem with old version. You have pretty good mechanism to pass parameters to child template without globals

It is good to have compatibility switch for this

Thanks
Arseniy Isakov

[Updated on: Tue, 08 November 2022 16:25]

Report message to a moderator

Re: Extended property issues for 2.3 [message #1855874 is a reply to message #1855871] Tue, 08 November 2022 16:42 Go to previous messageGo to next message
Arseniy Isakov is currently offline Arseniy IsakovFriend
Messages: 118
Registered: May 2012
Senior Member
For issue with ExtPropretyLostError. The problem is template.reset(). You are. clearing extended. property which is global

[Updated on: Tue, 08 November 2022 18:11]

Report message to a moderator

Re: Extended property issues for 2.3 [message #1856046 is a reply to message #1855874] Wed, 16 November 2022 19:52 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2165
Registered: July 2009
Location: York, UK
Senior Member

Hi Arseniy,

Much as I'd like for EGL 2.x to be fully backwards compatible with 1.x, I'm afraid that we're unlikely to be able to allocate significant resources to this activity. If you can produce a fix for this issue that does not break the current EGL test suite, please submit a pull request and I'll review it as soon as possible.

Thanks,
Dimitris
Previous Topic:Unregistering or locally registering a metamodel
Next Topic:How to run an EOL program with a resource in memory prevously loaded
Goto Forum:
  


Current Time: Sat Apr 27 09:14:55 GMT 2024

Powered by FUDForum. Page generated in 0.05348 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top