No complete output from Run script in Tool Window console
When I run a bash script via the "Run/Debug Configurations" dialog, the output from commands called in the script are not shown.
The script I run loops through folders after some argument handling. The `echo` statements are shown, but the output from `scp` is not. The script is executing properly.
I have similar problems with the output of `webpack` when called from a bash script this way.
When I run the exact same command in the Terminal Window or external CLI window, the output is properly shown, see screenshot below.
Any help would be appreciated.
Code of the script (fragment):
echo ${extensions}
# copy folders
for extension in ${extensions}
do
local_dir="${local_root}/packages/${extension}/app/bundle"
remote_dir="${remote_root}/packages/${extension}/app/bundle"
if [ -d ${local_dir} ]
then
echo "Bundles ${extension}"
scp -i ${cert_file} ${local_dir}/*.js ${site_user}@${server_ip}:${remote_dir}
fi
done
请先登录再写评论。
Hello,
What version of PhpStorm do you use?
Hi,
I use the latest version, just updated last week;
PhpStorm 2017.2.4
Build #PS-172.4155.41, built on September 15, 2017
JRE: 1.8.0_152-release-915-b11 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
Did you enable displaying of standard output stream messages and errors?
As said, I use the Run/Debug configurations to run the files. But I tested the same script as external tool, and it gave me the same result; output for echo statements, but not for `scp` or other external commands.
Matthijs, I am able to reproduce that with an external tool.
Just for information, what run configuration type did you use? Is it coming with a 3rd party plugin, or I am missing some built-in one that can be used to run a random command?
Anyways, please submit this as a bug: https://youtrack.jetbrains.com/newIssue?project=IDEA&clearDraft=true&c=Assignee+Vassiliy.Kudryashov&c=Subsystem+External+Tools
(I set the subsystem to External Tools as I think it's all have the same cause)
Thank you. I have submitted the issue here: https://youtrack.jetbrains.com/issue/IDEA-179999