Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

Why does the stderr for C# only give "Compilation failed: 1 error(s), 0 warnings" when using the I. Console?

+1 vote
asked May 28, 2021 by Andre Van Slyke (130 points)

I have been trying to use the Interactive Console to trouble shoot errors in my C# code.

However, most of the time (like 99/100 times), selecting the stderr tab above the console will give me an error line that is formatted like this:

"Compilation failed: 1 error(s), 0 warnings"

And it won't include any actual details on the warnings or errors.

However, if I change the input method to "Text" instead of the Interactive Console then it properly gives explanations on any errors that are in the code.

I have a very annoying workaround to getting this working by going back and forth, but I'm not sure what is causing the lack of error information. This did not use to be the case, and sometimes I do get the correct error information.

By default I have been using Chrome.

Example error output formatting (note - there are really small errors in here just to proc an error).

Example 1a: Interactive Console: https://i.ibb.co/nPyLdy2/ICError1a.png



Example 1b: Text Console: https://i.ibb.co/sPgSzn9/ICError1b.png



Example 2a: Interactive Console: https://i.ibb.co/GTqMLyg/ICError2a.png



Example 2b: Text Input: https://i.ibb.co/fp8H4Jz/ICError2b.png

1 Answer

0 votes
answered Jan 2, 2022 by xDELLx (10,500 points)
It may have been un expected error(that time) , worked fine for me now.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...