protobufjs / protobuf.js

Protocol Buffers for JavaScript & TypeScript.
Other
9.87k stars 1.41k forks source link

pbts does not work when running it on visual studio team services #887

Open mhgamework opened 7 years ago

mhgamework commented 7 years ago

protobuf.js version: 6.7.0

I am running "pbjs -t static-module -w commonjs xxx.proto | pbts -o xxx.d.ts -" When i run this command locally it works, when i run it on visual studio team services, the .d.ts file produces the following output:

import * as $protobuf from "protobufjs";

There are no input files to process.

JSDoc 3.4.2 (Mon, 03 Oct 2016 18:14:32 GMT)

Options:
    -a, --access <value>         Only
<<<Rest of the JSDOC compiler options>>>

I have absolutely no clue why this is happening and this makes this protobuf.js unusable for me. Does anyone have any pointers as to what might be happening

mainnika commented 6 years ago

protobuf.js version: 6.8.0

Same for me, but locally.

hostname# ./node_modules/.bin/pbjs -t static-module -w commonjs base.proto | ./node_modules/.bin/pbts -
import * as $protobuf from "protobufjs";

There are no input files to process.
bgiegel commented 6 years ago

I have the same problem but with pbts and same arguments.

dcodeIO commented 6 years ago

Handling of the - parameter is performed here. Apparently it uses a temporary file name of - there, which is bad. Should be an easy fix, though, if that's the cause.

bgiegel commented 6 years ago

Sorry it's not exactly the same parameter. To be precise, I have the problem on this command : pbts -t static-module -w commonjs -o userhistory.js history.proto

edit: Same thing without arguments

larssn commented 1 year ago

Still an issue in 2023

sbussard commented 1 year ago

Wow indeed it is still an issue

sbussard commented 1 year ago

I don't know why, but this seems to work for generating ts types ./node_modules/.bin/pbjs -t static-module somefile.proto | ./node_modules/.bin/pbts -o somefile.d.ts -