question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception names with backticks are incorrectly displayed

See original GitHub issue

Consider the following code:

exception SomeError of ``thing with space``: string

The tooltip is displayed like this: image It looks strange, the backticks should be preserved in the display name.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
dsymecommented, Jul 31, 2022

The main thing here is consistency - we should do whatever we do for values, functions, methods, types, union cases, record fields.

My understanding from the deep code review we did is that we add back ticks for tool tips in these cases, so we should make this case consistent and then deal with alternative choices systematically in a separate issue

2reactions
baronfelcommented, Jul 29, 2022

I’d push back on that - I think that tooltip formatting looks perfectly fine as is. Double backticks in the tooltip would be more visual noise (but it would align with the code written, I’ll grant you that).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot use Kotlin backticked method names in androidTest
In tests (and only in tests), it's acceptable to use method names with spaces enclosed in backticks. (Note that such method names are ......
Read more >
Class names with backticks containing symbols ... - YouTrack
Subtask of 1 issue (1 unresolved)​​ A small investigation after KT-17422 showed that class names with backticks containing symbols "*", "?" fail on...
Read more >
[#SPARK-39783] Column backticks are misplaced in ...
The proposed / existing column names are not correctly wrapped in backticks: Seq((0)).toDF("the.id") .select("the.id").show() ...
Read more >
What is the guideline about using code backticks? - TeX
I noticed that using inline code tags (`code`) is commonly use for names of packages or software (among other uses). But we could...
Read more >
One (Perhaps Surprising) Reason Why I may Silently ...
This three-backtick problem is only one of them. Other common problems include: Do not use verbatim code blocks, e.g., R comments are displayed ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found