Home » Modeling » Epsilon » TemplateFactory.load help
TemplateFactory.load help [message #16125] |
Tue, 21 April 2009 10:56 |
No real name Messages: 92 Registered: July 2009 |
Member |
|
|
Hi there,
I have in an EGL script the following line:
var t : Template := TemplateFactory.load('./Other.egl');
Previously, this line worked, but after my version of Epsilon from the SVN
I find that I get the following error:
Internal error: java.lang.IllegalArgumentException: URI is not absolute
at java.net.URI.toURL[URI.java:1080]
at org.eclipse.epsilon.egl.EglModule.parse[EglModule.java:97]
at org.eclipse.epsilon.egl.types.EglTemplate.<init>[EglTemplate.java:48]
at
org.eclipse.epsilon.egl.types.EglFileGeneratingTemplate.<init >[EglFileGeneratingTemplate.java:50]
at
org.eclipse.epsilon.egl.template.FileGeneratingTemplateFacto ry.load[FileGeneratingTemplateFactory.java:51]
at sun.reflect.NativeMethodAccessorImpl.invoke0[Native Method]
...
Do you have any ideas why this might have occurred.
I believe I am probably using the method incorrectly, as I may have
unintentionally changed some of my code along the lines. However, when
having a naive look in to the code, as to why this might error might be
happenning I noticed that in:
org.eclipse.epsilon.egl.template.TemplateFactory
the resolveTemplate method calls UriUtil.resolve(path, templateRoot, root)
-- and on inspection templateRoot and root are null. Should this be the
case? Perhaps I need to call the TemplateFactory.load method differently?!
Any help to resolve this issue would be much appreciated.
PS. I'm running this EGL script from a standard launch configuration.
All the best,
Edd
|
|
| | |
Re: TemplateFactory.load help [message #16194 is a reply to message #16153] |
Wed, 22 April 2009 10:21 |
Louis Rose Messages: 440 Registered: July 2009 Location: York, United Kingdom |
Senior Member |
|
|
Hi Edd,
Thanks for the message. This is a regression introduced in a recent
change to EGL. I'm about to commit a change to SVN that should fix the
problem. Do let me know if you have any further problems.
I'm investigating why our tests didn't fail. I've opened a bug to track
this, and any further issues:
https://bugs.eclipse.org/273222
Cheers,
Louis.
Dimitris Kolovos wrote:
> Hi Edd,
>
> This appears to be yet another path-related regression. Could you please
> open a bug for it and we'll look into it asap.
>
> Cheers,
> Dimitris
>
> Edward Turner wrote:
>> Whoops! Noticed I missed the crucial word of a sentence in my previous
>> message, sorry!! The sentence should read
>>
>> ..
>> Previously, this line worked, but after **updating** my version of
>> Epsilon from the SVN I find that I get the following error:
>>
>> ..
>>
>>
|
|
| | | | |
Re: TemplateFactory.load help [message #566991 is a reply to message #16153] |
Wed, 22 April 2009 10:21 |
Louis Rose Messages: 440 Registered: July 2009 Location: York, United Kingdom |
Senior Member |
|
|
Hi Edd,
Thanks for the message. This is a regression introduced in a recent
change to EGL. I'm about to commit a change to SVN that should fix the
problem. Do let me know if you have any further problems.
I'm investigating why our tests didn't fail. I've opened a bug to track
this, and any further issues:
https://bugs.eclipse.org/273222
Cheers,
Louis.
Dimitris Kolovos wrote:
> Hi Edd,
>
> This appears to be yet another path-related regression. Could you please
> open a bug for it and we'll look into it asap.
>
> Cheers,
> Dimitris
>
> Edward Turner wrote:
>> Whoops! Noticed I missed the crucial word of a sentence in my previous
>> message, sorry!! The sentence should read
>>
>> ..
>> Previously, this line worked, but after **updating** my version of
>> Epsilon from the SVN I find that I get the following error:
>>
>> ..
>>
>>
|
|
| | |
Goto Forum:
Current Time: Thu Apr 25 12:00:33 GMT 2024
Powered by FUDForum. Page generated in 0.04111 seconds
|