Bug #1239
closedmorpho fails when lastId gets out of sync
0%
Description
I recently had to delete all the profile information that was contained in
.morpho. A new .morpho was created when I restarted morpho, but when I went to
"Add documentation" to a package it failed stating that id "dmk.1" was in use
already. The only way to fix this was to modify by hand the lastid in dmk.xml
Updated by Dan Higgins almost 21 years ago
The setLastID method in the Morpho class is supposed to check with metacat for
the last ID. It seems to work fine for me when the entire .morpho directory is
discarded.
Need to look into this for more details.
Updated by David Kaplan almost 21 years ago
I did delete the entire .morpho directory when this problem occurred. When does
it run setlastid? If it is only run when the original profile is created then
this could be part of the problem. I chose to skip login because I have to
change the metacat repository that it looks at before proceeding. Perhaps this
is the problem and why you don't see it. For you, the default repository works,
but for me it fails.
Updated by ben leinfelder almost 12 years ago
Sounds like it correctly checked for the last id, but on a different server. At any rate, this is all different in v 2.0.0 not to mention ther large amount of identifier conflict resolution code that now exists.