Bug #18813 2012-11-30 15:30

zuljin

Build logs are incorrect if build was run using SSH client

In my work I have to use remote compilation.

I connect to build server using SSH client and call make to build everything.

In codeblocks I setup custom make commands that instead calling local make calls ssh client.

This works pretty well with exception to one details.

Output from ssh client (plink or cygwin ssh) is sometimes displayed in Build log window with additional new line character.

So for example codeblocks instead of displaying one line:

"foo/bar.cpp", line 62: warning: declaration does not declare anything"

adds additional new line character and break it to 2 lines:

"foo/bar.cpp", line 62: war

ning: declaration does not declare anything"

This kind of behavior leads to not displaying warnings and errors in Build messages window, because regex rules that parse output doesn't work for multiline.

I assume this situation is caused by some differences in how stdout/stdin buffers works for ssh clients. Probably ssh clients can flush buffer in the middle of line and codeblocks doesn't expect this and think that every flush is always at the end of line.

Category
Application::Interface
Group
Platform:All
Status
Open
Close date
 
Assigned to
 
alatar_ 2012-12-07 19:31

+1

Same issue when I use Altera QuartusII to build Verilog project (I`m add call quartus compiler to prebuild steps and wrote custom parser rules for it).

alatar_ 2012-12-08 13:30

+1

Same issue when I use Altera QuartusII to build Verilog project (I`m add call quartus compiler to prebuild steps and wrote custom parser rules for it).