macalimlim / godot-rust-template

A template for godot-rust projects
MIT License
51 stars 22 forks source link

[[: not found #49

Closed jtara1 closed 2 years ago

jtara1 commented 2 years ago
$ cargo make run

error

   Compiling my_awesome_game v0.1.0 (/home/j/projects/my-awesome-game/rust)
    Finished dev [unoptimized + debuginfo] target(s) in 20.57s
/tmp/j/fsio/lc9vQMEIWe.sh: 4: [[: not found
[cargo-make][1] INFO - Running Task: run-godot
/tmp/j/fsio/Pgy2ih9fJa.sh: 4: godot: not found
[cargo-make][1] ERROR - Error while executing command, exit code: 127
[cargo-make][1] WARN - Build Failed.
[cargo-make] ERROR - Error while running duckscript: Source: Unknown Line: 4 - Error while executing command, exit code: 1
[cargo-make] WARN - Build Failed.

My shell, bash, and its version

j at desktop in ~/projects/my-awesome-game on master [?]
$ echo $SHELL
/bin/bash

j at desktop in ~/projects/my-awesome-game on master [?]
$ bash --version
GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
jtara1 commented 2 years ago

One solution is to replace all [[ with [ and ]] with ] in my Makefile.toml and I'm fine with this.

macalimlim commented 2 years ago

Hi @jtara1 what seems to be the issue here? Have you installed godot and it should be on $PATH?

jtara1 commented 2 years ago

this issue might be an issue of the cargo-make package, not this one

godot exec & $PATH is not related to this

jtara1 commented 2 years ago

I did have an error w/ godot: not found as seen in my error logs, but realized that's bc I needed to move my godot exec from one of my custom paths in $PATH I add in my .bash_profile to a common one. I moved it to /usr/local/bin

macalimlim commented 2 years ago

what OS are you using? can you give me more details about your setup?

jtara1 commented 2 years ago
j at desktop in ~/temp
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:    20.04
Codename:   focal

j at desktop in ~/temp
$ uname -a
Linux desktop 5.13.0-37-generic #42~20.04.1-Ubuntu SMP Tue Mar 15 15:44:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux