Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not all files on C# project are parsed #143

Open
gerardorosiles opened this issue Jun 29, 2018 · 5 comments
Open

Not all files on C# project are parsed #143

gerardorosiles opened this issue Jun 29, 2018 · 5 comments
Milestone

Comments

@gerardorosiles
Copy link

Processing a C# project, not all files within the source code folde are being processed when using a command like:

analizo graph --modules -o graph.dot project_folder/

Analizo returns the following warnings but it does produce a graph.dot file with not all files scanned:

YAML Warning: Duplicate map key 'CDP::Common::Extensions::Result' found. Ignoring.
Code: YAML_LOAD_WARN_DUPLICATE_KEY
Line: 1280
Document: 1
at /usr/share/perl5/YAML/Mo.pm line 24.
YAML::Mo::ANON(YAML::Loader=HASH(0x563a31ed97e0), "YAML_LOAD_WARN_DUPLICATE_KEY", "CDP::Common::Extensions::Result") called at /usr/share/perl5/YAML/Loader.pm line 357
YAML::Loader::_parse_mapping(YAML::Loader=HASH(0x563a31ed97e0), "") called at /usr/share/perl5/YAML/Loader.pm line 170
YAML::Loader::_parse_node(YAML::Loader=HASH(0x563a31ed97e0)) called at /usr/share/perl5/YAML/Loader.pm line 356
YAML::Loader::_parse_mapping(YAML::Loader=HASH(0x563a31ed97e0), "") called at /usr/share/perl5/YAML/Loader.pm line 170
YAML::Loader::_parse_node(YAML::Loader=HASH(0x563a31ed97e0)) called at /usr/share/perl5/YAML/Loader.pm line 101
YAML::Loader::_parse(YAML::Loader=HASH(0x563a31ed97e0)) called at /usr/share/perl5/YAML/Loader.pm line 25
YAML::Loader::load(YAML::Loader=HASH(0x563a31ed97e0), "---\x{a}/AMaaS/tmp/25fb2c33-03e5-4b6b-ba20-72676a52e142/ctas_diet"...) called at /usr/share/perl5/YAML.pm line 42
YAML::Load("---\x{a}/AMaaS/tmp/25fb2c33-03e5-4b6b-ba20-72676a52e142/ctas_diet"...) called at /usr/share/perl5/Analizo/Extractor/Doxyparse.pm line 45
Analizo::Extractor::Doxyparse::feed(Analizo::Extractor::Doxyparse=HASH(0x563a31e10ab8), "---\x{a}/AMaaS/tmp/25fb2c33-03e5-4b6b-ba20-72676a52e142/ctas_diet"...) called at /usr/share/perl5/Analizo/Extractor/Doxyparse.pm line 179
eval {...} called at /usr/share/perl5/Analizo/Extractor/Doxyparse.pm line 174
Analizo::Extractor::Doxyparse::actually_process(Analizo::Extractor::Doxyparse=HASH(0x563a31e10ab8), "ctas_dietary/common/CDP.Common.Csv.Tests/AnotherSimpleObject.cs", "ctas_dietary/common/CDP.Common.Csv.Tests/CsvFormatterTests.cs", "ctas_dietary/common/CDP.Common.Csv.Tests/SimpleObject.cs", "ctas_dietary/common/CDP.Common.Csv.Tests/Properties/AssemblyI"..., "ctas_dietary/common/CDP.Common.Csv/Csv.cs", "ctas_dietary/common/CDP.Common.Csv/CsvCollectionFormatter.cs", "ctas_dietary/common/CDP.Common.Csv/CsvDataReaderFormatter.cs", ...) called at /usr/share/perl5/Analizo/Extractor.pm line 91
Analizo::Extractor::process(Analizo::Extractor::Doxyparse=HASH(0x563a31e10ab8), "ctas_dietary/") called at /usr/share/perl5/Analizo/Command/graph.pm line 51
Analizo::Command::graph::execute(Analizo::Command::graph=HASH(0x563a31e11070), Getopt::Long::Descriptive::Opts::OPT::2=HASH(0x563a31eb8570), ARRAY(0x563a2fe39af8)) called at /usr/share/perl5/App/Cmd.pm line 468
App::Cmd::execute_command(Analizo=HASH(0x563a31d78538), Analizo::Command::graph=HASH(0x563a31e11070), Getopt::Long::Descriptive::Opts::OPT::2=HASH(0x563a31eb8570), "ctas_dietary/") called at /usr/share/perl5/App/Cmd.pm line 321
App::Cmd::run("Analizo") called at /usr/bin/analizo line 6
YAML Warning: Duplicate map key 'CDP::Permissions::MVC::AuthenticatedViewPage' found. Ignoring.
Code: YAML_LOAD_WARN_DUPLICATE_KEY
Line: 4829
Document: 1
at /usr/share/perl5/YAML/Mo.pm line 24.
YAML::Mo::ANON(YAML::Loader=HASH(0x563a31ed97e0), "YAML_LOAD_WARN_DUPLICATE_KEY", "CDP::Permissions::MVC::AuthenticatedViewPage") called at /usr/share/perl5/YAML/Loader.pm line 357
YAML::Loader::_parse_mapping(YAML::Loader=HASH(0x563a31ed97e0), "") called at /usr/share/perl5/YAML/Loader.pm line 170
YAML::Loader::_parse_node(YAML::Loader=HASH(0x563a31ed97e0)) called at /usr/share/perl5/YAML/Loader.pm line 356
YAML::Loader::_parse_mapping(YAML::Loader=HASH(0x563a31ed97e0), "") called at /usr/share/perl5/YAML/Loader.pm line 170
YAML::Loader::_parse_node(YAML::Loader=HASH(0x563a31ed97e0)) called at /usr/share/perl5/YAML/Loader.pm line 101
YAML::Loader::_parse(YAML::Loader=HASH(0x563a31ed97e0)) called at /usr/share/perl5/YAML/Loader.pm line 25
YAML::Loader::load(YAML::Loader=HASH(0x563a31ed97e0), "---\x{a}/AMaaS/tmp/25fb2c33-03e5-4b6b-ba20-72676a52e142/ctas_diet"...) called at /usr/share/perl5/YAML.pm line 42
YAML::Load("---\x{a}/AMaaS/tmp/25fb2c33-03e5-4b6b-ba20-72676a52e142/ctas_diet"...) called at /usr/share/perl5/Analizo/Extractor/Doxyparse.pm line 45
Analizo::Extractor::Doxyparse::feed(Analizo::Extractor::Doxyparse=HASH(0x563a31e10ab8), "---\x{a}/AMaaS/tmp/25fb2c33-03e5-4b6b-ba20-72676a52e142/ctas_diet"...) called at /usr/share/perl5/Analizo/Extractor/Doxyparse.pm line 179
eval {...} called at /usr/share/perl5/Analizo/Extractor/Doxyparse.pm line 174
Analizo::Extractor::Doxyparse::actually_process(Analizo::Extractor::Doxyparse=HASH(0x563a31e10ab8), "ctas_dietary/common/CDP.Common.Csv.Tests/AnotherSimpleObject.cs", "ctas_dietary/common/CDP.Common.Csv.Tests/CsvFormatterTests.cs", "ctas_dietary/common/CDP.Common.Csv.Tests/SimpleObject.cs", "ctas_dietary/common/CDP.Common.Csv.Tests/Properties/AssemblyI"..., "ctas_dietary/common/CDP.Common.Csv/Csv.cs", "ctas_dietary/common/CDP.Common.Csv/CsvCollectionFormatter.cs", "ctas_dietary/common/CDP.Common.Csv/CsvDataReaderFormatter.cs", ...) called at /usr/share/perl5/Analizo/Extractor.pm line 91
Analizo::Extractor::process(Analizo::Extractor::Doxyparse=HASH(0x563a31e10ab8), "ctas_dietary/") called at /usr/share/perl5/Analizo/Command/graph.pm line 51
Analizo::Command::graph::execute(Analizo::Command::graph=HASH(0x563a31e11070), Getopt::Long::Descriptive::Opts::OPT::2=HASH(0x563a31eb8570), ARRAY(0x563a2fe39af8)) called at /usr/share/perl5/App/Cmd.pm line 468
App::Cmd::execute_command(Analizo=HASH(0x563a31d78538), Analizo::Command::graph=HASH(0x563a31e11070), Getopt::Long::Descriptive::Opts::OPT::2=HASH(0x563a31eb8570), "ctas_dietary/") called at /usr/share/perl5/App/Cmd.pm line 321
App::Cmd::run("Analizo") called at /usr/bin/analizo line 6
YAML Warning: Duplicate map key 'SimpleDb::DbList' found. Ignoring.
Code: YAML_LOAD_WARN_DUPLICATE_KEY
Line: 9057
Document: 1
at /usr/share/perl5/YAML/Mo.pm line 24.
YAML::Mo::ANON(YAML::Loader=HASH(0x563a31ed97e0), "YAML_LOAD_WARN_DUPLICATE_KEY", "SimpleDb::DbList") called at /usr/share/perl5/YAML/Loader.pm line 357
YAML::Loader::_parse_mapping(YAML::Loader=HASH(0x563a31ed97e0), "") called at /usr/share/perl5/YAML/Loader.pm line 170
YAML::Loader::_parse_node(YAML::Loader=HASH(0x563a31ed97e0)) called at /usr/share/perl5/YAML/Loader.pm line 356
YAML::Loader::_parse_mapping(YAML::Loader=HASH(0x563a31ed97e0), "") called at /usr/share/perl5/YAML/Loader.pm line 170
YAML::Loader::_parse_node(YAML::Loader=HASH(0x563a31ed97e0)) called at /usr/share/perl5/YAML/Loader.pm line 101
YAML::Loader::_parse(YAML::Loader=HASH(0x563a31ed97e0)) called at /usr/share/perl5/YAML/Loader.pm line 25
YAML::Loader::load(YAML::Loader=HASH(0x563a31ed97e0), "---\x{a}/AMaaS/tmp/25fb2c33-03e5-4b6b-ba20-72676a52e142/ctas_diet"...) called at /usr/share/perl5/YAML.pm line 42
YAML::Load("---\x{a}/AMaaS/tmp/25fb2c33-03e5-4b6b-ba20-72676a52e142/ctas_diet"...) called at /usr/share/perl5/Analizo/Extractor/Doxyparse.pm line 45
Analizo::Extractor::Doxyparse::feed(Analizo::Extractor::Doxyparse=HASH(0x563a31e10ab8), "---\x{a}/AMaaS/tmp/25fb2c33-03e5-4b6b-ba20-72676a52e142/ctas_diet"...) called at /usr/share/perl5/Analizo/Extractor/Doxyparse.pm line 179
eval {...} called at /usr/share/perl5/Analizo/Extractor/Doxyparse.pm line 174
Analizo::Extractor::Doxyparse::actually_process(Analizo::Extractor::Doxyparse=HASH(0x563a31e10ab8), "ctas_dietary/common/CDP.Common.Csv.Tests/AnotherSimpleObject.cs", "ctas_dietary/common/CDP.Common.Csv.Tests/CsvFormatterTests.cs", "ctas_dietary/common/CDP.Common.Csv.Tests/SimpleObject.cs", "ctas_dietary/common/CDP.Common.Csv.Tests/Properties/AssemblyI"..., "ctas_dietary/common/CDP.Common.Csv/Csv.cs", "ctas_dietary/common/CDP.Common.Csv/CsvCollectionFormatter.cs", "ctas_dietary/common/CDP.Common.Csv/CsvDataReaderFormatter.cs", ...) called at /usr/share/perl5/Analizo/Extractor.pm line 91
Analizo::Extractor::process(Analizo::Extractor::Doxyparse=HASH(0x563a31e10ab8), "ctas_dietary/") called at /usr/share/perl5/Analizo/Command/graph.pm line 51
Analizo::Command::graph::execute(Analizo::Command::graph=HASH(0x563a31e11070), Getopt::Long::Descriptive::Opts::OPT::2=HASH(0x563a31eb8570), ARRAY(0x563a2fe39af8)) called at /usr/share/perl5/App/Cmd.pm line 468
App::Cmd::execute_command(Analizo=HASH(0x563a31d78538), Analizo::Command::graph=HASH(0x563a31e11070), Getopt::Long::Descriptive::Opts::OPT::2=HASH(0x563a31eb8570), "ctas_dietary/") called at /usr/share/perl5/App/Cmd.pm line 321
App::Cmd::run("Analizo") called at /usr/bin/analizo line 6

