-
-
Notifications
You must be signed in to change notification settings - Fork 389
Log fourmolu and ormolu version that hls using #3744
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
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.
At the moment this will be fairly noisy: it's logged at Info and it's going to be logged every time there's a formatting request. It seems to me like it would be better to do it once when the plugin is set up, if we can? That might require doing a "version probe" of the CLI tool at startup, but that seems okay?
I think this is vary from #3660, I just want to add some tracing to keep which formatter is using, hence we can locate the problem like haskell/vscode-haskell#920 easily. How about downgrading this log to debug level? |
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.
I'm fine with this. I'd love to do it more systematically, but this is still an improvement!
Also log ormolu version. |
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.
Please update the test cases as well!
In particular, since the plugins now use the logger infrastructure, change mkPluginTestDescriptor'
to mkPluginTestDescriptor
for both plugins.
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.
LGTM
Since fourmolu exported its version from fourmolu-0.12, we can utilize this to log version info.
And this pr also adds the missing fourmolu-0.13 dependency...