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

Not exexuting the executable #630

Closed
Top-g-hash opened this issue Jul 28, 2024 · 5 comments
Closed

Not exexuting the executable #630

Top-g-hash opened this issue Jul 28, 2024 · 5 comments

Comments

@Top-g-hash
Copy link


/ /\ | | | |)
/
/--\ || || _ v1.52.3, built with Go go1.22.4

watching cmd
watching cmd/class-examples
watching cmd/class-examples/blocks
watching cmd/tmp
!exclude css
!exclude images
!exclude tmp
watching views
building...
running...
/bin/sh: line 1: /home/atharva-pc/Documents/10: No such file or directory

im tires of searching more its been 5-6hours plz help
i chagpted and got htat the air is not able to find the executable
when i manually build and exec it works fine

@Top-g-hash
Copy link
Author

Solved
Air was not able to detect my directory bcz I had spaced name
My file was located in 10 projects with space in between
So changed it to 10-projects
/bin/sh: line 1: /home/atharva-pc/Documents/10:

@SahilDhingraa
Copy link

can you share the fix?

@Top-g-hash
Copy link
Author

Top-g-hash commented Oct 15, 2024

check ur path in which ur file is located if the path has any spacers in between as air stops reading at the space
FOR EXAMPLE:
~/Documents/my projects/goproject (notice the space )
this directory would be read till FOR as a space occurs it will stop reading and give error
EDIT:
FIX IS REMOVE THE SPACE
ADD -(hypen) or remove and join the words
for example:
~/Documents/my-project/goproject (notice the hypen instead of space)

@Top-g-hash Top-g-hash changed the title Not exexuting the exucutable Not exexuting the executable Oct 15, 2024
@SahilDhingraa
Copy link

I know that but is there any permanent solution to it so that path works with spaces also?

@Top-g-hash
Copy link
Author

Top-g-hash commented Oct 17, 2024

thats an interesting question i think this can be reported as a bug !!!

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

No branches or pull requests

2 participants