protocompile icon indicating copy to clipboard operation
protocompile copied to clipboard

A parsing/linking engine for protobuf; the guts for a pure Go replacement of protoc.

Results 28 protocompile issues
Sort by recently updated
recently updated
newest added

Bumps [github.com/bufbuild/buf](https://github.com/bufbuild/buf) from 1.30.1 to 1.31.0. Release notes Sourced from github.com/bufbuild/buf's releases. v1.31.0 Update dependencies. Changelog Sourced from github.com/bufbuild/buf's changelog. [v1.31.0] - 2024-04-23 Update dependencies. Commits c9863a6 Release v1.31.0 (#2908)...

dependencies
go

In https://github.com/bufbuild/protocompile/pull/258 I made a proof of concept for using google.golang.org/protobuf/reflect/protoreflect descriptors instead of the the descriptors defined in linker/descriptors.go. google.golang.org/protobuf/reflect/protodesc offers an API to turn file descriptor protos into...

To provide good completion suggestions, an ast is needed to know if the cursor is in an option or not. However common completion cases do not parse in protocompile, for...

LSP provides (0-based) Line and Character for a position: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#position while a ast.SourcePos provides (1-based) Line, Col and (0-based) offset. A helper function to take a Line and Col, and...

The AST representation is very useful for some kinds of tools, and also provides a nice API for extracting source position information that would be otherwise unavailable in a file...

The Godoc says: ``` // If the error returned is due to a syntax error in the source, then a non-nil // AST is also returned. If the handler chooses...

This is just a draft because I don't want to actually merge in its current form. We'd need to make a decision about whether to use `--fast-append` mode (an optimization...

**Description of the problem** - I put the copy of "google/protobuf/xxx.proto" in my own repository. ``` common ├── google │   └── protobuf │   ├── any.proto │   ├── api.proto │   ├──...

For long-term future compatibility with the protobuf-go repo, the results of compilation should not return values that implement/extend `protoreflect.Descriptor`. The values should instead implement a parallel hierarchy of interfaces (which...

The pathological test case was taking ~10 seconds (!!). Now it's just 200ms. The issue was that it was relying on `ast.FileInfo` to provide things like the line numbers for...