Skip to content

Fix setup in IDEs with an older Toolbox logging API - #409

Merged
fioan89 merged 3 commits into
mainfrom
fix/in-ide-support-with-older-tbx-api
Dec 2, 2026
Merged

fioan89 merged 3 commits into
mainfrom
fix/in-ide-support-with-older-tbx-api

Conversation

@fioan89

@fioan89 fioan89 commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

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.

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.
Comment thread CHANGELOG.md Resolved
@linear-code

linear-code Bot commented Dec 2, 2026

Copy link
Copy Markdown

JET-47

@fioan89
fioan89 merged commit 6333c2a into main Dec 2, 2026
8 checks passed
@fioan89
fioan89 deleted the fix/in-ide-support-with-older-tbx-api branch December 2, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants