Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The system cannot find the path specified #100

Closed
aWeinzierl opened this issue Aug 12, 2018 · 5 comments
Closed

The system cannot find the path specified #100

aWeinzierl opened this issue Aug 12, 2018 · 5 comments

Comments

@aWeinzierl
Copy link

aWeinzierl commented Aug 12, 2018

protoc \
	shared\proto\Api.proto \
	--plugin="protoc-gen-ts=$(PROTOC_GEN_TS_PATH)"make \
    	--js_out="import_style=commonjs,binary:$(protoJavascriptPath)" \
	--ts_out=".\" 

Whatever path I use in ts_out (" ./", ".", :$(protoJavascriptPath), no path at all, empty path, "." , with or without quotes), if I use Powershell or a makefile(CMD): I receive the following error:
--ts_out: protoc-gen-ts: The system cannot find the path specified.

Windows x86-64, libprotoc 3.6.1,

Javascript, php outputs just work fine.

@navono
Copy link

navono commented Aug 13, 2018

with the command:

protoc --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --js_out=import_style=commonjs,binary:./src --ts_out=./src -I src/ proto/hackernews.proto

In Win10, it prompt

--ts_out: protoc-gen-ts: %1 不是有效的 Win32 应用程序。

means "Not a valid Win32 application. "

@navono
Copy link

navono commented Aug 13, 2018

When I add .cmd to the protoc-gen-ts, will cause

'.' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
--ts_out: protoc-gen-ts: Plugin failed with status code 1.

means '.' Not an internal or external command, or a runnable program or batch file

@navono
Copy link

navono commented Aug 13, 2018

related to issue 15, it must be absolute path or add %CD%.

@aWeinzierl
Copy link
Author

works fine, thanks

How about a clue in the readme?

@navono
Copy link

navono commented Aug 13, 2018

maybe a PR?

jonnyreeves added a commit that referenced this issue Sep 8, 2018
Hint that the path to ts-protoc-gen must be absolute on Windows. Fixes #100
jonnyreeves added a commit that referenced this issue Sep 8, 2018
Hint that the path to ts-protoc-gen must be absolute on Windows. Fixes #100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants