jacobrosenthal / arduino-cli Goto Github PK
View Code? Open in Web Editor NEWArduino Build System for Sublime Text 3
Arduino Build System for Sublime Text 3
Downloaded this today and I'm very excited about it. Using arduino-cli version 0.32.2
Seems there's a change in how flags are written at the command line and the "--" is not used. During build I get the error "Unknown flag: --board"
if I manually run the arduino-cli.exe it gives the same error but if I omit the "--" it works fine. i.e "arduino-cli.exe boar arduino:avr:mega"
Not sure if this is just a windows thing or if an update changed that but looking at the documentation for arduino cli the examples do not have the "--" either.
I can create a pull request if you want as this is not a big change. Maybe someone can confirm this behavior on other systems as well? I don't have Mac but can get linux to test as well.
Thanks!
file_regex only allows you to give a regex to capture filename, line number, column number, and error message for display and navigation after compile.
I broke the version.h include for the following error
b'Bootstrap.ino:17:22: fatal error: versi on.h: No such file or directory\ncompilation terminated.\nError compiling.\n'
Then with this regex
b'(\w*.\w*):(\d*):(\d*):(.*)
Can get 4 groups
The biggest problem is arduino strips the full file path. Maybe we could add it back in but Im not sure how to add static text to my regex?
Hi
I've made changes to arduino-cli.py so that I could set in my preferences the build path that I want for a project.
It's useful if I want to share the binary, and I thought that maybe others could want this feature as well
I've followed how the otption sketchbook.path was formatted since it's a preference
Here's the code
build_path = get_setting('build.path')
if build_path:
args += ["--pref", "build.path={}".format(build_path)]
However, as explained per the Arduino man page, the folder must be already created
Also, it will put everything (preprocessed .cpp files, compiled .o, etc...)
However, in case of rebuild, it is much faster.
hi! :)
It would be nice to have a serial monitor (embedded or not) for this plugin or maybe append the output on console.
I noticed that this package has its settings located somewhere which is not standard for Sublime Text plugins.
This could be confusing for users which didn't see the Package Control messages.
Can programmatically pop console. Where/when to run from
https://forum.sublimetext.com/t/api-method-to-show-the-console/4148
Do you know PlatformIO? I have been using it with great pleasure with sublime text.
Even their compiler works better (the compiler used by Arduino IDE has some bugs).
Does this package do something more/better than PlatformIO? If not, it would probably be a good idea to deprecate it in favor of PlatformIo, to avoid software fragmentation.
Getting unknown include #special_block
on console. Probably coming from https://github.com/jacobrosenthal/arduino-cli/blob/master/arduino.tmLanguage#L43
Looks like something changed with arduino binaries somewhere before 1.6.12
If it cant find the serial port you set on the command line, even if you're just verifying and not uploading, it java.lang.NullPointerException
java.lang.NullPointerException
at processing.app.BaseNoGui.selectSerialPort(BaseNoGui.java:1088)
at processing.app.helpers.CommandlineParser.parseArgumentsPhase1(CommandlineParser.java:143)
at processing.app.Base.<init>(Base.java:273)
at processing.app.Base.guardedMain(Base.java:219)
at processing.app.Base.main(Base.java:132)
[Finished in 4.0s with exit code 255]
[cmd: ['/Applications/Arduino.app/Contents/MacOS/Arduino', '--board', 'arduino:avr:uno', '--port', '/dev/tty.usbmodem1411', '--verify', '/Users/jacobrosenthal/Desktop/NullStreamExample/NullStreamExample.ino']]
[dir: /Users/jacobrosenthal/Desktop/NullStreamExample]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
To fix remove or fix the serialport in your user settings. Also I think well patch so that port isnt set for 'just build'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.