<@U017UPJEGKZ>: If you moved things around, then ...
# magic
t
@User: If you moved things around, then you might need to use
load ... -dereference
to get the paths right again. Magic saves the path to a cell when it writes out instances, so it knows where to find it again when reading back the same file. If you move one of those files, then the path that is in the .mag file is wrong, and you'll get a warning. In the above case, maybe it would be better to do
addpath ../comparator
after which you can do just
getcell comparator
. However, none of that should be causing a crash condition. Can you isolate a reproducible case?
w
simply trying to load the design twice using the path where I go up a directory crashes magic
the second time I guess magic knows where the cell is so I can just use the cell name and magic does not crash
but
Copy code
getcell ./../comparator/comparator.mag
getcell ./../comparator/comparator.mag
crashes magic.
t
Okay, that is clearly repeatable. I'm on it. . .
Hmm, got a cellname mismatch by failing to remove the file extension. That should be easy to fix. Then something else causes the crash after it tried to change the cell name. Probably it then did strip off the file extension and ended up with the same name and then tried to create a new cell with the same name as the old one. I haven't seen this before because I think of the argument to
getcell
as a cell name, not a file name, so I would always to
getcell comparator
, not
getcell comparator.mag
. Obviously both should be acceptable, though.
w
Well, we all know I am a master at breaking magic in weird ways..... 😅
I should try loading the files first in the future
magic also seems to be modifying cells when I load them into a design this way. Something with a timestamp?
t
Yes, timestamps are something I want to get rid of in favor of checksums.
The crash condition and the confusion over the name with and without the file extension has now been fixed.