I was wondering if there is a way to suppress the Arduino IDE splash screen running every time I build or upload. I saw you mentioned it here #6 (comment)
I found this arduino/Arduino#1970 which appears it's not necessarily a result of vim-arduino but the ide tooling itself.
I noticed a couple of things
-
When running the commands from this plugin, it starts the JVM etc with this option
JVMOptions=..."-splash:$APP_ROOT/Contents/Java/lib/splash.png"...)
I wonder if that can be changed?
- The previous URL I posted refers to https://arduino.github.io/arduino-cli/latest/installation/ a new arduino cli. I have installed it using homebrew and it installs
arduino-cli
to my path.
I dug through the vim-arduino code and spotted g:arduino_executable
which I figured I could just change to arduino-cli
but this doesn't work. Commands subsequently result in
executing job failed: No such file or directory
and on vim start up i get
Error detected while processing BufRead Autocommands for ".ino"..FileType Autocommands for ""..function 15_LoadFTPlugin[17]..scri
pt /Users/ben/.dotfiles/.vim/plugged/vim-arduino/ftplugin/arduino.vim[7]..function arduino#InitializeConfig[49]..arduino#ReloadBoards:
line 33:
Could not find any boards.txt or programmers.txt files. Please set g:arduino_dir and/or g:arduino_home_dir (see help for details)
If I run ArduinoInfo however, I get
... Verify command: arduno-cli --verify --board ...
Which obviously is using the correct binary.
Having dug into the error above with why I might need to be setting the arduino_dir
too, the cli doesn't have boards.txt etc as far as i can tell so I needed to still point the path back to
let g:arduino_dir = '/Applications/Arduino.app/Contents/Java/'
(Working out I needed Java/ on the end took more digging.)
I appear to have cleared up the above errors now... but none of the vim-arduino commands exist... Obviously this is more likely my vim but I've reinstalled vim-arduino and removed everything relating to it from my .vimrc and simply can't get any of the commands registering.
Edit:
Having gone back to vim after a short period the commands are available. Obviously something odd going on. Anyway, now that the commands are back, if i try and run :ArduinoVerify for example, I get
executing job failed: No such file or directory
TLDR:
- arduino-cli exists and 🤞 stops the splash screen issue. can we get it to work?
- if we can get it to work, is there a simpler way of doing so than i have done?
- why might using the cli have broken my vim-arduino plugin? are there any caches i should clear or anything?