[Bug] Clang Error

This is an error report.

Screenshot of the error

Error details

I am getting this error "Too many errors emitted, stopping now clang(fatal_too_many_errors) " this my code compiles and run properly but when i submit code it is showing some error how to fix it

Same issue here as well.
The sample code of Action Client has this issue:

	"resource": "file:///home/user/ros2_ws/src/my_action_client/src/action_client.cpp",
	"owner": "_generated_diagnostic_collection_name_#134d74ae-9837-4f8f-b1b8-45d70d5fccf3",
	"code": "fatal_too_many_errors",
	"severity": 1,
	"message": "Too many errors emitted, stopping now",
	"source": "clang",
	"startLineNumber": 0,
	"startColumn": 0,
	"endLineNumber": 0,
	"endColumn": 0

I thought i can ignore this error since It compiles correctly.
But its not finished cleanly as the instruction says though the robot moved as we exepcted.
And when i check ps, it still processing:

Not sure if it is because of this error.
Could you have a look? @staff

I just found this report:

So this problem (the process doesnt finish cleanly) is fine now.
But still, the clang error exists.

Hi @reiko.iwamoto,

I’m happy that your code runs nicely.

Related to the clang error, this is just a false alarm that we indeed have to fix. But if the program compiles correctly, you can just ignore those clang-related errors for the moment.


1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.