How can I make VScode aware of generated protobuf ...
# general
r
How can I make VScode aware of generated protobuf code?
from protobuf.v1.person_pb2 import Person
Copy code
Import "protobuf.v1.person_pb2" could not be resolved
What I did.
Copy code
pants export-codegen ::

pants export \
  --resolve=python-default \
  --export-py-generated-sources-in-resolve=python-default
The docs mentions
--export-py-generated-sources
but pants 2.22 does NOT recognize it. https://www.pantsbuild.org/stable/docs/python/integrations/protobuf-and-grpc
b
ah, that looks like a bug in the docs. Are you interested in contributing a fix?
r