Closed pinoval closed 4 years ago
Hi, go to Window -> Preferences -> TyphonDL -> DBTemplates -> Restore Defaults, same for DBType Templates. Sorry this should be done after every DL update, will put that information in the next PR as well.
It still fails. It seems that there is no template for keyvalue or graph, even after clicking on Restore Defaults
.
This is how that dialog looks like right after doing so:
That is weird, for now you can "Import" the templates. maybe delete the double ones. I will look into it
Sorry I don't seem to be able to reproduce that behavior, even if I delete all templates, all of them appear again if I click on Restore Defaults. The only difference I see is that I'm running eclipse 2020-03. Also this is an Xtext feature, what is your installed Xtext version?
This is indeed strange. I followed your advice and imported the templates.xml
file. After that, the preferences dialog looks like this:
Unfortunately, after generating the DL model, I got the same error and furthermore, the list of available templates on the preferences dialog reverted to the previous situation.
My Xtext version is 2.21.0.v20200302-1509.
The Xtext version is fine. Can you find anything in the Error Log?
Could you please post the content of
<workspace>/.metadata/.plugins/org.eclipse.core.runtime/.settings/de.atb.typhondl.xtext.ui.prefs
It should be
de.atb.typhondl.xtext.TyphonDL.templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>
eclipse.preferences.version=1
And is this file changed when you import the templates and "apply"?
This is the content, before "apply":
de.atb.typhondl.xtext.TyphonDL.templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>
eclipse.preferences.version=1
The timestamp of the file does change when I import the templates and apply them, but the content remains the same.
ok, that means the plugin recognizes those as default templates. Sorry, I don't know why this is happening, could be something with the PersistentPreferenceStore of Eclipse. If other preference changes are correctly stored (e.g. change the line number color in General->Text Editors) maybe remove and reinstall the DL plugin.
Apparently there were some problems with the deployment scripts. @DavyLandman tweaked them and now it is working again. I close therefore the issue.
When trying to generate a DL model from the XMI representation of an ML model, there is an error stating "There is no template for a keyvaluedb".