I've just installed Xtext 2.4 M4 and I see that import statements seem
broken: I've also tested it with the domain model example (freshly
imported in a new workspace)
please file a ticket with your findings. We did some refactorings for
the imports in order to extract a concept 'ImportSection' that can be
used by other languages. Looks like something is broken, now.
Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 29.12.12 15:03, schrieb Lorenzo Bettini:
> Hi
>
> I've just installed Xtext 2.4 M4 and I see that import statements seem
> broken: I've also tested it with the domain model example (freshly
> imported in a new workspace)
>
> and this new test fails
>
> @Test
> def void testParsingAndLinkingWithImports() {
> '''
> import java.util.List
> package example {
> entity MyEntity {
> p : List<String>
> }
> }
> '''.parse.assertNoErrors
> }
>
> with
>
> java.lang.AssertionError: Expected no errors, but got :[ERROR:Couldn't
> resolve reference to JvmType 'List'. (__synthetic0.dmodel line : 4)]
>
> if I put the fully qualified name it works...
>
> @Test
> def void testParsingAndLinkingWithImports() {
> '''
> import java.util.List
> package example {
> entity MyEntity {
> p : java.util.List<String>
> }
> }
> '''.parse.assertNoErrors
> }
>
> is it a known issue?
>
> cheers
> Lorenzo
>
>
the problem is present also when using the "latest" update site
cheers
Lorenzo
On 01/02/2013 08:25 AM, Sebastian Zarnekow wrote:
> Hi Lorenzo,
>
> please file a ticket with your findings. We did some refactorings for
> the imports in order to extract a concept 'ImportSection' that can be
> used by other languages. Looks like something is broken, now.
>
> Regards,
> Sebastian