Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Windows: protoc issue the system cannot find the file specified #11

Open
capcaicah opened this issue Nov 5, 2021 · 6 comments
Open
Labels
bug Something isn't working

Comments

@capcaicah
Copy link

i try run make proto tidy but i got error

process_begin: CreateProcess(NULL, protoc --proto_path=. --micro_out=. --go_out=:. proto/helloworld.proto, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile:11: proto] Error 2

i try in windows.

maybe can you help me

Trims

@xpunch
Copy link
Contributor

xpunch commented Nov 5, 2021

Does your protoc command works fine?

protoc --proto_path=. --micro_out=. --go_out=:. proto/helloworld.proto

@capcaicah
Copy link
Author

OK its work!! but i have another issue.

i try run micro run but got error:

CreateFile C:\Users\DELL\AppData\Local\Temp\micro\uploads\C:\microservice\go\src\micro\helloworld: The filename, directory name, or volume label syntax is incorrect.

i think error about path. but i dont know to setting that.

maybe you can help me.

trims

@xpunch
Copy link
Contributor

xpunch commented Nov 5, 2021

Could you provide a demo? This error seams not throw by go-micro.

@capcaicah
Copy link
Author

this is the error screenshot.

ss-error

@xpunch
Copy link
Contributor

xpunch commented Nov 5, 2021

Could be an issue of go-micro/cmd/micro, you can try

protoc --proto_path=. --micro_out=. --go_out=:. proto/helloworld.proto
go mod tidy
go run .

@AuditeMarlow
Copy link

Possibly related to #12.

@xpunch xpunch added the bug Something isn't working label Dec 4, 2021
@xpunch xpunch transferred this issue from micro/go-micro Sep 17, 2022
@Davincible Davincible changed the title process_begin: CreateProcess(NULL, protoc --proto_path=. --micro_out=. --go_out=:. proto/helloworld.proto, ...) failed. make (e=2): The system cannot find the file specified. make: *** [Makefile:11: proto] Error 2 Windows: protoc issue the system cannot find the file specified Oct 8, 2022
alex-dna-tech added a commit to alex-dna-tech/cli that referenced this issue Mar 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants