Sublime Forum

Error "Filename too long" when trying to execute the "Stage"command


I want to execute the “Stage” command, but I get the following error

error: open(".pdm/ - EFR32MG21A020F512IM32.slsproj"): Filename too long
error: unable to index file ‘.pdm/ - EFR32MG21A020F512IM32.slsproj’
fatal: updating files failed



Knowing which OS you are using would help in trying to pinpoint the problem.

See this post regarding Git for Windows:

Also, bear in mind that every OS has some rules regarding which characters are allowed in filenames, and could lead to errors when some reserved names are used in a path:

1 Like


Thanks for answer!