Skip to content

Conversation

chmerdon
Copy link
Member

@chmerdon chmerdon commented Jul 8, 2025

@show of FEVectorBlock was not working

chmerdon added a commit that referenced this pull request Jul 8, 2025
chmerdon added a commit that referenced this pull request Jul 9, 2025
* fixes related to new TVector type for entries introduced in 1.2

* version bump and changelog (together with PR #45)
@chmerdon chmerdon requested a review from pjaap July 9, 2025 08:15
@chmerdon chmerdon changed the title fixes show method crash for FEVectorBlock fixes show method crash for FEVectorBlock + additional show functions Jul 9, 2025

function test_vertex_values(EG, FEType, order)
qf = VertexRule(EG, order; T = Rational{Int})
@show qf
Copy link
Member

@pjaap pjaap Jul 9, 2025

Choose a reason for hiding this comment

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

I generally like the idea, but, nevertheless, the logs are pretty verbose now: https://github.com/WIAS-PDELib/ExtendableFEMBase.jl/actions/runs/16163910516/job/45621150705?pr=45#step:6:928

It may be better to test the show function directly with show(devnull, qf) which redirects the output into the void. Errors should be thrown as before, if something is not implemented correctly.

Copy link
Member

Choose a reason for hiding this comment

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

One could also add a global variable target_stream = devnull in the runtests.jl. The user can set this to stdout if inspecting the output is needed. Opinions?

Copy link
Member Author

Choose a reason for hiding this comment

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

and then use show(target_stream, obj) everywhere?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, or just show(devnull, obj) ... I am not sure whether a switch is any good or just creates confusion.

Copy link
Member

Choose a reason for hiding this comment

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

After thinking for a few more seconds: no target_stream. If I want to inspect the output in the logs, I just remove the devnull

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, then I will use show(devnull, obj)

@chmerdon chmerdon merged commit 7f1e489 into master Jul 9, 2025
11 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