idf-eclipse-plugin icon indicating copy to clipboard operation
idf-eclipse-plugin copied to clipboard

Errors exist in the required projects (IEP-668)

Open franz-ms-muc opened this issue 3 years ago • 11 comments

When try flash, there appears: image

franz-ms-muc avatar Mar 09 '22 12:03 franz-ms-muc

this appears sometimes also after a 0 error, 0 warning build. 

why ?

franz-ms-muc avatar Mar 09 '22 12:03 franz-ms-muc

Hi @franz-ms-muc It seems to be the project is having errors, could you check the Problems view?

kolipakakondal avatar Mar 09 '22 12:03 kolipakakondal

YES. 

in the Problems view i see 18 "semantic" Errors. 

but the Project build with 0 warnings /0 Errors ...

franz-ms-muc avatar Mar 09 '22 12:03 franz-ms-muc

Ok, are they valid errors (semantic errors) which could be fixed or wrongly reported by the indexer? If it's wrongly reported by the indexer, we could investigate further.

Could you provide a sample piece code where it's showing "semantic" Errors? One such case was reported by here

kolipakakondal avatar Mar 09 '22 12:03 kolipakakondal

I have the same issue. I've had to completely turn off Code Analysis to stop the message. I'm not sure it's the indexer itself though. For instance, if the UI shows an unresolved symbol error for a function and I ctrl-click on the function call, I do get taken right to the function declaration. Re-running the indexer usually does NOT change the errors reported but sometimes doing an explicit validation on a file does. Sometimes, closing and reopening the file or project also fixes things temporarily. The issues always come back though.

I'll get some logs and screenshots.

gtjoseph avatar Mar 16 '22 12:03 gtjoseph

Hi @gtjoseph Thanks for reporting. Could you share with us the sample template where it's reporting unresolved symbol issues to look further on this?

kolipakakondal avatar Mar 17 '22 04:03 kolipakakondal

I'll try and get something together today.

gtjoseph avatar Mar 17 '22 11:03 gtjoseph

I started from scratch...

  • New install of Eclipse 2021-09
  • New install of idf-eclipse-plugin
  • New workspace
  • Create new Espressif IDF Project
  • Selected template storage/sd_card/sdmmc
  • Created target for esp32s3
  • Opened main/sd_card_example_main.c for the first time...

image

A build hadn't been done yet so the missing includes are expected.

  • Started a build which completed successfully.

image

The includes have all been found but there are still unresolved symbols.

  • Start a flash

image

  • Pressed "Proceed" and the flash completed successfully.

  • Re-run the indexer

image

Everything except this one define is resolved.

  • CTRL-click on SDMMC_SLOT_FLAG_INTERNAL_PULLUP

image

I get taken directly to the definition in sdmmc_host.h.

  • Closed the project
  • Did an idf fullclean from a shell
  • Reopened the project and sd_card_example_main.c

image image

Now there's a different set of errors.

This is only a small sample project. In my larger projects this is way more intrusive.

There are no errors in the Eclipse log BTW.

gtjoseph avatar Mar 18 '22 14:03 gtjoseph

Hi @gtjoseph Thanks for the sharing. Let us look into the errors.

kolipakakondal avatar Mar 21 '22 05:03 kolipakakondal

today for Example:

esp_pthread_get_default_config();

underlined red.

comment: Problem description: Invalid arguments ' Candidates are: {C:\Users\Franz\esp- idf-v4.4\components\pthread\include\esp_pthread.h:885} esp_pthread_get_default_config() '

First set project properties: C/C++ General->Indexer->Enable indexer is ticked. Then re-run the indexer by click menu Project->C/C++ Indexer->Freshen All Files, thus 'Semantic Error' disappeared.

Henry586 avatar Apr 23 '23 14:04 Henry586