Community
Participate
Working Groups
Build Identifier: I20100608-0911 The hyperlinking feature works only in the same resource and fails to open a referenced resource when using the ImportURIScopingFragment. I'm using Xtext 1.0.0 with the following grammar: grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.common.Terminals generate myDsl "http://www.xtext.org/example/mydsl/MyDsl" Model: (imports += Import)* concepts += Concept*; Import : 'import' importURI = STRING; Concept: 'concept' name=ID '{' ( references += Reference )* '}'; Reference: 'reference' concept = [Concept|FQN]; FQN: ID ('.' ID)*; My MWE file contains the following lines: fragment = scoping.ImportURIScopingFragment {} fragment = exporting.QualifiedNamesFragment {} It works fine with local references (the same resource) and it's not a problem with linking because the name is resolved correctly. Thanks in advance! Reproducible: Always Steps to Reproduce: 1. Choose the scoping.ImportURIScopingFragment 2. Reference a name within another resource 3. Use the hyperlinking feature with Ctrl + Click
Could you please attach a reproducable example?
Created attachment 179929 [details] Xtext projects mydsl and mydsl.ui
Created attachment 179931 [details] DSL file A: this is referenced by B
Created attachment 179932 [details] DSL file B: this references a name in file A Hyperlinking does not work when Ctrl-clicking on the referenced name "A"
This one could be related to normalized / URIs which cannot be found in the IStorage2URIMapping - but that's only a shot in the dark.
See also bug 328016
seems to be resolved with the extended EcoreUtil2.isValid URI check introduced with bug 326760
Alread fixed in HEAD. See comment #7
Closing all bugs that were set to RESOLVED before Neon.0