Skip to content

Can't find commands when running custom command in Terminal #42

Open

Description

@cassidyjames

I'm trying to use the custom command to serve a jekyll site; however, it seems like I can't use any apps or commands from that context; maybe I'm misunderstanding how this should be used?

But for example, if I use a custom command of cd ~/Projects/elementary/blog; bundle exec jekyll serve I get a bunch of issues:

  • First of all, I get Failed to execute child process “cd” (No such file or directory) which is unexpected.

  • If I try to just run bundle exec jekyll serve on its own (while testing things), I similarly get Failed to execute child process “bundle” (No such file or directory).

  • If I point to the exact path of bundle, e.g. /home/cassidyjames/.gems/bin/bundle exec jekyll serve, I get an exception that the gem can't be found (which is not the case when running the exact same command from Terminal).

Am I using this custom command wrong? How would you recommend someone do something like serve a jekyll site with Workspaces?

Using Workspaces 3.1.0 from AppCenter.

Activity

  1. DevAlien commented on Sep 23, 2020

    @DevAlien
    Owner

    The custom command was thought for something simple app + flags etc like screenshot -c -x or whatever.
    But you are already thew second person asking for a more complex thing.

    For what you want to do we baiscally need to set a directory where to launch a command. (we could do this workspace wise?)

    Then there should be a way to load your .bashrc file I guess for aliases and everything.

    What I suggest you for the moment is create an alias on your bashrc file to execute that command.
    Then in your custom command you can type something like this: bash -i -c 'my-alias'

  2. it-s commented on Sep 27, 2020

    @it-s

    The custom command was thought for something simple app + flags etc like screenshot -c -x or whatever.

    Hi @DevAlien ,
    Issue is that simple commands are not working either.
    cd /home is not a complex command, and yet it fails with Failed to execute child process “cd” (No such file or directory)
    Am I missing something?

    Thanks

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions