microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.52k stars 1.55k forks source link

there are PROBLEMS in my code. #5918

Open gautsang opened 4 years ago

gautsang commented 4 years ago

Type: General

Describe the bug

My code always shows that there is a problem.

image

The error means There need ")".

How can I solve this?

Thanks

To Reproduce Please include code sample and task.json files. Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here including log messages from the Output window.

sean-mcmanus commented 4 years ago

Can you copy/paste the characters of the error so I can search for it?

Also, are you able to provide an isolated code sample that repros the error?

gautsang commented 4 years ago

Hi @sean-mcmanus

the error text is below.

define NOW (SYSTEMTIME.getSystemTime())

다음으로 확장:

(SYSTEMTIME.getSystemTime()) ')'가 필요합니다. Peek Problem (Alt+F8) No quick fixes available

image

I made isolated code. there is nothing error. I think the isolated code may be simple so it was not happened.

sean-mcmanus commented 4 years ago

Yeah, we still need more repro info -- I'm not able to repro the issue, although I can get the error if SYSTEMTIME is not a valid object. Does your code compile? Our parser is hitting some error, possibly caused by missing defines or includes being in the wrong order.

Does the error appear if you replace the macro with its definition? What do you see when you hover over SYSTEMTIME?

gautsang commented 4 years ago

Hi. Sorry for the late reply.

I'll give you a reference git address that causes the error. When you open this project, you will encounter countless PROBLEMS. This PROBLEMS is similar to my previous error. If you fix the PROBLEMS of this project, my error will disappear as well.

image

https://github.com/bitcraze/crazyflie-firmware.git

github-actions[bot] commented 3 years ago

Hey @sean-mcmanus, this issue might need further attention.

@gautsang, you can help us out by closing this issue if the problem no longer exists, or adding more information.