Hallo !
I have came across your very helpful tool, but I found one significant problem, which prevent me to use it.
Good case:
Relative content of ansi_c_abc2xml_cfg.xml file:
<filename value="./src/main.c" root="SourcePath" donotskip="Yes">
<common name="Common" keepvalidecode="Implicit">
</common></filename>
Scenario: Run the abc2xml.exe for a specific file.
Result: About 500kB XML file is generated.
When I afterwards run the xml2abc, the NSD is generated and content is OK.
Bad case1:
Relative content of ansi_c_abc2xml_cfg.xml file:
<foldername value="./src/" root="SourcePath" fileattachment=".c" recursive="Yes" donotskip="Yes" common="Common" keepvalidecode="Implicit">
Scenario: Run the abc2xml.exe for a specific directory containing only one specific file(the same as in the good case)
Result: Only about 8kB file is generated.
When I afterwards run the xml2abc, the NSD is generated, but it is empty.</foldername>
Bad case2:
Scenario: I have tried to generate the XML by doxygen. I have used the attached Doxyfile_ansi_c_xml with modified "Input".
Result: About 140kB file is generated.
When I afterwards run the xml2abc, the NSD is not generated at all.
I would be obliged if the problem could be solved, because I need exactly such a tool to analyze our huge project.
Thanks and best regards.
Hello Lubos Hubka .
First of all the XML output of Doxygen is only used to add links to the Doxygen documentation if needed. But Moritz is not able to generate diagrams from it, since the structure is differing in detail.
* Thus your case 2 is a normal case and no bug.
For your case 1 please provide an example that contains complete file "ansi_c_abc2xml_cfg.xml" as well as an example source to reproduce your issue.
* It may be helpful if you provide your good case also.
Thanks for your understanding.
Please stay well and healthy,
Eckard Klotz.
Hallo Mr. Klotz!
Thanks for the fast response.
I'm sending my test environment.
working_ansi_c_create.bat - good case
not_working_ansi_c_create.bat - bad case1
Stay negative!
;)
Best regards.
Lubos
Hello Lubos Hubka .
Thanks for your zip-file.
I will take a look to it but may be not before weekend.
Stay negative also by keeping a positive mindset.
Best regards,
Eckard Klotz.
kein problem.
Hello Lubos Hubka .
The reason of your issue is not a bug but a wrong configuration.
This is the folder configuration in your not working example:
You have extended the list of attributes for the xml-node FolderName by adding the attributes Common and keepValideCode. But this additional attributes are not expected by the binary and will be simply ignored.
The correct configuration of the preprocessor-behaviour will be done as you have done for the single file:
You have to add at least a sub-node called Common if your sources contain compiler switches (#if, #else, #endif, ...). For complex definitions of preprocessor constants you have to add Special nodes also which are referring to Variants
This has to be done for folder configurations as well as for file configurations as you can read in the documentation in the chapter:
OK, the documentation is very huge. Thus I attached a reworked version of my introduction document you normally find here :
If you use SVN you may also download my latest SVN archive here:
I hope this will solve your issue and provides you a little bit more clarification.
Stay negative also by keeping a positive mindset.
Best regards,
Eckard Klotz.
Hello Lubos Hubka .
Please confirm that your issue is solved with my proposal.
If you like to discuss some details around pleas open a new topic in the discussion forum since this bug topic will be not easily visible any more once i close it.
Best regards,
Eckard Klotz.
Hallo Mr. Klotz.
Sorry for delay, during weekend I'm usually not working with the computer.
And I'm sorry but I'm not sure I understood your answer.
The NSD is not generated even when I omit the <Common name="Common" and keepValideCode="Implicit" from the config file.
So now it looks like:
But nothing has changed.
I will go again through the tutorials, but so far I see no solution.
Thank you for your time.
Have a nice rest of the weekend.
Lubos
Last edit: Lubos Hubka 2021-06-27
OK, I have also tried the config you proposed:
But the result is even worse - in previous run there was an empty HTML file generated. Now there is nothing.
Have you tried the configuration? Did it worked for you? Because if yes, that means I have different version of moritz binaries than you.
Last edit: Lubos Hubka 2021-06-27
Hello Lubos Hubka .
How ever let's do it step by step.
Stay well and healthy.
Best regards,
Eckard Klotz.
Hallo Mr Klotz.
Well, then I'm making something terribly wrong.
I have replaced mine binaries with last patched (bin_Windows_64bit_32bit.zip from 2020-12-23).
But I still have no result.
I think I have problem with abc2xml, because when I run not_working_ansi_c_create.bat and then working_ansi_c_create.bat, I get 2 completely different xml files - the content is different.
Could you provide your "not_working_ansi_c_abc2xml_cfg.xml" file?
Then I should be able to see what's wrong.
Thanks.
Best regards.
Lubos
Last edit: Lubos Hubka 2021-06-28
Hello Lubos Hubka .
If this is still not helping you please read again the last part of my post before.
Stay well and healthy.
Best regards,
Eckard Klotz.
Hallo Mr. Klotz!
I have got it! Pls. feel free to close this problem report.
Many thanks.
Best regards.
Lubos
Hello Lubos Hubka .
That's good to read.
Could you give us a short description of your finding so that other users may learn from it?
Stay well and healthy.
Best regards,
Eckard Klotz.
Hallo! Sorry for the delay, it's holiday time.
So the problem was quite trivial:
Mine wrong config:
Yours working config
So, this did the trick:
Hello Lubos Hubka .
Thanks for this short completion of the story.
I will close this topic now.
In the case that you face other issues could you pleas open an own topic for each issue in the discussion forum first.
Stay well and healthy.
Best regards,
Eckard Klotz.