Schematic error


Hello Kicad team,

older version : kicad-5.1.9_1-x86_64
New version : kicad-6.0.0-x86_64

I copied the schematic from older version & pasted on new version, earlier it was opening now it showing this error .

Please guide.

I am not sure that I will be the one to give you the answers…but can you zip your project folder and post it?

I guess if you cannot edit it, then you cannot “clean” it (to delete any confidential or proprietary information based on your preference)?

ONE POSSIBILITY: Try shortening the total length of the path+filename. I have had trouble when that total length got too long (too many characters.)

If I read you post correctly, you’re pasting with both versions open, I suspect you should copy the file and open that with v6, as the version migration probably happens on file read (into memory)/save (to file).
Just a guess though.

Copy & Paste between two different KiCad versions ???

The file format and extension for schematics has changed. In Kicad V5 it was [Projec].sch and in KiCad V6 it’s [Project].kicad_sch.

Try this:

  1. Close KiCad, all versions.
  2. Copy the KiCad V5 project to a new directory (So you have a backup)
  3. Open the project in KiCad V6.
  4. Also open the schematic and the PCB in Kicad V6.
  5. Save all the files from KiCad V6.

Those simple steps should be all you need to convert an old KiCad V5 project to KiCad V6.
KiCad does not delete the old KiCad V5 files. After KiCad has converted a project to V6 you can manually delete the old files (Be careful to not delete too much).

2 Likes

This does not count for *.kicad_pcb file! v5 and v6 has the same file extension, so once, by a mistake, v5 kicad_pcb file is opened with v6 pcb editor and clicked save, v5 file will be rewriten in v6 file format, not backwards compatible with v5. You are stick with v6+ from right from save button click (by accident).

2 Likes

I try to reduce the size same error is popping.

I am working only on KiCad (64-bit) Version: (6.0.1), files where created in older version older version : kicad-5.1.9_1-x86_64

“Not working same error”

If you post your file I can run it through a parser locally and potentially identify the issues. Probably something corrupted in the s-expression.

You can have a go too: S-expressions - Rosetta Code find a parser for a lang you know and off you go :slight_smile:

@Rohit_Gurav , can you share your project to be tested? Or can you open sch file with text editor and paste some lines here (non confidential, beginning of the file at least)? I am interested what the problem could be here…

1 Like

I recall a bug in which some KiCad (nightly?) version wrote a wrong “version number” into a KiCad file, and other KiCad versions refuse to read that file with that futuristic version number.

“Version numbers” in KiCad generated files are usually dates on which a change in the file format was released. Maybe you can change that version / date line in the KiCad file and read it then.
It’s on one of the first lines of the schematic. I recommend it to replace the line with a valid line from a “nearby” date. (On a copy of course).

@Rohit_Gurav , are your files on google drive, or other virtual filesystem (not on local disk)? There is another similar(same?) problem: V 6 file truncation - #12 by flypie

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.