-
-
Notifications
You must be signed in to change notification settings - Fork 514
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
[BUG] Module/connection version info seemingly(?) not being migrated correctly, resulting in "Missing version information" warnings #3253
Comments
This fix a8e3c69 will probably help you a bit It sounds as though we are maybe not filling in the missing This isn't going to be the smoothest conversion, because we don't bundle any modules, so we can't fill in exact versions until things are installed and we arent auto-triggering the install of missing modules. When I updated my staging system the other day I had to click the 'install missing versions' button and it installed almost everything (some since fixed bugs stopped it from finding everything). I don't have any dev modules on that system though |
I've made another fix for this. It wasn't correctly fixing up some version numbers, notably filling in 'dev' when a dev version was on disk, and maybe nothing at all if the first try didn't find a suitable version. Could you have another play and see if any cases are still missing? |
Soooooooo... I absolutely can't say that I'm testing this correctly! What I have done to attempt to test this, is:
That all appears to me to indicate this still doesn't quite work. But I am extremely uncertain that I've accurately replicated the initial state of my system, that the improved migration code was supposed to be able to handle! Please let me know either what I'm doing wrong if I'm doing it wrong (very plausible), or let me know what files I can upload so you can test this yourself. |
This is the same as what I am seeing. |
Is this a bug in companion itself or a module?
Is there an existing issue for this?
Describe the bug
I have four modules in
module-local-dev/
in my build (presently onmain
), and in my configuration seven connections using them. Despite evident efforts to avoid this, they trigger a "Some modules are missing version information." box and button, with count of seven missed-info connections.companion/webui/src/Connections/ConnectionList.tsx
Line 497 in 8f2971a
attempts to exclude these variables, but the attempt doesn't work. I've added logging into my build, and I see that when it reaches the linked line,
module.devVersion
is non-null as expected (I assume due tocompanion/companion/lib/Instance/ModuleInfo.ts
Line 55 in 8f2971a
per cursory code inspection)...but
connection.moduleVersionId
despite being typed asstring
actually has valueundefined
, so the comparison fails. So somehow a badly-typed value is getting into the relevant value store.I poked more, and it appears this is the result of some sort of inadequate module info migration. I tracked down
companion/companion/lib/Instance/ConnectionConfigStore.ts
Line 112 in 8f2971a
as having
config.moduleVersionId === undefined
but couldn't track down where that came from. (Possibly from config data saved to disk?) And when I added a new connection using one of these modules, selecting its "Dev" version, suddenly all the connections'moduleVersionId
seem to get rewritten tonull
and they start falling into this path -- so maybe the "config data saved to disk" hypothesis has now come into play (and updating the store causes actually-typed config data to be written out/read back in). But at that point the warning started to occur (I think a number of times equal to all connections I have, not merely the seven that were frommodule-local-dev/
but also ones that use bundled modules?) because of this line insteadcompanion/webui/src/Connections/ConnectionList.tsx
Line 485 in 8f2971a
...and at that point my willingness to dive into this maze of code ended. 🙂 (Wild guess: maybe preexisting connections are not being correctly imputed modules on migration? 🤷)
To sum up: there seems to be something wrong in all this. And hopefully some of the flow of consciousness above is helpful in understanding and fixing it. (And loud apologies in advance for whatever portion of it isn't!)
Steps To Reproduce
No response
Expected Behavior
No response
Environment (please complete the following information)
Additional context
No response
The text was updated successfully, but these errors were encountered: