ryan-haskell / gdformat-on-save

This plugin runs `gdformat` on save to automatically format your GD script as you code.
https://godotengine.org/asset-library/asset/2340
MIT License
14 stars 6 forks source link

Could not create child process (preventing format on save) #1

Closed jonathan-robertson closed 10 months ago

jonathan-robertson commented 10 months ago

👋 Hi! I'm encountering this error on save in Godot 4.2 with your plugin enabled (which prevents any formatting from taking place, unfortunately):

Could not create child process: gdformat C:/Users/jonathan/projects/golf_cards_godot/global.gd

(happens for any file on save within the godot engine)

I highly suspect there's just some dumb mistake or misunderstanding I made on my end... Could also be some setting I'm missing within the engine 🤔 Not sure; really hoping you can help me figure this out since I love auto-formatting code on save ❤️

Additional Info & Record of Troubleshooting Attempted

Screenshots

image image image image image image

jonathan-robertson commented 10 months ago

I checked the GDToolkit page again and noticed there's a newer version than what I was using, so I updated to that and am now on the GDScript Toolkit 4.2.2 image

Unfortunately, I still get the same error on save:

Could not create child process: gdformat C:/Users/jonathan/projects/golf_cards_godot/global.gd

But I wanted to also add that I'm using version 1.2.0 of your plugin (in case that helps) image

jonathan-robertson commented 10 months ago

HA! I also found that I had not updated to Godot 4.2.1!

Once I did this, the problem resolved and your plugin worked as expected 🎉 Sorry for pestering you with this; real glad it works now 😁