klayout icon indicating copy to clipboard operation
klayout copied to clipboard

Session not restored on 0.26.7

Open olcc opened this issue 5 years ago • 4 comments

Hello, I have a LYS file that can be resorted properly on KLayout 0.25.6 (Linux) and 0.25.9 (Windows), but not on 0.26.2 (Linux) and 0.26.7 (Windows). That session file contains relative paths like <file-path>Découpe/dicing.gds</file-path> and <file-path>panel.oas</file-path>. Olivier

olcc avatar Aug 17 '20 12:08 olcc

Hi Olivier,

There was a change in the way relative paths inside sessions files are read: https://github.com/KLayout/klayout/issues/353

But this was version 0.26.1. Today all relative file paths should be resolved relative to the location of the session file.

What is your observation?

Matthias

klayoutmatthias avatar Aug 17 '20 17:08 klayoutmatthias

I updated my report: in the initial report, I was saying that the LYS file in question could be read with 0.26.2 (Linux), but in fact it couldn't. Do you mean that LYS files cannot be shared between Klayout versions ≤ 0.25.9 and version ≥ 0.26.1 ?

olcc avatar Aug 17 '20 18:08 olcc

In my case, the file paths mentioned above are relative to the location of the LYS file.

olcc avatar Aug 18 '20 13:08 olcc

LYS files with relative paths cannot be shared because relative paths are treated differently. But LYS files written by KLayout should only have absolute paths.

Is this answering your question?

Matthias

klayoutmatthias avatar Sep 13 '20 21:09 klayoutmatthias