-
Notifications
You must be signed in to change notification settings - Fork 34
Syntax error flagged in 'arduino_backend.rb' #234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, thanks for letting me know! I think I have only my documentation to blame. The issue here is a combination of 2 things. The most pressing one is in the gem 'arduino_ci' This doesn't specify a specific version, so it's picking up the recently-released latest version -- a major release with breaking changes (it runs on ruby 2.6). My README.md should include a more protected example. Travis is using a python image, and from your output above it looks like that image includes ruby 2.5. It looks like the fix here is for me to just stick to 2.5 syntax for now, I can roll out a new release and I will update the docs. |
I recently set up a GitHub action to make Arduino CI easier to use: ...but it won't work for you yet, as I see that your Arduino library is in a subdirectory of your repo. Would you be up for experimenting with a branch of that if I add the ability to run the tests in a subdir of a repository? |
Sorry... the fastest way to fix the problem you have right now is to update the line in the gem 'arduino_ci', '~> 0.4' |
Thanks for the workaround. Regarding experimenting with the Arduino CI action, I don't have a huge amount of time I can put into it, but if there's something I can do to help out let me know. |
I think I have something on my local branch that will fix this, but I looked at your repository and it seems to contain an Arduino sketch but not an Arduino library. Converting a sketch to a library is fairly easy, the sketch just becomes one of the examples and (in addition to appearing in the Arduino menu tree) it will compile exactly as before. If you have access to an OSX or Linux machine, I have a no-install version of Arduino CI in beta that uses a Docker container for all the testing stuff. You'd be running something like this in your terminal (changing docker run --rm \
-v "/pathTo/RotorHazard:/library_under_test" \
--workdir /library_under_test \
--env USE_SUBDIR=src/node \
docker.pkg.github.com/arduino-ci/action/ubuntu |
Command fails with: |
Hmm, looks like this is a known & confusing issue on the GitHub side. Don't worry about it for now, I can revisit this if/when they make it easier to switch the Docker hosting to a more publicly accessible (i.e. authentication-free) system. |
OK -- let me know if at some point there something you'd like me test on our GitHub repo. |
I don't want to impose on your time. If you get curious and want to get around the docker credential thing, for now you'd have to create a personal access token on GitHub and store it in a file or environment variable. Then you'd run one of these as appropriate: # as an environment variable
echo $GITHUB_TOKEN | docker login --username ethomas997 --password-stdin
# as a file
cat github_token.txt | docker login --username ethomas997 --password-stdin I'm going to see about doing more this weekend. |
Seeing this error in GitHub CI:
Example build here:
https://travis-ci.com/github/RotorHazard/RotorHazard/jobs/453265718
The text was updated successfully, but these errors were encountered: