Skip to content
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

Use of ctags #1

Closed
mulderp opened this issue Apr 7, 2015 · 1 comment
Closed

Use of ctags #1

mulderp opened this issue Apr 7, 2015 · 1 comment

Comments

@mulderp
Copy link

mulderp commented Apr 7, 2015

Hi!

I saw your note in sudar/Arduino-Makefile#59 - and tried the preprocessor with Ruby.

For a quick check, I wanted to use the MacOS X default ctags, and run:

ruby preprocessor.rb blinkLED leornado-blink

However, the script fails here:

# Is project folder an Arduino project?
projectName = 'standarfirmata' # projectFolder.split("/").last

# if Dir["#{File.expand_path("#{projectFolder}#{projectName}#{arduinoExtensions}")}"].length() == 0 then
#   abort "Project folder doesn't look like an Arduino project folder"
# end

So, I commented it out. But the command did not yet work.

So, I just tried ctags with the argument list, but it gives:

ctags --language-force=c++ --c++-kinds=pf --fields=KSTtzn project/standard_firmata.ino
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ctags: illegal option -- -
@michaelbaisch
Copy link
Owner

There is a patched version of ctags in /bin/ which is used by the preprocessor.

The Arduino project should have, in your case, at least this structure: blinkLED/blinkLED.ino (partent folder with the same name as the main .ino file)
By commenting this part you skipped this test.
Is the project blinkLED in this regard a "valid" Arduino project?
What's not working after you commented it out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants