Repository navigation
Fix setup in IDEs with an older Toolbox logging API - #409
Merged
Merged
Conversation
CLion 2026.3.0.2 and IntelliJ IDEA 2026.3.1 RC bundle Toolbox API 1.13.87111, while Coder targets 1.15.88839. The IDE can load the plugin without enforcing its Toolbox API requirement. Logging in the setup wizard then references the missing LogLevel class and stops the wizard before it displays the deployment URL field. CoderLogger now uses a plugin-owned CoderLogLevel in its inline methods. It checks the runtime Logger interface before creating the flight recorder. LogLevel, effectiveLevel and isEnabled were introduced together, so the presence of getEffectiveLevel identifies this capability. The optional recorder maps levels to the host enum with an exhaustive when. Ordinary logging, lazy message evaluation and logger delegation are preserved. Flight recording is disabled entirely when the host API lacks these members: no messages are buffered or replayed. Connection troubleshooting in those IDEs therefore has less diagnostic history until the bundled API is upgraded.
aslilac
approved these changes
Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CLion 2026.3.0.2 and IntelliJ IDEA 2026.3.1 RC bundle Toolbox API 1.13.87111, while Coder targets 1.15.88839. The IDE can load the plugin without enforcing its Toolbox API requirement. Logging in the setup wizard then references the missing LogLevel class and stops the wizard before it displays the deployment URL field.
CoderLogger now uses a plugin-owned CoderLogLevel in its inline methods. It checks the runtime Logger interface before creating the flight recorder. LogLevel, effectiveLevel and isEnabled were introduced together, so the presence of getEffectiveLevel identifies this capability. The optional recorder maps levels to the host enum with an exhaustive when.
Ordinary logging, lazy message evaluation and logger delegation are preserved. Flight recording is disabled entirely when the host API lacks these members: no messages are buffered or replayed. Connection troubleshooting in those IDEs therefore has less diagnostic history until the bundled API is upgraded.