Re: [protobuf] Re: Getting the full (on disk) path to an input .proto from plugin

2016-04-23 Thread Elvis Stansvik
2016-04-03 21:00 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-04-03 20:17 GMT+02:00 Feng Xiao <xiaof...@google.com>: >> Hi Elvis, >> >> I think preserving comments at the very top of the .proto file is something >> the protocol compiler should do

Re: [protobuf] Re: Getting the full (on disk) path to an input .proto from plugin

2016-04-03 Thread Elvis Stansvik
upports versions back to 2.5.0. But from the looks of it, I'm going to have to duplicate the input args / -I parsing and build a mirror SourceTree, to be able to resolve file names to on-disk names. Elvis > > On Sun, Apr 3, 2016 at 3:32 AM, Elvis Stansvik <elvst...@gmail.com> wrote: >

Re: [protobuf] Re: Getting the full (on disk) path to an input .proto from plugin

2016-04-03 Thread Elvis Stansvik
2016-04-01 7:50 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > Hi Feng, > > 2016-03-31 22:28 GMT+02:00 Feng Xiao <xiaof...@google.com>: >> >> >> On Wed, Mar 30, 2016 at 9:40 AM, Elvis Stansvik <elvst...@gmail.com> wrote: >>> >>>

Re: [protobuf] Re: Getting the full (on disk) path to an input .proto from plugin

2016-03-31 Thread Elvis Stansvik
Hi Feng, 2016-03-31 22:28 GMT+02:00 Feng Xiao <xiaof...@google.com>: > > > On Wed, Mar 30, 2016 at 9:40 AM, Elvis Stansvik <elvst...@gmail.com> wrote: >> >> On Wednesday, March 30, 2016 at 2:12:46 AM UTC+2, Horst Noreick wrote: >>> >>> the c

[protobuf] Re: Getting the full (on disk) path to an input .proto from plugin

2016-03-30 Thread Elvis Stansvik
On Wednesday, March 30, 2016 at 2:12:46 AM UTC+2, Horst Noreick wrote: > > the compiler uses GOPATH from environment > Hm, I think you may have misunderstood me. GOPATH seems to be some variable to control the paths searched by the Go language compiler. What I'm looking for is a way to

[protobuf] Getting the full (on disk) path to an input .proto from plugin

2016-03-29 Thread Elvis Stansvik
Hi all, I'm the author of protoc-gen-doc, a documentation generator plugin for protoc. I need to be able to get the full (on disk) path of an input file, but can't find a way to do so. The reason I need it is that I need to be able to open the file to do some custom parsing of the raw file

[protobuf] [patch] Small fix for link in wiki

2016-01-17 Thread Elvis Stansvik
nd email to protobuf@googlegroups.com. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout. commit 6463960fee22b1e5623494f92e1dc4230d257a73 Author: Elvis Stansvik <elvst...@gmail.com> Date: Sun Jan 17 13:08:42 2016 +010

[protobuf] Announcing: protoc-gen-doc - Documentation generator plugin for protoc

2014-08-06 Thread Elvis Stansvik
of what the output looks like. So please, start documenting your .proto files and send me some feedback / bug reports / patches! :) Best regards, Elvis Stansvik PS. I know about protoc-gen-docbook, but it's a) Linux-unfriendly and b) DocBook only, while I was primarily looking for Markdown. DS