-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
If no configuration found, or adapter was not properly installed, check it. #2418
Conversation
Do we really want to support this? should already terminate here
|
the root problem is that adapter dir is not found in such a scenario, so would need to plug in their. However it should basically exit then - else the question for me is if we really need to support this scenario, we have a few better ways to debug a adapter nowadays. |
So add at least |
You can easily pass around it, by providing the actual Else, we can implement some special logic to set the adapter dir, just like the host name for dev purposes like https://github.com/ioBroker/ioBroker.js-controller/blob/ff6975303d61f04653686fcde3284baab3f62485/packages/common/src/lib/common/tools.ts#L1574C1-L1576C6 |
By every adapter I develop? 100 or so? It is immposible |
We are discussing here about 2 question marks, that will save me tons of hours. Isn't that absurd? |
As soon as I understand how exactly you debug to even get this running, we will find a way, no problem with adding the question mark, even if I think there are more straight forward ways to debug. And currently I am not sure and cannot assess if it will save you tons of hours or will end up in a need for other workarounds later on to get the setup of one dev running. I now tried two scenarios to reproduce (Adapter not added to ioBroker as stated by you in the initial post): One started the adapter from workspace one from node modules but still not added to ioBroker, as expected, both fail. So how can I reproduce it? |
ah so its more about controller debugging and not adapter debugging of course then we have no dev-server yet. I think in general like in maybe someday with #2161 |
You can reproduce this error when starts the adapter, that does not even added to iobroker.