question

SocratesAnibalRiveraRivera-7351 avatar image
0 Votes"
SocratesAnibalRiveraRivera-7351 asked SocratesAnibalRiveraRivera-7351 commented

VS 2019 community failure

I have a strange situation with one project.
The intellisense is saying contradictory things.
First line says everything is ok but last line says everything is wrong (which gets confirmed by rebuild).
Without judging my code (right or wrong) I think this is incorrect behavior.
I have attached some images to show the point.
(I can not find the Restore nuget packages in my VS version -latest, twice repaired just in case-).
Thanks in advance.
Regards,
S.A. Rivera R.
119602-attachment.pdf


vs-general
attachment.pdf (170.0 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, @SocratesAnibalRiveraRivera-7351
May I know whether your issue has been solved or not? If not, please share it in here. We can work together to figure it out.

0 Votes 0 ·

It has been answered.
The problem was that I días not understand correctly what intellisense was saying.
Thank you very much to all.

0 Votes 0 ·
Viorel-1 avatar image
0 Votes"
Viorel-1 answered Viorel-1 commented

Usually, the popup shows details about the hovered item. (In this case, it shows information about Task.Delay). This is suitable when you are writing code and it is not finished yet. But is there are errors, the popup also shows the error details. Sometimes the error can be easier understood having the information from the first part. This seems to be by design. What behaviour do you expect?


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello,
I am sorry. Excuse my bad english.
In the popup the first line says that my code is correct while the last one says the code is wrong (comfirmed by rebuild all included).
Thank you in advance for your time in reviewng this matter.
Regards,
SA Rivera R

0 Votes 0 ·
Viorel-1 avatar image Viorel-1 SocratesAnibalRiveraRivera-7351 ·

Sorry for my bad English too. The first part does not say that your program is correct. It shows helper information about Delay function, the returned value, and possible exceptions, which is useful to understand the code and issues. But because the code contains an error at the same location, the last line of popup also shows information about the problem of your code.

If you are interested in Delay function, read the first part. If you are interested in error, read the last part.

To solve the problem, try changing the function to ‘private async Task AddHelpDeskTicketDetails()’.


0 Votes 0 ·
PengGe-MSFT avatar image
0 Votes"
PengGe-MSFT answered Viorel-1 commented

Hi, @SocratesAnibalRiveraRivera-7351

Welcome to Microsoft Q&A!

I divided the information in the picture into three parts.

Part 1: Information about the Delay method, method name, parameter list, number of overloads, and description of the function of the method.

Part 2: Information about the return value.

Part 3: The name of the exception, and the details of the exception.

This is not contradictory.

119702-image.png

Sincerely,
Peng


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread



image.png (146.6 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.