Closed ivan-avalos closed 5 years ago
Hi Ivan,
When you have your file open, do you see Projectile[*ProjectRootFolderName*]
in the mode-line?
It's possible you may just need a quick git init
in the project root to have Projectile pick it up.
I did the git init
but now I have a different problem. Whenever I try to perform a build or something, it fails with the following message:
-*- mode: platformio-compilation; default-directory: "~/Desktop/mongoose-demo/demo-empty/" -*-
PIOCompilation started at Mon Mar 4 19:41:22
platformio -f -c emacs run
/bin/bash: platformio: command not found
PIOCompilation exited abnormally with code 127 at Mon Mar 4 19:41:22
That happens despite I actually have platformio
installed. I don't know why Emacs can't find it.
Thanks.
Are you using pyenv by chance?
How do I check that? I don't think I have it enabled.
It's a version manager for Python. Chances are you don't have it then.
Which OS are you on? Most likely a path issue then.
I'm using the Cocoa version of Emacs on macOS. Do you think that's the problem?
I'm also on a Mac, with a Homebrew installed Emacs.
I'll link you the relevant section in my config I used to fix the issue.
So long as you can open the default terminal and run which platformio
and get an output, you should be all set once you get your full PATH
imported into Emacs.
I'm also on a Mac, with a Homebrew installed Emacs.
I'll link you the relevant section in my config I used to fix the issue.
So long as you can open the default terminal and run
which platformio
and get an output, you should be all set once you get your fullPATH
imported into Emacs.
That's exactly what I did right now, it worked! Now there's another error, but that's related with PlatformIO rather than with platformio-mode
.
Error: Please setup environments in `platformio.ini` file
Thanks!
No problem! Sounds like you're on track now.👍
I have the mode enabled, but when I try to run the command inside the platfomio.ini buffer, the following error appears (I have the debug mode enabled):