Resource not present in the ResourcesSet [message #1855550] |
Thu, 20 October 2022 08:55 |
Guillaume Valvona Messages: 2 Registered: August 2022 |
Junior Member |
|
|
Hello,
So where I work, we have a DSL developped with Xtext. For some data, we use a cache system in which we load the content of a CSV file. Recently, we tried deleting the cache part and loading directly from an XLS. So far, so good.
The problem is that we have .properties files that we use to set the prefix of a table for example. I'm using eResource.getResourceSet() to access these files, but the resource set ignores the .properties file :
The resources returned :
org.eclipse.xtext.resource.SynchronizedXtextResourceSet@3ca62a5b resources=[org.eclipse.xtext.linking.lazy.LazyLinkingResource@5aef02e6 uri='platform:/resource/Test%20Finrep/src/NotEqualsTest.test', org.eclipse.xtext.linking.lazy.LazyLinkingResource@1417ece3 uri='platform:/resource/Test%20Finrep/src/Activity-1.0.0.calc', org.eclipse.xtext.linking.lazy.LazyLinkingResource@4d706877 uri='platform:/resource/Test%20Finrep/src/Test-1.0.0.common', org.eclipse.xtext.linking.lazy.LazyLinkingResource@6f159297 uri='platform:/resource/Test%20Finrep/src/ActivityTest.test', org.eclipse.xtext.linking.lazy.LazyLinkingResource@2e1cf322 uri='platform:/resource/Test%20Finrep/src/NotEqualSupport-1.0.0.common', org.eclipse.xtext.linking.lazy.LazyLinkingResource@3ce583cb uri='platform:/resource/Test%20Finrep/src/TestModel.model', org.eclipse.xtext.linking.lazy.LazyLinkingResource@2433cc18 uri='platform:/resource/Test%20Finrep/src/gref.reportvalid']
And the files that should be accessible :
I hope the explanation is clear enough. My question is, is there a place where the file extensions that are returned should be specified ?
-
Attachment: code.png
(Size: 6.68KB, Downloaded 225 times) -
Attachment: files.png
(Size: 5.78KB, Downloaded 216 times)
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03987 seconds