-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support database path not checked(?) by ibek #170
Comments
you are working late! :-) I'll take a look at this in the morning. It sounds like a bug. |
My experience testing this today is that there is no checking at support module compilation time. There is a failure at runtime if you have created an instance of the definition containing the bad db name:
If you don't specify absolute path you will get the search path that you can see in my snippet above. There are also the module specific path environment variables that you could have used in there (but you don't need them for database templates really unless there is a template name clash between modules, because EPICS_DB_INCLUDE_PATH usually has you covered. Note that this automatic discovery would only work if your templates are in MODULE/db - if not then you would need to use one of these macros to help you construct the path. I'm going to open another issue to cover the lack of checking until runtime. |
It seems that if I refer a not existent database in modbus.support.yaml (but I think is independent from the module) no error is generated neither in building the support neither in building the runtime :
ibek runtime generate ..
To reproduce just change a databese entry:
if I dont specify an absolute path where does ibek search the file? are there predefined search paths? if I want to add some additional templates to an xx ibek-support I put them in the support directory together with xxx.support.yaml? if yes how can I refer them in the xxx.support.yaml?
The text was updated successfully, but these errors were encountered: