Import file issue

19 views
Skip to first unread message

Rachana Deshpande

unread,
Jul 2, 2024, 1:25:31 AM (yesterday) Jul 2
to Protocol Buffers
IMPORTS=$(find Files/ -type d -exec echo -I '{}' \;)

echo "Generating html..."
find Files/ -name '*.proto' \
    | xargs protoc \
            ${IMPORTS} \
            --proto_path=. \
            --doc_out=. \
            --doc_opt=template.html,index.html

Gives out the already defined error.

Rachana Deshpande

unread,
Jul 2, 2024, 1:29:15 AM (yesterday) Jul 2
to Protocol Buffers
exports/camera.proto:18:5: "camera.ENUM_VIEWID_NO_VIEW" is already defined in file "camera.proto".

Exports is a folder insider Files and it has a file camera.proto which is imported in one of other protos.
Is this because the files in imports and same as the proto files found using find statement
Reply all
Reply to author
Forward
0 new messages