-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
FIX(server): Restore CLI flag --help output for mumble-server #6953
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
Conversation
Walkthrough
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/murmur/main.cpp(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
- GitHub Check: PR (macOS)
- GitHub Check: PR (Linux)
- GitHub Check: PR (Translations)
- GitHub Check: PR (Docs)
- GitHub Check: PR (Windows_x64)
|
All checks have passed and the feedback from CodeRabbit has been address. May someone please approve the workflow and review for merging. |
|
This fixes the problem. Out of curiosity, can you explain why this change was necessary in mumble-server, but not the mumble client? |
Well my thought process was that since the problem was occurring on the mumble-server i looked at the main.cpp file of it and since you guys mentioned it was working one person but not for another so I figured maybe there was a something/removed. And i noticed that since the addition to CLI11 we were having this problem so I figured that was it. I didn't think about the mumble-client since the problem was for the mumble-server command flag |
This entirely misses the point of my question. I know that there was a problem with mumble-server and not with mumble-client, since I was the one who reported the issue. I want to know (without digging into it myself, because otherwise I could have done this entire MR myself), why the implementation before your PR was working for the client but not the server. If you look at both implementations you will find that they are almost identical (with regards to the CLI parsing). So why was this broken in the first place? |
In the mumble client main.cpp there was no custom message handler (qInstallMessageHandler) and was using the default Qt message handler. Whereas in the mumble-server main.cpp that custom handler was called |
Thanks for the explanation. I see it now: We do While we do |
|
The only things missing for this PR are
If you have any further questions, feel free to ask |
I used clang-format version 18 since i couldn't get the older version. I hope it still has the proper formatting, if not please notify and ill change it manually right away. |
We are happy, if the CI is happy. For now please include the formatting fix in your existing 2 commits. |
Can you explain what you meant by CI? I didn't get it. |
CI is short for "continuous integration". These are the builds and checks that are run for every commit (on GitHub they are listed here under "checks". In order for your PR to be accepted all CI runs (checks) need to pass.
You'll have to disentangle your changes first. To do that, squash all three of your commits and then do a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, works as advertised
|
Thank you very much for fixing this 🎉 |
Thank you for allowing to work on it and guiding me through the process!! |
Commit restores output from the
--helpand-hcommand when callingmumble-serverby passing the help text from CLI11 to stdout.Previously the
--helpwas being swallowed by internal logger, since Mumble’s startup wraps CLI11 inside its own Murmur initializing logic that was detaching from the console.So effectively the
--helpflag was being triggered and parsed but not displayed on user output terminal.Closes #6934