Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xsect folder "XSection: Active Technology" not working in Windows (works on OSX) #34

Open
lukasc-ubc opened this issue May 27, 2024 · 4 comments

Comments

@lukasc-ubc
Copy link

Hi @klayoutmatthias

We've used xsection for several years, but it seems like a recent version of KLayout has broken our older xsection scripts.

I updated it the latest salt package, and also I put the .xs file in the technology sub-folder "xsect", hoping the XSection: Active Technology menu item will work:

image

On Windows, it does not find the .xs file.
image

Maybe it is something to do with the / and \ in the path?

But, running the script manually, and finding the file,
image

generates a cross section.
image

Now the same configuration on Mac OSX, v0.29.1 -- it works correctly. Presumably also works on Linux.

thank you
Lukas

@klayoutmatthias
Copy link
Owner

Sigh ... thanks for reporting this problem.

The reason is in Ruby's Dir.glob: https://ruby-doc.org/core-2.5.1/Dir.html#method-c-glob

image

:(

I will update the code and replace all backslash by "/".

Sorry for the inconvenience.

Matthias

klayoutmatthias pushed a commit that referenced this issue May 28, 2024
@klayoutmatthias
Copy link
Owner

I have released version 1.9 which should fix this problem.

I tried with the "sky130_el" package which uses technology-specific XS scripts.

Matthias

@Grandement
Copy link

Grandement commented May 28, 2024

Thanks for fixing it. It is related to the issue #23

@klayoutmatthias
Copy link
Owner

I think we can close this topic then, right?

Thanks,

Matthias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants