You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The path of CloneWorks on my computer is /home/USER_NAME/opt/CloneWorks.
OS: Ubuntu 18.04
With the default config where INSTALL_DIR=., the example test works ok.
Problematic config
Then I set INSTALL_DIR=/home/USER_NAME/opt/CloneWorks, and add export PATH="/home/USER_NAME/opt/CloneWorks/cwbuild:$PATH" to ~/.zshrc.
Failure
I tried cwbuild -i sources -f sources/files -b sources/blocks -l java -g function -c type3line > cwbuild.log in another directory, but I got the following errors (Exception: Broken pipe and Exception: Stream closed ):
CloneWorks Version 1.0
Input Builder
System=/home/USER_NAME/MyDir/sources
FileIDs=/home/USER_NAME/MyDir/sources/files
Blocks=/home/USER_NAME/MyDir/sources/blocks
Configuration=type3line
Languages=java,
Granularity=function
TokenType=line
Parsing....
Failed for file: InputFile [id=40, path=sources/ProjectA/projectA.callgraph/target/test-classes/callgraph/NonVirtualCall/source/NVC1.java]. Exception: Broken pipe
Failed for file: InputFile [id=80, path=sources/ProjectA/projectA.callgraph/src/test/resources/callgraph/NonVirtualCall/source/NVC2.java].
Failed for file: InputFile [id=0, path=sources/ProjectA/projectA.examples/target/test-classes/ClassHierarchy/source/D.java]. Exception: Broken pipe
Failed for file: InputFile [id=220, path=sources/ProjectA/projectA.tests/src/test/resources/methoddispatchresolver/AbstractDispatch/B.java]. Exception: Stream closed
...
Additional Info for debug
I log INSTALL_DIR and LIBS in cwbuild.
With the default setting, their values are:
INSTALL_DIR is .
LIBS is ./bin/:./libs/commons-lang3-3.4/commons-lang3-3.4.jar:./libs/commons-exec-1.3/commons-exec-1.3.jar:./libs/commons-cli-1.3.1/commons-cli-1.3.1.jar:./libs/commons-io-2.4/commons-io-2.4.jar
"./cfprocessors/txl_normalization" "r" "." "java" "function" extract
After modification, they are:
INSTALL_DIR is /home/USER_NAME/opt/CloneWorks
LIBS is /home/USER_NAME/opt/CloneWorks/bin/:/home/USER_NAME/opt/CloneWorks/libs/commons-lang3-3.4/commons-lang3-3.4.jar:/home/USER_NAME/opt/CloneWorks/libs/commons-exec-1.3/commons-exec-1.3.jar:/home/USER_NAME/opt/CloneWorks/libs/commons-cli-1.3.1/commons-cli-1.3.1.jar:/home/USER_NAME/opt/CloneWorks/libs/commons-io-2.4/commons-io-2.4.jar
"/home/USER_NAME/opt/CloneWorks/cfprocessors/txl_normalization" "r" "/home/USER_NAME/opt/CloneWorks" "java" "function" extract
The text was updated successfully, but these errors were encountered:
The path of CloneWorks on my computer is
/home/USER_NAME/opt/CloneWorks
.OS: Ubuntu 18.04
With the default config where
INSTALL_DIR=.
, the example test works ok.Problematic config
Then I set
INSTALL_DIR=/home/USER_NAME/opt/CloneWorks
, and addexport PATH="/home/USER_NAME/opt/CloneWorks/cwbuild:$PATH"
to~/.zshrc
.Failure
I tried
cwbuild -i sources -f sources/files -b sources/blocks -l java -g function -c type3line > cwbuild.log
in another directory, but I got the following errors (Exception: Broken pipe
andException: Stream closed
):Additional Info for debug
I log
INSTALL_DIR
andLIBS
incwbuild
.With the default setting, their values are:
After modification, they are:
The text was updated successfully, but these errors were encountered: