User forums > Embedded development
CB and Arduino 1.6.x
AZ:
--- Quote from: stahta01 on June 26, 2016, 09:23:13 pm ---
--- Code: ---Error: the index 'RegisterWizard' does not exist
--- End code ---
The above happens if you do NOT have the scriptedWizard plugin installed and enabled.
Edit: All your other issues; are NOT related to the CB Wizard change.
Tim S.
--- End quote ---
hmm.. doesn't look like this is the case. See attached.
Also, if i disable the plugin the CB starts wo issues. And once i enable it it (CB) immediately complains with the above mentioned message.
I should note that the READ.ME states:
Add the following two lines in the RegisterWizards function insde the file ~/.local/share/codeblocks/templates/wizard/config.script
but i did not have this file.
--- Code: ---[az@toshiba wizard]$ pwd
/home/az/.local/share/codeblocks/templates/wizard
[az@toshiba wizard]$ ls -l
total 4
lrwxrwxrwx 1 az az 41 Jun 26 13:06 arduino -> /home/az/work/Arduino/cb_arduino_template
-rw-rw-r-- 1 az az 174 Jun 26 22:52 config.script
[az@toshiba wizard]$ cat ./config.script
RegisterWizard(wizProject, _T("arduino"), _T("Arduino Project"), _T("Embedded Systems"));
RegisterWizard(wizTarget, _T("arduino"), _T("Arduino"),_T("Embedded Systems"));
--- End code ---
UPDATE 2:
if i to remove the config.script then CB will load wo issues and the "Arduino project" template will be colored red. once i select it in the attempt to create a new project i'll get "Arduino Project has failed to load XRC resource..." . See below attached.
After that the wizards starts normally.
Once i load the sketch.cpp the "invalid variable" dialog pops up. Doesn't matter what i clikc ( yes/no) the dialog gets created again and again. the way out is to specify the "base" path and click (as many times as needed) the "Yes" button until the dialog goes away.
AZ:
posting a screenshot
After that if i were to select a UNO it builds the project.
IT definitely does n;t work in "Simulation" mode.
AZ:
--- Quote from: oBFusCATed on June 26, 2016, 12:49:52 am ---https://github.com/obfuscated/cb_arduino_template now supports Arduino 1.6.9. Please test and report if there are any problems with the wizard.
--- End quote ---
Instead of adding 2 "RegisterWizard" lines to the local user's config file, i added (for testing purposes) to the global /usr/share/codeblocks/templates/wizard/config.script.
the New (arduino, arduino) line created a new build target "Arduino". Both "Arduino" and "Arduino Project" wizards are red now and have exact same behavior (same errors, same list of options to select).
The only difference is :
--- Code: ---Initializing plugins...
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 41)
ClassBrowser::UpdateClassBrowserView(): No active project available.
NativeParser::GetAllPathsByFilename(): Traversing '/home/az/Dropbox/work/Arduino/cb_arduino_template' for: wizard.*
NativeParser::GetAllPathsByFilename(): Found 0 files:
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
--- End code ---
when i select a new "Arduino" build target.
oBFusCATed:
What OS are you running?
Changing stuff in /usr is not a good idea if you're on linux.
AZ:
--- Quote from: oBFusCATed on June 27, 2016, 08:54:19 pm ---What OS are you running?
Changing stuff in /usr is not a good idea if you're on linux.
--- End quote ---
Fedora 22. I know, but i'm trying to see what i can do other then say "this doesn't work" that might help you to make thing more robust.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version