@joenio
Copy link
Member

joenio commented Jul 7, 2018

@gerardorosiles thanks for reporting this bug!

It is possible to tell what is the source code object you are analyzing? that way I can investigate this issue locally running analizo (and also doxyparse) to identify and fix the bug.

By the way, we already had this kind of bug on analizo (actually on doxyparse) in the recent past #99 #112.

@joenio joenio added this to the 1.23.0 milestone Jul 9, 2018
@gerardorosiles
Copy link
Author

Joenio,

Unfortunately I can't share the code as it is customer code. The application is a .NET folder with multiple web applications (i.e., multiple .sln files - they are similar to the pom files in java).

We tried putting together all applications under a single sln and got same warning messages.

@gerardorosiles
Copy link
Author

BTW if there is anything I could do on my side to provide more information without the code, I'll be happy to do it. I have no experience in Perl, so I would not even venture on trying to modify code myself.

@joenio
Copy link
Member

joenio commented Sep 26, 2018

I suppose it is a issue on Doxyparse side, can you try the latest Doxyparse 1.8.14-7 to check if error persist?

It's hard to me to investigate these bug without a environment where I can reproduce the bug, sorry.

Maybe you can try investigate the Doxyparse output by running some YAML lint to check the YAML syntax, sometimes doxyparse produce invalid YAML output. I frequently use the yamllint tool to debug this kind of error.

@joenio joenio removed this from the 1.23.0 milestone Oct 16, 2018
@gerardorosiles
Copy link
Author

Coming back to this after almost two years. I have time now to check the latest version, we got stuck with version 1.20.5. Thanks for keeping this going.

@joenio joenio added this to the 1.26.0 milestone Aug 14, 2023
@joenio joenio modified the milestones: 1.26.0, 1.27.0 Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants