Access lettercase random changes #624
Replies: 3 comments 3 replies
-
Fitting the problem: #599 In general: |
Beta Was this translation helpful? Give feedback.
-
#599 is curious: I'm not sure sanitization is the way to go since it can't be 100% foolproof unless it has access to a complete syntax tree matching what the VBA compiler has. Does it? In my latest run-in with Access it decided, for no reason I can fathom, that when I typed If only MS would share the algorithm that makes these decisions then we'd know what not to do. or even better, how to get things back to where we want them to be. @josef-poetzl any chance we can get that? |
Beta Was this translation helpful? Give feedback.
-
@jhgarrison As far as I know, I've written the most thorough description of the VBA IDE algorithm for this "feature": VBA's Case Changing "Feature" As for the "sanitization" I proposed in #599, it is every bit as simplistic as the VBA IDE feature it's attempting to provide a workaround for. It's an 80/20 solution that would have the practical effect of severely limiting the knock-on effect of case changes by preventing export of Access objects that only differ from previous exports based on case changes. I've been using a form of this for nearly 15 years in my own homegrown Access version control solution. I proposed it as an enhancement to the project because it's the single biggest thing I miss in VCS addin vs. my own solution. Your example is a perfect use case. When you manually changed the casing of the My proposed solution would be to export the code exactly as it is (without messing with the letter casing in any way). However, when creating a checksum of the file, the addin would first convert the file contents to all upper or lower case only for the purposes of creating the checksum. For performance, vcs-addin file exports compare file checksums rather than file contents when deciding whether an object has changed for exporting purposes (you also have the option to force a full export of all files). The proposed solution is modest both in its implementation complexity (just lower-case the contents of a file before creating its checksum) and in its destructiveness (or lack thereof) (the exported files are not impacted in any way--only the creation of the checksum which has the follow-on effect of limiting the number of objects exported...and, hence, the number of false positive file matches). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've posted a rant about this ongoing problem in the MS Tech Community forum
Access changing lettercase - redux
It might be useful if other users of msaccess-vcs could add some weight to this.
Beta Was this translation helpful? Give feedback.
All reactions