Just an observation I made which may help someone save a bunch of time. In my case I was trying to pull in a variable into the class scope and it wouldn’t work.
Solution was to add the global variable to
$sugar_config["str1"] = "this is a string";
Then after repair and rebuild it can be accessed via: