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

Duplicate name warning while storing a result. #2510

Closed
Xazax-hun opened this issue Jan 8, 2020 · 2 comments · Fixed by #3159
Closed

Duplicate name warning while storing a result. #2510

Xazax-hun opened this issue Jan 8, 2020 · 2 comments · Fixed by #3159
Labels
CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands

Comments

@Xazax-hun
Copy link
Contributor

Describe the bug
Warning message when storing a run:

.../codechecker/build/CodeChecker/cc_bin/../lib/python2.7/codechecker_client/cmd/store.py:344: UserWarning: Duplicate name: '.../Fuchsia/fuchsia/third_party/glslang/glslang/Include/Common.h'
  zipf.write(f, os.path.join('root', f.lstrip('/')))

I see this warning multiple times, all of the warnings correspond to headers.

CodeChecker version

CodeChecker analyzer version:
---------------------------------------------------------------
Kind                 | Version                                 
---------------------------------------------------------------
Base package version | 6.12.0                                  
Package build date   | 2020-01-08T09:11                        
Git commit ID (hash) | 19c4caa6be4e103fe137f9bb45992cfb32b8260a
Git tag information  | 6.12                                    
---------------------------------------------------------------

CodeChecker web version:
------------------------------------------------------------------------
Kind                          | Version                                 
------------------------------------------------------------------------
Base package version          | 6.12.0                                  
Package build date            | 2020-01-08T09:11                        
Git commit ID (hash)          | 19c4caa6be4e103fe137f9bb45992cfb32b8260a
Git tag information           | 6.12                                    
Server supported API (Thrift) | 6.24                                    
Client API (Thrift)           | 6.24                                    
------------------------------------------------------------------------

(Btw, if one forgets to source the env, CodeChecker version will just not output anything and will not give any warnings/errors.)

To Reproduce
Fuchsia is enormous, so you probably do not want to try to reproduce it on that.

Expected behaviour
No warnings seen.

Desktop (please complete the following information)

  • OS: Debian
  • Browser: Chrome
@magnuspjonasson
Copy link

I came across the same
"UserWarning: Duplicate name:"
message when doing
os.path.join(path_in_zip, existing_file))

Did you find an explanation?

@csordasmarton
Copy link
Contributor

@magnuspjonasson How your store command looks like?

Could you please run this command in verbose mode (--verbose debug) and give us a full error log (only the context where this error log happens is enough)?

@csordasmarton csordasmarton added the CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands label Jan 21, 2021
@csordasmarton csordasmarton added this to the release 6.16.0 milestone Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants