The issue was too specific to solve. ChatGPT can only answer either general questions accurately or wide questions creatively. It sucks at code, no doubt. However, future language models may solve specific coding issues better.