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.

Controls: Render warning is unclear

See original GitHub issue

It’s easy to confuse formsPlot1.Render() with formsPlot1.Plot.Render() as seen in #1263.

What can we do to make it more obvious how to do this correctly?

renderfail

Related: #1245 #1165

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:19 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
bclehmanncommented, Sep 17, 2021

I agree this message should be hidden in release mode.

We cannot do this with the #if DEBUG, as that’s a compile-time thing and the library will always be compiled in release mode when distributed on NuGet.

The closest thing I can think of is showing an error if a debugger is attached. This can be detected with System.Diagnostics.Debugger.IsAttached.

2reactions
swhardencommented, Sep 17, 2021

not user-friendly, especially when it’s shown in the designer view

@arthurits, I agree! I did not intend for it to appear in designer view. I’ll fix this tonight - thanks for reporting it.

Can we make that it does not show up in Release mode? e.g., using the macro ‘#if !RELEASE’.

@EmanuelFeru, after thinking about this a few more days, I agree this message should be hidden in release mode. I will make this change and tonight and release an updated package on NuGet

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot update a component while rendering a different ...
Warning : Cannot update a component ( ForwardRef(BaseNavigationContainer) ) while rendering a different component ( SignIn ).
Read more >
Unknown Prop Warning
The unknown-prop warning will fire if you attempt to render a DOM element with a prop that is not recognized by React as...
Read more >
Basics of rendering and exporting in After Effects CC
Learn how to render and export in After Effects using the Render Queue panel and Media Encoder and what are the supported output...
Read more >
Maya rendering error solutions
Rendering failure or incorrect rendering effects. Method: check if the renderer used locally is consistent with the one configured on the platform or...
Read more >
Reporting with Brand Controls - Campaign Manager 360 ...
You can create reports from the “Brand Controls” page with information on viewability, issues with tags, and impressions that have been classified or ......
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