Compilation Error when not expected
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 4.4k
- Forks
- 627
- Avg merge
- 3d 15m
- Merged PRs (30d)
- 20
Description
syntax = "proto2";
import "google/protobuf/descriptor.proto";
package singla;
option java_package = "singla.Address";
extend google.protobuf.MessageOptions {
optional int32 message_version = 4121;
}
message Song {
optional int32 id = 1;
optional string name = 2;
}
----------------
syntax = "proto2";
import "./test.proto"; // doing test.proto is fine
package singla;
message Album {
optional Song song = 2;
}
Compiling this throws an error about version 4121 getting reused.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the compilation using the two provided proto2 snippets, first importing test.proto directly and then importing it as ./test.proto. Compare the compiler's handling of extension number 4121; done means the valid import form no longer reports that number as reused unexpectedly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- compilers, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100