Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/gopls: could not import C (no package for import C) when importing static libraries #40595
What version of Go are you using (
I was preparing my system to get some logs when i copied the code to a new file and... there was no error, the same code on 2 files just with different test function name, the old one showing "could not import C" while the new one does not, so i deleted the old one and renamed the new one and bum! no more errors and the code now runs fine on vscode. Can this be a cache issue?, i updated recently to gopls 0.4.4. Sadly i can't get the logs now, but this issue may be useful to somebody else...