jplaut / vim-arduino-ino

MIT License
94 stars 21 forks source link

no project found? #2

Open joshuacox opened 10 years ago

joshuacox commented 10 years ago
cd /tmp
mkdir beep
cd beep
ino init -t blink
vim src/sketch.ino

Then <Leader> ac produces this output:

"sketch.ino" 15L, 182C written
Compiling... /tmp/beep/src/sketch.ino
No project found in this directory.
Failed.

I tried cd src and vimming it and <Leader> ac to the same effect. Am I missing something? Was there perhaps supposed to be a Makefile somewhere that gets generated in the ino init command?

$  ls -Rlh /tmp/beep
.:
total 0
drwxr-xr-x 2 bob bob 60 Sep 19 09:12 lib
drwxr-xr-x 2 bob bob 60 Sep 19 09:12 src

./lib:
total 0

./src:
total 4.0K
-rw-r--r-- 1 bob bob 182 Sep 19 09:19 sketch.ino
delianides commented 10 years ago

+1

jplaut commented 10 years ago

In order for ino to find the project, you'll have to cd into the base project directory (/tmp/beep) instead of into the src directory itself.

juicechu commented 7 years ago

+1

jplaut commented 7 years ago

Per the Ino quickstart guide, you have to be in the top level of the tree (where the src and lib directories are located. I've confirmed that the build command works from there.