Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Files content in Browserwindows shows Empty Lines #3672

Laba42 ·
  • replies 6
  • views 2041
  • stars 0
robinshen ADMIN ·
Please let me know the following:
1. QB version and QB server OS platform
2. Your SCM system
3. Your browser
Laba42 ·
Oh sorry,

QB Version: 6.1.15, 2016-05-11,
SCM Perforce Client: 2013.4
Browser: Chrome 54.0.x / IE 11/ Firefox 50.0.2 / Safari 5.1.7

Actually it is not so bad.
But now we want to use checkstyle and findbugs and there the line number no longer fit to the errors
robinshen ADMIN ·
Please edit "<QB server>/conf/log4j.properties" to add below line:
log4j.logger.com.pmease.quickbuild.execution=DEBUG

Then wait 1 minute for QB to pick up this file, and view the source again. The detailed command called by QB to retrieve the file content should be printed in server log. Please run that command (p4 print) from command line to see if content of the file contains extra white lines.
Laba42 ·
When i write the output to the console it looks ok,
p4 -C winansi print -q  //Tools/xyz/HelloWorld.java@108041 


but when rediret to a temp file (the original qb command from logfile) the file contains after every line one empty line
p4 -C winansi print -q -o D:\Apps\QuickBuild\temp\p4sourceview4722292505272838395.tmp //Tools/xyz/HelloWorld.java@108041 


Georg
robinshen ADMIN ·
What is encoding of your file, and what is the line ending? And on which platform you are running this command?
Laba42 ·
After your hints, we found the error.

The error was that the P4 CLIENT from the environment variables no longer existed in Perfoce.
We had cleared somehow once;) And no longer needed workspaces deleted

For the p4 checkout, it is not important because the workspace is always created by qb,
but the P4 print command needs the P4ClENT that was set in the environment variables.

Thank you

Georg