Go Down

Topic: unable to open all my sketches contained in one folder. (Read 591 times) previous topic - next topic

jonisonvespaa

hi,

i have a number of sketches ive been using ok for ages ive now unable to open them for some reason, i have all my sketches in one folder which has worked fine for ages now for some reason im unable to open them, is there any way to open them?

thank you

olivthill

The message is saying that a sketch was found in a wrong place. It should have been located in a folder having that same name.

This happens sometimes, e.g. if you rename a file without renaming the folder (directory) where it is located, or if you move or copy a sketch from one folder to another.

The solution is to place that file (.ino) in the required folder. If the folder does not exist, you can create it manually and move the sketch inside.

tack

Have you upgraded IDE version?

As the prompt says, IDE 1.xx requires sketches to be within their own folder. It's telling you it will fix the issue for you if you just click OK.

So.....click OK and IDE will create the folder, move the file, and open it.

When you're choosing sketches from the file menu then you won't see any difference. If you browse using your OS File Manager the you'll find your sketches are now organised nicely.

retrolefty

#3
Jan 19, 2013, 02:31 am Last Edit: Jan 19, 2013, 02:33 am by retrolefty Reason: 1
Also in the IDE files menu there is a preference section that tells you where and what user's sketch folder name the IDE is looking to find any sketch folders that contain sketches of the same name as the folder name. So check your preference location to see if that is where you actually have your sketch folders located at and if not change the preference location.

My preference path when running arduino IDE 1.0.3 is shown as:

C:\Documents and Settings\Primary Windows User\My Documents\Arduino\Arduino1

I change this ( to C:\Documents and Settings\Primary Windows User\My Documents\Arduino ) when I want to run a older version of the IDE where I have sketches not yet check out for arduino 1.x compliance.

Lefty

Go Up