jooby-cli: Can not set workspace on Mac OS X 10.14.6

31 views
Skip to first unread message

niko...@brightminds.org

unread,
Nov 8, 2020, 3:21:55 AM11/8/20
to jooby-project
Hello,

Not sure what I am doing wrong but I cannot seem to get jooby-cli 2.9.2 setup.

When I run:  ./jooby set -w ~/workspace

It simply fails (see below).  I have to think I am missing something trivial so asking here vs. opening a bug report on this.

--Nikolaos

java.io.FileNotFoundException: /Users/nikolaos/workspace
        at io.jooby.internal.cli.CommandContextImpl.setWorkspace(CommandContextImpl.java:82)
        at io.jooby.cli.SetCmd.run(SetCmd.java:28)
        at io.jooby.cli.Cmd.run(Cmd.java:20)
        at picocli.CommandLine.executeUserObject(CommandLine.java:1919)
        at picocli.CommandLine.access$1200(CommandLine.java:145)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2332)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2326)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2291)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2159)
        at picocli.CommandLine.execute(CommandLine.java:2058)
        at io.jooby.cli.Cli.main(Cli.java:107)

Edgar Espina

unread,
Nov 9, 2020, 12:18:28 PM11/9/20
to jooby-project
Yea, seems Java doesn't resolve the `~` automatically. Can you please file at github?

For now, don't use the `~` in the path, use relative or absolute path.

niko...@brightminds.org

unread,
Nov 10, 2020, 7:46:59 PM11/10/20
to jooby-project
Hi Edgar,

Thanks for the reply.  Unfortunately, it is not the ~ that is the issue as an absolute or relative path does not work.

I tried with "workspace" not existing or existing as an empty folder and still the same result.  Any ideas? 

./bin/jooby set -w /Users/nikolaos/workspace
java.io.FileNotFoundException: /Users/nikolaos/workspace
        at io.jooby.internal.cli.CommandContextImpl.setWorkspace(CommandContextImpl.java:82)
        at io.jooby.cli.SetCmd.run(SetCmd.java:28)
        at io.jooby.cli.Cmd.run(Cmd.java:20)
        at picocli.CommandLine.executeUserObject(CommandLine.java:1919)
        at picocli.CommandLine.access$1200(CommandLine.java:145)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2332)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2326)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2291)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2159)
        at picocli.CommandLine.execute(CommandLine.java:2058)
        at io.jooby.cli.Cli.main(Cli.java:107)

--Nikolaos
Reply all
Reply to author
Forward
0 new messages