3 ms·
Yeah, I once saw Copilot add a comment that talked about a workaround for bug in the win32 API it was calling, referencing a stackoverflow post. Obviously, the
by phire 4y ago
Yeah, I once saw Copilot add a comment that talked about a workaround for bug in the win32 API it was calling, referencing a stackoverflow post.
Obviously, the stackoverflow post didn't exit. I googled, and the bug it described didn't exist. Even widening the search, I couldn't find any documentation about any bug in that API. The emitted code after the comment was pretty good and didn't contain a workaround.
It just hallucinated the comment about a workaround because it's seen other code do similar things and thought it would look nice here.
I find Copilot to be a useful tool... But it is not a knowledge engine and should not be trusted. In my opinion, you only accept it's suggestions if you were about to type the same thing.