GithubHelp home page GithubHelp logo

arduino-cli's People

Contributors

avshalomt avatar jacobrosenthal avatar lfdebrux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

arduino-cli's Issues

Flags don't use "--"

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!

implement file_regex to pull errors and line numbers

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

  1. Bootstrap.ino
  2. 17
  3. 22
  4. fatal error: versi on.h: No such file or directory\ncompilation terminated.\nError compiling.\n'
    wanted group one to have a path added to it, again I cant alter code only regex

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?

[Enhancement] Setting preference "build.path"

"build.path" options

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.

[enhancement] Serial Monitor

hi! :)

It would be nice to have a serial monitor (embedded or not) for this plugin or maybe append the output on console.

Deprecate in favor of PlatformIO?

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.

java.lang.NullPointerException

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.