Ok, so my mind has never hurt more in my entire life. This is more odd behavior I’ve ever seen God someone please help. All I was doing was writing some code that finds and replaces in a .json file. On my machine it was working perfectly fine. I go to my test vm to run the code and it runs, it prints success on all the edits. But two out of 6 of the edits no work for some reason. I figured it was some issue with my find and replace logic or something. No matter what I tried same outcome. I finally was like screw it I’ll just embed a completed .json file, delete the original, and replace it with my configured one, not as dynamic but I was willing to try it. I literally create a brand new vs code project, and somehow, some fucking how, I run this brand new program, and it produces…
Ok, so my mind has never hurt more in my entire life. This is more odd behavior I’ve ever seen God someone please help. All I was doing was writing some code that finds and replaces in a .json file. On my machine it was working perfectly fine. I go to my test vm to run the code and it runs, it prints success on all the edits. But two out of 6 of the edits no work for some reason. I figured it was some issue with my find and replace logic or something. No matter what I tried same outcome. I finally was like screw it I’ll just embed a completed .json file, delete the original, and replace it with my configured one, not as dynamic but I was willing to try it. I literally create a brand new vs code project, and somehow, some fucking how, I run this brand new program, and it produces the SAME RESULT, I EVEN CREATED A BRAND NEW VM AND THE SAME RESULT. I removed the function to edit the .json entirely. I remove the find and replace strings. YET SOMEHOW IT JUST KEEPS PRODUCING THE SAME FUCKING RESULT. It makes no sense on so many different levels. What could possibly be causing this?!?!?!?!?