Home / GitHub Page

Building translations no longer works

Hi Laurent,

It seems that the latest change to the script for building the localizations resulted in an error.

$ node build-translation.js
{ RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded
    at Socket.onChildStdout (child_process.js:354:14)
    at Socket.emit (events.js:198:13)
    at addChunk (_stream_readable.js:288:12)
    at readableAddChunk (_stream_readable.js:265:13)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:94:17)
   'find ./ -iname \'*.js\' -not -path \'./.git/*\' -not -path \'./.github/*\' -not -path \'./Assets/*\' -not -path \'./CliClient/build/*\' -not -path \'./CliClient/locales-build/*\' -not -path \'./CliClient/locales/*\' -not -path \'./CliClient/node_modules/*\' -not -path \'./CliClient/tests-build/*\' -not -path \'./CliClient/tests/*\' -not -path \'./Clipper/*\' -not -path \'./docs/*\' -not -path \'./ElectronClient/dist/*\' -not -path \'./ElectronClient/gui/style/*\' -not -path \'./ElectronClient/lib/*\' -not -path \'./ElectronClient/node_modules/*\' -not -path \'./ElectronClient/pluginAssets/*\' -not -path \'./ElectronClient/tools/*\' -not -path \'./ElectronClient/gui/note-viewer/pluginAssets/*\' -not -path \'./ReactNativeClient/lib/joplin-renderer/assets/*\' -not -path \'./Modules/*\' -not -path \'./node_modules/*\' -not -path \'./ReactNativeClient/lib/joplin-renderer/node_modules/*\' -not -path \'./patches/*\' -not -path \'./ReactNativeClient/android/*\' -not -path \'./ReactNativeClient/ios/*\' -not -path \'./ReactNativeClient/node_modules/*\' -not -path \'./ReactNativeClient/pluginAssets/*\' -not -path \'./ReactNativeClient/tools/*\' -not -path \'./readme/*\' -not -path \'./Tools/*\'' }

I tried to increase the maxBuffer, but it didn’t work.

Any ideas how to fix this?

There’s a fix for this for another command, I’ll check.

Yep, until then I can’t build translations…

I still can’t build translations.