cli icon indicating copy to clipboard operation
cli copied to clipboard

bug/proto-gen: go ICE post deleting generated files

Open laciferin2024 opened this issue 11 months ago • 4 comments

Proto gen halts at go mod tidy after i clean all generated files . It would be great if the go mod tidy is done post generation event

Reproducer

  1. Create a new module
  2. Delete the protogen generated files
  3. Now try generating the protogen files

laciferin2024 avatar Feb 18 '25 15:02 laciferin2024

Hi! You aren't supposed to delete the generated file. What is your use case?

julienrbrt avatar Feb 19 '25 16:02 julienrbrt

@julienrbrt lost my deleted files and now it doesnt generate

laciferin2024 avatar Feb 19 '25 23:02 laciferin2024

I have tried the following:

ignite s chain gm
cd gm
rm -r x/gm/types/*.pb.go
ignite chain serve

I did the same with

ignite s chain gm
cd gm
rm -r x/gm/types/*.pb.go
ignite generate proto-go

And they are both working. Could you describe steps for me to reproduce?

julienrbrt avatar Feb 21 '25 15:02 julienrbrt

yes: try

find . -type f -name "*.pb.*" -exec rm -f {} +

laciferin2024 avatar Feb 21 '25 16:02 laciferin2024

@laciferin2024, the v29 version fixes this issue:

ignite s chain mars && cd mars
find . -type f -name "*.pb.*" -exec rm -f {} +
git status
ignite chain serve

You can open the issue again if the problem persists. Thanks for the report!

Image

Pantani avatar Aug 12 '25 04:08 Pantani

Sure thank you @Pantani

laciferin2024 avatar Aug 12 '25 08:08 laciferin2024