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

Using relative path throws <duplicate executable found> error #1003

Open
andras-krajnik opened this issue Jun 29, 2017 · 4 comments
Open

Using relative path throws <duplicate executable found> error #1003

andras-krajnik opened this issue Jun 29, 2017 · 4 comments
Milestone

Comments

@andras-krajnik
Copy link

As mentioned in the title, relative path doesn't seem to work. Using full path everything is ok.

Steps to reproduce:

  1. Place the Tutorials folder inside cslang-cli folder so it will be on the same level as bin
  2. I used the sample code from the tutorial. So I had the following:
    2.1 Base -> print.sl
    2.2 Hiring -> check_availability, create_user_email, generate_user_email, new_hire
  3. Run command with full path:
    3.1 run --f C:/CL/1.0.7/cslang-cli/Tutorials/hiring/new_hire.sl --cp C:/CL/1.0.7/cslang-cli/Tutorials --i first_name=john,last_name=doe

Actual result after step 3 : finished with SUCCESS

  1. Run command with relative path:
    4.1 run --f ../Tutorials/hiring/new_hire.sl --cp ../Tutorials --i first_name=john,last_name=doe

Actual result after step 4 : you receive the below error message

Exception is : java.lang.RuntimeException: Duplicate executable found: 'tutorials.hiring.new_hire'

Note: tested with v1.0.6 & v1.0.7

@levice14 levice14 added this to the 1.1 milestone Jun 30, 2017
@Deklin
Copy link

Deklin commented Nov 29, 2017

Is there any workaround for this? I'm on a Mac and trying to run the print_text.sl and seeing this error.

_________ .__                   .____________.__
\_   ___ \|  |   ____  __ __  __| _/   _____/|  | _____    ____    ____
/    \  \/|  |  /  _ \|  |  \/ __ |\_____  \ |  | \__  \  /    \  / ___\
\     \___|  |_(  <_> )  |  / /_/ |/        \|  |__/ __ \|   |  \/ /_/  >
 \______  /____/\____/|____/\____ /_______  /|____(____  /___|  /\___  /
        \/                       \/       \/           \/     \//_____/
1.0.10
Welcome to CloudSlang. For assistance type help.
cslang>run --f ../content/io/cloudslang/base/print/print_text.sl --i text=Hi
Command failed java.lang.RuntimeException: Failed compilation for file : print_text.sl ,Exception is : java.lang.RuntimeException: Duplicate executable found: 'io.cloudslang.base.print.print_text'

@Deklin
Copy link

Deklin commented Nov 29, 2017

@chronical ?

@tethryus
Copy link
Contributor

@Deklin Hi, you could try making it work with supplying --cp ../content/io/cloudslang when running the command.

@lautou
Copy link

lautou commented Dec 5, 2017

@Deklin As workaround try to use absolute path instead of relative:
image
@tethryus Supplying --cp argument with folder path doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants