User forums > Embedded development

New arduino project SketchesDir does not exist

(1/1)

piscvau:
Hello
I just installed Codeblocks version 17.12 and Arduino extension  from here https://github.com/provideyourown/CodeBlocks-Arduino
Plus template from https://github.com/obfuscated/cb_arduino_template

When  creating a new arduino project I get the following error message :
SquirrelFunction<> call failed
AN ERROR HAS OCCURED [the index 'SketchesDir' does not exist].
I am on Xubuntu Bionic.
I suspect it comes from my tree structure but checked it several times and do not succeed in solving the problem.

my arduino preferences indicate that sketchbooks are in :
/home/odile/Documents/dev_logiciels/arduino/SoftKnit21_testing_with_arduino/ (see confirmation in attachment)

.codeblocks tree structure is as follows :
── arduino -> /home/odile/Documents/dev_logiciels/arduino/arduino-1.8.9
├── default.conf
├── helpers
│   ├── end_leonardo_bootmode.py
│   ├── start_leonardo_bootmode.py
│   └── test_avr_size.py
├── share
│   └── codeblocks
│       └── templates
│           └── wizard
│               └── arduino
│                   ├── files
│                   │   ├── cores
│                   │   │   ├── CDC.cpp
│                   │   │   ├── HardwareSerial0.cpp
│                   │   │   ├── HardwareSerial1.cpp
│                   │   │   ├── HardwareSerial2.cpp
│                   │   │   ├── HardwareSerial3.cpp
│                   │   │   ├── HardwareSerial.cpp
│                   │   │   ├── HID.cpp
│                   │   │   ├── IPAddress.cpp
│                   │   │   ├── main.cpp
│                   │   │   ├── new.cpp
│                   │   │   ├── Print.cpp
│                   │   │   ├── Stream.cpp
│                   │   │   ├── Tone.cpp
│                   │   │   ├── USBCore.cpp
│                   │   │   ├── WInterrupts.c
│                   │   │   ├── wiring_analog.c
│                   │   │   ├── wiring.c
│                   │   │   ├── wiring_digital.c
│                   │   │   ├── wiring_pulse_asm.S
│                   │   │   ├── wiring_pulse.c
│                   │   │   ├── wiring_shift.c
│                   │   │   ├── WMath.cpp
│                   │   │   └── WString.cpp
│                   │   ├── libraries
│                   │   │   └── libraries.cpp
│                   │   └── sketch.cpp
│                   ├── logo.png
│                   ├── README.md
│                   ├── wizard.png
│                   ├── wizard.script
│                   └── wizard.xrc
└── sketches -> /home/odile/Documents/dev_logiciels/arduino/SoftKnit21_testing_with_arduino

I would widely appreciate any help.
piscvau

oBFusCATed:
I'm not sure mixing templates like that is a good idea, also cb 17.12 ships with an old version of the template.
My template at cb_arduino_template works for sure with 1.6.x, I think I've not tested 1.8.x.

My template has no SketchesDir, so I cannot help much. Unfortunately Arduino have their own builder tool now and integrating it in C::B requires some work. There was one user doing experiments with this, but I'm not sure what happened there. Search for arduino-builder in the forum and you'll probably find the discussion.

p.s. posting screenshots in a language other than English lowers your chances of success.

Navigation

[0] Message Index

Go to full version