LINQPad can't show the program results
Hi,
LINQPad does not display the program results, and there are no error messages.
double[] va = {1.0,2.0,3.0,4.0,5.0}; int i = indexOfMaxValue(va); va[0].Dump(); int indexOfMaxValue(double [] values) { double max = values[0]; int index = 0; for (int i = 1; i < values.Length; i++ { if (values[i]>max) { max = values[i]; index = i; } } return index;
May anyone could help me guide how to fix this?
Comments
I've occasionally seen this after a WebView2 runtime update. Have you tried restarting Windows?
How to solve this problem?
The right border does not show results.
After reinstalling the software and restarting the computer, it still does not work.
Try switching to the old engine:
If the issue you're facing is resolved, it implies that you were experiencing problems related to WebView 2.
Thank you so much!
This method works.
To troubleshoot WebView 2 uncheck this:
Try toggling this setting:
If it had no effect turn the setting back to false.
Try Installing WebView 2 standalone:
https://developer.microsoft.com/en-us/microsoft-edge/webview2/
If the WebView 2 results panel in LINQPad stops working, it might be because something on your computer changed and caused WebView 2 to stop working. This happens sometimes, especially if you have other programs that use WebView 2 and made changes to your system.
Thanks, Stephen
I followed your steps and install the WebView 2 ,but it dosn't work.
Maybe there's something wrong with the system.
Thanks again.
@JoeAlbahari
Some more ideas I have handy: I use WebView2 daily and it is overcomplicated.
Restart between changes: Can be a pain, but may be required:.
Reinstall Microsoft Edge and install Microsoft Edge Dev version:
https://support.microsoft.com/en-us/microsoft-edge/troubleshooting-tips-for-installing-and-updating-microsoft-edge-a5eceb94-c2b1-dfab-6569-e79d0250317b
Check if WebView2 processes exist under LINQPad:
These args are important and might need checking:
Try the beta version of LINQPad: https://www.linqpad.net/LINQPad7.aspx
Try the portable install and the installer versions of LINQPad: They can run side-by-side so it won't hurt to test.
Try creating a new user profile on windows:
If the issue is related to LINQPad and another app conflict this may reset things.
If you are inside a company they might have a policy to enforce Fixed WebView2 versions. This may conflict with LINQPad but I'm not sure.
https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution
Some software use the Evergreen Bootstrapper:
Others don't. This can be related to your issue.
These are things I've done and ideas. It can be tricky to solve WebView2 related issues without more system information. It may be as simple as software running in the background preventing the changes from taking effect.
I forgot...
Try dumping your own WebView2 control:
This would mean at least that LINQPad is handling it correctly when it is loaded in a .linq file. I do this often to troubleshoot inconsistencies.
http://share.linqpad.net/qlps9w.linq