Hello,
On OSX, in the previous versions of KLayout, e.g., 0.23.2, one could drag one or more GDS files from the Finder into the KLayout window. KLayout would then open them.
In the new version, 0.24.2, this no longer works. Instead, I get an error message, such as
Unable to open file: /.file/id=6571367.28392452 (errno=20)
Unable to open file: /.file/id=6571367.28350353 (errno=20)
Comments
Hello,
I could reproduce the problem.
I've also confirmed that "klayout.0.23.2.pkg" can accept drag & drop on Yosemite as you pointed out.
If fact, I have not noticed this issue at all since I seldom use Finder as a filer.
For other filers (I mainly use) listed below, drag & drop works as expected.
No need to say, Finder is the official filer for Mac.
I think I need to study the event handling mechanism between Finder and Mac Qt4.
Kazzz
Hello,
A little progress of tonight :-)
I have inserted some debug statements in "src/layMainWindow.cc" and tested how
works.
It is obvious that except for Mac Finder, the full path to a dropped file is normally retrieved.
I'll study how to handle Mac Finder's case.
Kazzz
Hello,
Basically this is a bug of Qt-4.8.x (the Mac binary packages use 4.8.7 from Mac Ports)
and has been fixed in Qt-5.4.1.
More precisely, such a URL (file:///.file/id=......) is called "File Reference URL" in OSX and iOS terminology.
This has to be converted back to its ordinary full path. This step fails.
Since KLayout uses "Qt Version 4.5.x or later (4.5.2, 4.6.3, 4.7.4 and 4.8.2)"
we need to find out a workaround for this issue.
The URL below gives a good suggestion, which I've taken into "layMainWindow.cc".
A new binary package "klayout-0.24.3-MacOSX-Yosemite-2-Qt487mp.dmg.bz2"
(to be uploaded by Matthias shortly) has resolved this issue including "DRC crashing" issue started by lukasc.
Thanks to lukasc for posting these two OSX-related issues.
Regards,
Kazzz
Thanks Kazzz!
Here's another minor "bug".
The Key Bindings don't seem to work for the toolbar objects. For example, edit_mode.mode_menu.instance, Instance – setting this to "i", and pressing "i" doesn't do anything. Same for "m" for move.
I recall noticing this issue several years ago.
Escape works – returning you to the "Select" mode.
While discussing the Key Bindings, it would be nice if the dialog showed command instead of ctrl (or perhaps a conversion table under the on-screen instructions).
thank you.
Hi lukasc,
Using the forth coming new binary package "klayout-0.24.3-MacOSX-Yosemite-2-Qt487mp.dmg.bz2"
I've tested the key binding issue you mentioned above.
To support my explanation, I've uploaded an image file and a movie file to Dropbox.
As you can see, everything is fine.
I think the issue has already been fixed.
Please try the new one!
Regards,
Kazzz
Thank you.
The latest version on klayout.de is 0.24.2, and your Dropbox link is 5 days old:
https://www.dropbox.com/s/73v7uelklbcjvr8/klayout-0.24.3-MacOSX-Yosemite-1-Qt487mp.dmg.bz2?dl=0
I downloaded this, and confirm that the DRC is fixed!
However, I am still having the key binding problem.
Do you have a new one you could share?
thanks
Hi,
Here it is.
Kazzz
Got it, but still experiencing the key binding problem.
My key bindings:
https://www.dropbox.com/s/vebf3k0vxvzoods/Screenshot 2015-11-13 03.38.01.png?dl=0
Same problem. When I push "x" or Shift "x", nothing happens. Same for "I", "L", etc.
Hi,
Where do you have your "klayoutrc" file?
In my case, it is ${HOME}/.klayout/klayoutrc
I've saved (renamed) the existing one and started KLayout-0.24.3 afresh then
set up the 9 key bindings below from scratch. By default they are not set.
The newly created "klayoutrc" file is here:
Backup your "klayoutrc" file and save above in the name of "klayoutrc"
then try to see what happens.
Regards,
Kazzz
Hi Kazzz,
You're right, it works. I guess I'll start from scratch and re-enter my preferences...