Skip to content

Add thread id in ghcide tests log #4204

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

Merged

Conversation

soulomoon
Copy link
Collaborator

@soulomoon soulomoon commented May 2, 2024

What is done:

  • hls-test-utils have flip this on at enable ThreadId for when testing #4174, but ghcide-tests have not. Enable it here too.
    We need to enable it in two places of ghcide, one in the ghcide exe directly, other is in the main entry of the ghcide test
  • remove redundant log when initializing file system during test

@soulomoon soulomoon changed the title Add thread id in ghcide tests Add thread id in ghcide tests log May 2, 2024
@soulomoon soulomoon requested a review from fendor May 2, 2024 16:13
@soulomoon soulomoon marked this pull request as ready for review May 2, 2024 16:13
@soulomoon soulomoon requested a review from pepeiborra as a code owner May 2, 2024 16:13
@soulomoon soulomoon requested a review from michaelpj May 2, 2024 21:34
@@ -73,7 +73,7 @@ main = withTelemetryRecorder $ \telemetryRecorder -> do
-- stderr recorder just for plugin cli commands
pluginCliRecorder <-
cmapWithPrio pretty
<$> makeDefaultStderrRecorder (Just [PriorityColumn, DataColumn])
<$> makeDefaultStderrRecorder (Just [ThreadIdColumn, PriorityColumn, DataColumn])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this seems like it will affect people using the ghcide executable directly? Well, hopefully that will go away in due course anyway...

Copy link
Collaborator Author

@soulomoon soulomoon May 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I am under the impression ghcide is just used for test purpose now and we are considering removing it?

@michaelpj michaelpj merged commit ced09a7 into haskell:master May 4, 2024
39 checks passed
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