godot-gdscript-toolkit icon indicating copy to clipboard operation
godot-gdscript-toolkit copied to clipboard

spawn ENAMETOOLONG

Open DPMakerQB opened this issue 2 years ago • 2 comments

Hi! I'm getting the error spawn ENAMETOOLONG when using gdformat.

Perhaps it's because there's too many characters in my script?

Lines: 559 Characters: 32,296

DPMakerQB avatar Aug 05 '22 03:08 DPMakerQB

hi, I cannot reproduce using a file of similar size. Could you please attach full stacktrace? Or (if possible) the file which is causing the problem.

Scony avatar Aug 07 '22 22:08 Scony

spawn ENAMETOOLONG seems to indicate, that the length of parameters passed to the commandline exceeds the max char amount. Since the gdformat command recieves the file name as input this maximum will propably not be reached when using the cli. But in the vscode plugin the code is passed as arg and not the file name. So this is propably only reproducable with vscode (have not looked into emacs).

https://stackoverflow.com/questions/66092260/error-spawn-enametoolong-when-trying-to-send-a-long-string-from-nodejs-to-pytho

Or just fix #184

HolonProduction avatar Feb 08 '23 19:02 HolonProduction

VSCode extension is no longer part of this repo.

Scony avatar Mar 21 '24 21:03 Scony