nabl-uri does not work on names annotated with a use, because this has a result in it. As a consequence, nabl-get-property also does not work on use-sites.

Submitted by Guido Wachsmuth on 30 June 2013 at 15:05

On 30 June 2013 at 15:11 Guido Wachsmuth tagged error

On 30 June 2013 at 15:11 Guido Wachsmuth tagged @gohla

On 30 June 2013 at 19:19 Gabriël Konat commented:

Because a Use does not contain a URI. If you want the URI of a def use nabl-collect-one-resolved-def to resolve the Use to a Def, and then call nabl-uri on that. However, I could change nabl-uri to do this automatically, but it might be a bit weird since a Use can point to multiple Defs and nabl-uri should only return one URI.


On 30 June 2013 at 20:18 Guido Wachsmuth commented:

I see your point. I was assuming old behaviour here, probably because of a nabl-uri rule for Use.

The underlying question here is how to access index information during compilation. For definitions, nabl-get-property does the job, for use-sites you suggest nabl-collect-resolved-def; nabl-get-property?

What do you think about nabl-get-property which works also on uses, when there is exactly one property value (even for possibly multiple Defs) and nabl-get-properties for all property values at a use site?


On 30 June 2013 at 20:19 Guido Wachsmuth tagged rfc

On 30 June 2013 at 20:48 Gabriël Konat commented:

I think in that case nabl-uri should just resolve the Def for you, nabl-get-property/nabl-get-properties use nabl-uri internally so it will work on uses after that change. A nabl-uris could be added in case you want all the URIs.


On 24 July 2013 at 00:31 Guido Wachsmuth commented:

I like the approach with nabl-uri and nabl-uris, which work on defs and uses, and nabl-get-property and nabl-get-properties which rely on these. Can you implement this, @Gabrïel?


On 24 July 2013 at 02:12 Gabriël Konat commented:

Sure


On 24 July 2013 at 02:12 Gabriël Konat removed tag rfc

On 24 July 2013 at 02:12 Gabriël Konat tagged improvement

On 24 July 2013 at 02:12 Gabriël Konat removed tag error


On 28 July 2013 at 05:47 Gabriël Konat closed this issue.

On 23 June 2014 at 15:31 Guido Wachsmuth reopened this issue.

On 23 June 2014 at 15:32 Guido Wachsmuth commented:

This stopped working in the current nightly. get-type and friends fail, because nabl-uris fails on names annotated with uses.


On 24 June 2014 at 11:16 Gabriël Konat commented:

It didn’t stop working in nightly, the call to index-setup was passing the language name instead of the project-path, creating a new task engine and making any task insertion fail.


On 24 June 2014 at 11:16 Gabriël Konat closed this issue.

Log in to post comments