Ghost of #259 - there are bugs:
308:
Traceback (most recent call last):
File "bash\gui\events.py", line 165, in _post
result = listener(*listener_args)
File "bash\basher\__init__.py", line 2421, in OnLabelEdited
name_new = self.new_name(newName)
File "bash\basher\__init__.py", line 2448, in new_name
renaming_type = to_rename and type(self.data_store[to_rename[0]])
File "bash\bolt.py", line 1125, in __getitem__
return self._data[key]
KeyError: bolt.Path(u'lololi.7z.rar')
yep it's not there we just renamed it
309:
##: loose ends.ghost extension to is locked.. but most importantly the model is half baked - the handling of the names (new name and co) belongs to the infos, handling of the messages to basher and so on - blocks #543 - renames are all about those keys (surprise!) and the handling should be centralized.
That being said this is the final renames issue - we want to discourage people from renaming stuff (apart from installers) mods/saves names play a role and hence the monumental complexity of this code. So with this merge we forget about renames (no, no tweaks renames thanks)
Some discussions from #400 that are related to this issue:
Renaming an installer on nightly right now:
Traceback (most recent call last):
File "bash\gui\events.pyo", line 165, in _post
File "bash\basher\__init__.pyo", line 2403, in OnLabelEdited
File "bash\balt.pyo", line 1333, in SelectItemsNoCallback
File "bash\balt.pyo", line 1323, in SelectItem
File "bash\balt.pyo", line 1455, in GetIndex
File "bash\gui\list_ctrl.pyo", line 263, in FindIndexOf
KeyError: bolt.Path(u'.7z')
Edit: It was a rename from Test - 1.7z to Test.7z
Thanks Inf I have an updated local version will test it tomorrowish -
we're near
Maybe a regex failure?
On Fri, Feb 26, 2021, 7:05 PM Infernio notifications@github.com wrote:
Renaming an installer on nightly right now:
Traceback (most recent call last):
File "bash\gui\events.pyo", line 165, in _post
File "bash\basher__init__.pyo", line 2403, in OnLabelEdited
File "bash\balt.pyo", line 1333, in SelectItemsNoCallback
File "bash\balt.pyo", line 1323, in SelectItem
File "bash\balt.pyo", line 1455, in GetIndex
File "bash\gui\list_ctrl.pyo", line 263, in FindIndexOf
KeyError: bolt.Path(u'.7z')—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/wrye-bash/wrye-bash/issues/580#issuecomment-786772332,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKNIV4WQIVT553KZT26X63TA7IE5ANCNFSM4YDGLBDQ
.
When the user enables/disables a plugin, if auto-ghosting is on we try to unghost/ghost it as a result. If the plugin is locked (e.g. by xEdit) the result is that the plugin is enabled, but is still on disk as a ghost.
This leaves you with a plugin that's enabled but also a ghost (a nonsensical state). There's no warning or error that aborts this when we can't perform the .ghost rename because the file is locked.
I have reproduced the installers bug - fixing will post a new iteration soon
It _did_ take all day - I included the Vmad fixes in bc8555f2c02806afebd7df725c9861b1f47e3e56 - gosh that drained me (I broke CI but should be an easy fix). Now I leave the fate of this issue to you - can be moved to 309 - or be split so the fixes are linked to 308.
I could use a drink :P
Thanks! Will have a look once I find time.