From 288408bedccff92ac60b5dec25de2279ea08509b Mon Sep 17 00:00:00 2001 From: camperbot Date: Wed, 20 Sep 2023 08:50:15 -0700 Subject: [PATCH] chore(i18n,docs): processed translations (#51613) --- .../how-to-enable-new-languages.md | 4 ++-- .../how-to-work-on-coding-challenges.md | 16 ++++++++++++++++ docs/i18n/chinese/how-to-enable-new-languages.md | 4 ++-- .../chinese/how-to-work-on-coding-challenges.md | 16 ++++++++++++++++ docs/i18n/espanol/how-to-enable-new-languages.md | 4 ++-- .../espanol/how-to-work-on-coding-challenges.md | 16 ++++++++++++++++ docs/i18n/german/how-to-enable-new-languages.md | 4 ++-- .../german/how-to-work-on-coding-challenges.md | 16 ++++++++++++++++ docs/i18n/italian/how-to-enable-new-languages.md | 4 ++-- .../italian/how-to-work-on-coding-challenges.md | 16 ++++++++++++++++ .../i18n/japanese/how-to-enable-new-languages.md | 4 ++-- .../japanese/how-to-work-on-coding-challenges.md | 16 ++++++++++++++++ .../portuguese/how-to-enable-new-languages.md | 4 ++-- .../how-to-work-on-coding-challenges.md | 16 ++++++++++++++++ .../ukrainian/how-to-enable-new-languages.md | 4 ++-- .../how-to-work-on-coding-challenges.md | 16 ++++++++++++++++ 16 files changed, 144 insertions(+), 16 deletions(-) diff --git a/docs/i18n/chinese-traditional/how-to-enable-new-languages.md b/docs/i18n/chinese-traditional/how-to-enable-new-languages.md index 60e0c371cfb..e83092b17f2 100644 --- a/docs/i18n/chinese-traditional/how-to-enable-new-languages.md +++ b/docs/i18n/chinese-traditional/how-to-enable-new-languages.md @@ -71,7 +71,7 @@ Note that the `download_language` key needs to be set to the language code displ There are a few steps to take in order to allow the codebase to build in your desired language. -First, visit the [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/i18n.ts) file to add the language to the list of available languages and configure the values. There are several objects here. +First, visit the [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/shared/config/i18n.ts) file to add the language to the list of available languages and configure the values. There are several objects here. - `Languages`: Add the new language to `Languages` enum, similar to the others. The string value here will be used in the `.env` file to set a build language later. - `availableLangs`: Add the new property from the `Languages` enum to both the `client` and `curriculum` arrays. @@ -319,7 +319,7 @@ Once these are in place, you should be able to run `pnpm run develop` to view yo When your prior PR is merged and the VM for your language is ready, make another PR to show your language in the navigation menu. -In [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/i18n.ts) file, you have included your language in `hiddenLangs` array in the prior PR. Remove it from the array now. +In [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/shared/config/i18n.ts) file, you have included your language in `hiddenLangs` array in the prior PR. Remove it from the array now. ```js export const hiddenLangs = []; // Remove your language from the array diff --git a/docs/i18n/chinese-traditional/how-to-work-on-coding-challenges.md b/docs/i18n/chinese-traditional/how-to-work-on-coding-challenges.md index 54f12f912e6..2ce2b832d3b 100644 --- a/docs/i18n/chinese-traditional/how-to-work-on-coding-challenges.md +++ b/docs/i18n/chinese-traditional/how-to-work-on-coding-challenges.md @@ -566,3 +566,19 @@ pnpm run update-challenge-order ``` This will take you through an interactive process to select the order of the challenges. + +## Troubleshooting + +### Infinite Loop Detected + +If you see the following error in the console while previewing a challenge: + +```text +Potential infinite loop detected on line ... +``` + +This means that the loop-protect plugin has found a long-running loop or recursive function. If your challenge needs to do that (e.g. it contains an event loop that is supposed to run indefinitely), then you can prevent the plugin from being used in the preview. To do so, add `disableLoopProtectPreview: true` to the block's `meta.json` file. + +If your tests are computationally intensive, then you may see this error when they run. If this happens then you can add `disableLoopProtectTests: true` to the block's `meta.json` file. + +It's not typically necessary to have both set to true, so only set them as needed. diff --git a/docs/i18n/chinese/how-to-enable-new-languages.md b/docs/i18n/chinese/how-to-enable-new-languages.md index 36b8a7b4bc4..cd7895ca2eb 100644 --- a/docs/i18n/chinese/how-to-enable-new-languages.md +++ b/docs/i18n/chinese/how-to-enable-new-languages.md @@ -71,7 +71,7 @@ Note that the `download_language` key needs to be set to the language code displ There are a few steps to take in order to allow the codebase to build in your desired language. -First, visit the [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/i18n.ts) file to add the language to the list of available languages and configure the values. There are several objects here. +First, visit the [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/shared/config/i18n.ts) file to add the language to the list of available languages and configure the values. There are several objects here. - `Languages`: Add the new language to `Languages` enum, similar to the others. The string value here will be used in the `.env` file to set a build language later. - `availableLangs`: Add the new property from the `Languages` enum to both the `client` and `curriculum` arrays. @@ -319,7 +319,7 @@ Once these are in place, you should be able to run `pnpm run develop` to view yo When your prior PR is merged and the VM for your language is ready, make another PR to show your language in the navigation menu. -In [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/i18n.ts) file, you have included your language in `hiddenLangs` array in the prior PR. Remove it from the array now. +In [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/shared/config/i18n.ts) file, you have included your language in `hiddenLangs` array in the prior PR. Remove it from the array now. ```js export const hiddenLangs = []; // Remove your language from the array diff --git a/docs/i18n/chinese/how-to-work-on-coding-challenges.md b/docs/i18n/chinese/how-to-work-on-coding-challenges.md index 54f12f912e6..2ce2b832d3b 100644 --- a/docs/i18n/chinese/how-to-work-on-coding-challenges.md +++ b/docs/i18n/chinese/how-to-work-on-coding-challenges.md @@ -566,3 +566,19 @@ pnpm run update-challenge-order ``` This will take you through an interactive process to select the order of the challenges. + +## Troubleshooting + +### Infinite Loop Detected + +If you see the following error in the console while previewing a challenge: + +```text +Potential infinite loop detected on line ... +``` + +This means that the loop-protect plugin has found a long-running loop or recursive function. If your challenge needs to do that (e.g. it contains an event loop that is supposed to run indefinitely), then you can prevent the plugin from being used in the preview. To do so, add `disableLoopProtectPreview: true` to the block's `meta.json` file. + +If your tests are computationally intensive, then you may see this error when they run. If this happens then you can add `disableLoopProtectTests: true` to the block's `meta.json` file. + +It's not typically necessary to have both set to true, so only set them as needed. diff --git a/docs/i18n/espanol/how-to-enable-new-languages.md b/docs/i18n/espanol/how-to-enable-new-languages.md index e9ae70cf4c1..dffc34f6992 100644 --- a/docs/i18n/espanol/how-to-enable-new-languages.md +++ b/docs/i18n/espanol/how-to-enable-new-languages.md @@ -71,7 +71,7 @@ Ten en cuenta que la opción `download_language` deberá corresponder al código Hay algunos pasos a seguir para permitirle a la base de código compilarse a tu idioma de preferencia. -First, visit the [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/i18n.ts) file to add the language to the list of available languages and configure the values. Aquí hay varios objetos. +First, visit the [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/shared/config/i18n.ts) file to add the language to the list of available languages and configure the values. Aquí hay varios objetos. - `Languages`: Add the new language to `Languages` enum, similar to the others. The string value here will be used in the `.env` file to set a build language later. - `availableLangs`: Add the new property from the `Languages` enum to both the `client` and `curriculum` arrays. @@ -319,7 +319,7 @@ Once these are in place, you should be able to run `pnpm run develop` to view yo When your prior PR is merged and the VM for your language is ready, make another PR to show your language in the navigation menu. -In [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/i18n.ts) file, you have included your language in `hiddenLangs` array in the prior PR. Remove it from the array now. +In [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/shared/config/i18n.ts) file, you have included your language in `hiddenLangs` array in the prior PR. Remove it from the array now. ```js export const hiddenLangs = []; // Remove your language from the array diff --git a/docs/i18n/espanol/how-to-work-on-coding-challenges.md b/docs/i18n/espanol/how-to-work-on-coding-challenges.md index 230b2fa8eff..b43ef9222b9 100644 --- a/docs/i18n/espanol/how-to-work-on-coding-challenges.md +++ b/docs/i18n/espanol/how-to-work-on-coding-challenges.md @@ -570,3 +570,19 @@ pnpm run update-challenge-order ``` This will take you through an interactive process to select the order of the challenges. + +## Troubleshooting + +### Infinite Loop Detected + +If you see the following error in the console while previewing a challenge: + +```text +Potential infinite loop detected on line ... +``` + +This means that the loop-protect plugin has found a long-running loop or recursive function. If your challenge needs to do that (e.g. it contains an event loop that is supposed to run indefinitely), then you can prevent the plugin from being used in the preview. To do so, add `disableLoopProtectPreview: true` to the block's `meta.json` file. + +If your tests are computationally intensive, then you may see this error when they run. If this happens then you can add `disableLoopProtectTests: true` to the block's `meta.json` file. + +It's not typically necessary to have both set to true, so only set them as needed. diff --git a/docs/i18n/german/how-to-enable-new-languages.md b/docs/i18n/german/how-to-enable-new-languages.md index f258f0a17e6..0d19c2424d9 100644 --- a/docs/i18n/german/how-to-enable-new-languages.md +++ b/docs/i18n/german/how-to-enable-new-languages.md @@ -71,7 +71,7 @@ Beachte, dass der Schlüssel `download_language` auf den Sprachcode festgelegt w Es gibt ein paar Schritte, die du unternehmen musst, damit die Codebasis in deiner gewünschten Sprache erstellt werden kann. -First, visit the [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/i18n.ts) file to add the language to the list of available languages and configure the values. Hier gibt es mehrere Objekte. +First, visit the [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/shared/config/i18n.ts) file to add the language to the list of available languages and configure the values. Hier gibt es mehrere Objekte. - `Languages`: Add the new language to `Languages` enum, similar to the others. The string value here will be used in the `.env` file to set a build language later. - `availableLangs`: Add the new property from the `Languages` enum to both the `client` and `curriculum` arrays. @@ -319,7 +319,7 @@ Once these are in place, you should be able to run `pnpm run develop` to view yo When your prior PR is merged and the VM for your language is ready, make another PR to show your language in the navigation menu. -In [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/i18n.ts) file, you have included your language in `hiddenLangs` array in the prior PR. Remove it from the array now. +In [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/shared/config/i18n.ts) file, you have included your language in `hiddenLangs` array in the prior PR. Remove it from the array now. ```js export const hiddenLangs = []; // Remove your language from the array diff --git a/docs/i18n/german/how-to-work-on-coding-challenges.md b/docs/i18n/german/how-to-work-on-coding-challenges.md index b4098641e70..686f2717cd9 100644 --- a/docs/i18n/german/how-to-work-on-coding-challenges.md +++ b/docs/i18n/german/how-to-work-on-coding-challenges.md @@ -565,3 +565,19 @@ pnpm run update-challenge-order ``` This will take you through an interactive process to select the order of the challenges. + +## Troubleshooting + +### Infinite Loop Detected + +If you see the following error in the console while previewing a challenge: + +```text +Potential infinite loop detected on line ... +``` + +This means that the loop-protect plugin has found a long-running loop or recursive function. If your challenge needs to do that (e.g. it contains an event loop that is supposed to run indefinitely), then you can prevent the plugin from being used in the preview. To do so, add `disableLoopProtectPreview: true` to the block's `meta.json` file. + +If your tests are computationally intensive, then you may see this error when they run. If this happens then you can add `disableLoopProtectTests: true` to the block's `meta.json` file. + +It's not typically necessary to have both set to true, so only set them as needed. diff --git a/docs/i18n/italian/how-to-enable-new-languages.md b/docs/i18n/italian/how-to-enable-new-languages.md index b6490ed1595..05f8df5233b 100644 --- a/docs/i18n/italian/how-to-enable-new-languages.md +++ b/docs/i18n/italian/how-to-enable-new-languages.md @@ -71,7 +71,7 @@ Nota che la chiave `download_language` deve essere impostata sul codice della li Ci sono alcuni step da svolgere per consentire il build del codebase nella lingua scelta. -First, visit the [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/i18n.ts) file to add the language to the list of available languages and configure the values. Qui ci sono diversi oggetti. +First, visit the [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/shared/config/i18n.ts) file to add the language to the list of available languages and configure the values. Qui ci sono diversi oggetti. - `Languages`: Aggiunge la nuova lingua all'enum `Languages` simile agli altri. Il valore della stringa qui sarà usato nel file `.env` per impostare un build della lingua in seguito. - `availableLangs`: Aggiunge la nuova proprietà dall'enum `Languages` a entrambi gli array `client` e `curriculum`. @@ -319,7 +319,7 @@ Una volta che questi saranno in posizione, dovresti essere in grado di eseguire When your prior PR is merged and the VM for your language is ready, make another PR to show your language in the navigation menu. -In [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/i18n.ts) file, you have included your language in `hiddenLangs` array in the prior PR. Remove it from the array now. +In [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/shared/config/i18n.ts) file, you have included your language in `hiddenLangs` array in the prior PR. Remove it from the array now. ```js export const hiddenLangs = []; // Remove your language from the array diff --git a/docs/i18n/italian/how-to-work-on-coding-challenges.md b/docs/i18n/italian/how-to-work-on-coding-challenges.md index a5624c4e0eb..9f91d2e31ea 100644 --- a/docs/i18n/italian/how-to-work-on-coding-challenges.md +++ b/docs/i18n/italian/how-to-work-on-coding-challenges.md @@ -566,3 +566,19 @@ pnpm run update-challenge-order ``` This will take you through an interactive process to select the order of the challenges. + +## Troubleshooting + +### Infinite Loop Detected + +If you see the following error in the console while previewing a challenge: + +```text +Potential infinite loop detected on line ... +``` + +This means that the loop-protect plugin has found a long-running loop or recursive function. If your challenge needs to do that (e.g. it contains an event loop that is supposed to run indefinitely), then you can prevent the plugin from being used in the preview. To do so, add `disableLoopProtectPreview: true` to the block's `meta.json` file. + +If your tests are computationally intensive, then you may see this error when they run. If this happens then you can add `disableLoopProtectTests: true` to the block's `meta.json` file. + +It's not typically necessary to have both set to true, so only set them as needed. diff --git a/docs/i18n/japanese/how-to-enable-new-languages.md b/docs/i18n/japanese/how-to-enable-new-languages.md index 869ce0569bb..00d643a7c6e 100644 --- a/docs/i18n/japanese/how-to-enable-new-languages.md +++ b/docs/i18n/japanese/how-to-enable-new-languages.md @@ -71,7 +71,7 @@ Note that the `download_language` key needs to be set to the language code displ There are a few steps to take in order to allow the codebase to build in your desired language. -First, visit the [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/i18n.ts) file to add the language to the list of available languages and configure the values. There are several objects here. +First, visit the [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/shared/config/i18n.ts) file to add the language to the list of available languages and configure the values. There are several objects here. - `Languages`: Add the new language to `Languages` enum, similar to the others. The string value here will be used in the `.env` file to set a build language later. - `availableLangs`: Add the new property from the `Languages` enum to both the `client` and `curriculum` arrays. @@ -319,7 +319,7 @@ Once these are in place, you should be able to run `pnpm run develop` to view yo When your prior PR is merged and the VM for your language is ready, make another PR to show your language in the navigation menu. -In [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/i18n.ts) file, you have included your language in `hiddenLangs` array in the prior PR. Remove it from the array now. +In [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/shared/config/i18n.ts) file, you have included your language in `hiddenLangs` array in the prior PR. Remove it from the array now. ```js export const hiddenLangs = []; // Remove your language from the array diff --git a/docs/i18n/japanese/how-to-work-on-coding-challenges.md b/docs/i18n/japanese/how-to-work-on-coding-challenges.md index a859393ada1..02f65ad535c 100644 --- a/docs/i18n/japanese/how-to-work-on-coding-challenges.md +++ b/docs/i18n/japanese/how-to-work-on-coding-challenges.md @@ -566,3 +566,19 @@ pnpm run update-challenge-order ``` This will take you through an interactive process to select the order of the challenges. + +## Troubleshooting + +### Infinite Loop Detected + +If you see the following error in the console while previewing a challenge: + +```text +Potential infinite loop detected on line ... +``` + +This means that the loop-protect plugin has found a long-running loop or recursive function. If your challenge needs to do that (e.g. it contains an event loop that is supposed to run indefinitely), then you can prevent the plugin from being used in the preview. To do so, add `disableLoopProtectPreview: true` to the block's `meta.json` file. + +If your tests are computationally intensive, then you may see this error when they run. If this happens then you can add `disableLoopProtectTests: true` to the block's `meta.json` file. + +It's not typically necessary to have both set to true, so only set them as needed. diff --git a/docs/i18n/portuguese/how-to-enable-new-languages.md b/docs/i18n/portuguese/how-to-enable-new-languages.md index c8089ed4309..e0756aaf0d1 100644 --- a/docs/i18n/portuguese/how-to-enable-new-languages.md +++ b/docs/i18n/portuguese/how-to-enable-new-languages.md @@ -71,7 +71,7 @@ Observe que a chave `download_language` precisa ser definida como código do idi Existem algumas etapas a serem seguidas para permitir que a base de código seja compilada no idioma desejado. -Primeiro, visite o arquivo [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/i18n.ts) para adicionar o idioma à lista de idiomas disponíveis e configurar os valores. Existem vários objetos aqui. +First, visit the [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/shared/config/i18n.ts) file to add the language to the list of available languages and configure the values. Existem vários objetos aqui. - `Languages`: adiciona o novo idioma no enum `Languages`, do mesmo modo que com os outros. O valor da string aqui será usado no arquivo `.env` para definir o idioma da build posteriormente. - `availableLangs`: adiciona a nova propriedade do enum `Languages` aos dois arrays, `client` e `curriculum`. @@ -319,7 +319,7 @@ Quando estes arquivos estiverem no local certo, você deve poder usar `pnpm run Quando seu PR anterior for mesclado e sua VM para seu idioma estiver pronta, faça outro PR para mostrar seu idioma no menu de navegação. -No arquivo [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/i18n.ts), você incluiu seu idioma no array `hiddenLangs` no PR anterior. Retire-o do array agora. +In [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/shared/config/i18n.ts) file, you have included your language in `hiddenLangs` array in the prior PR. Retire-o do array agora. ```js export const hiddenLangs = []; // Remove seu idioma do array diff --git a/docs/i18n/portuguese/how-to-work-on-coding-challenges.md b/docs/i18n/portuguese/how-to-work-on-coding-challenges.md index c748e470987..9f030887c73 100644 --- a/docs/i18n/portuguese/how-to-work-on-coding-challenges.md +++ b/docs/i18n/portuguese/how-to-work-on-coding-challenges.md @@ -569,3 +569,19 @@ pnpm run update-challenge-order ``` Ele vai orientá-lo através de um processo interativo para selecionar a ordem dos desafios. + +## Troubleshooting + +### Infinite Loop Detected + +If you see the following error in the console while previewing a challenge: + +```text +Potential infinite loop detected on line ... +``` + +This means that the loop-protect plugin has found a long-running loop or recursive function. If your challenge needs to do that (e.g. it contains an event loop that is supposed to run indefinitely), then you can prevent the plugin from being used in the preview. To do so, add `disableLoopProtectPreview: true` to the block's `meta.json` file. + +If your tests are computationally intensive, then you may see this error when they run. If this happens then you can add `disableLoopProtectTests: true` to the block's `meta.json` file. + +It's not typically necessary to have both set to true, so only set them as needed. diff --git a/docs/i18n/ukrainian/how-to-enable-new-languages.md b/docs/i18n/ukrainian/how-to-enable-new-languages.md index 0946a40161d..3f4875f081f 100644 --- a/docs/i18n/ukrainian/how-to-enable-new-languages.md +++ b/docs/i18n/ukrainian/how-to-enable-new-languages.md @@ -71,7 +71,7 @@ Щоб дозволити кодовій базі функціонувати на обраній вами мові, потрібно зробити декілька кроків. -Спочатку відвідайте файл [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/i18n.ts), щоб додати мову до списку доступних мов та налаштувати значення. У ньому розміщено декілька об’єктів. +First, visit the [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/shared/config/i18n.ts) file to add the language to the list of available languages and configure the values. У ньому розміщено декілька об’єктів. - `Languages`: додайте нову мову до запису `Languages`, схоже до інших. Значення рядка пізніше буде використане у файлі `.env`, щоб налаштувати збірку мови. - `availableLangs`: додайте нову властивість із запису `Languages` до масивів `client` та `curriculum`. @@ -319,7 +319,7 @@ videoLocaleIds: Joi.when('challengeType', { Як тільки попередній PR буде об’єднаний, а VM для вашої мови буде готовою, створіть ще один PR, щоб додати нову мову до навігаційного меню. -У файлі [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/i18n.ts) ви додали мову до масиву `hiddenLangs` у попередньому PR. Тепер видаліть її з масиву. +In [`shared/config/i18n.ts`](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/shared/config/i18n.ts) file, you have included your language in `hiddenLangs` array in the prior PR. Тепер видаліть її з масиву. ```js export const hiddenLangs = []; // видаліть свою мову з масиву diff --git a/docs/i18n/ukrainian/how-to-work-on-coding-challenges.md b/docs/i18n/ukrainian/how-to-work-on-coding-challenges.md index 007d31cb527..38d825e7560 100644 --- a/docs/i18n/ukrainian/how-to-work-on-coding-challenges.md +++ b/docs/i18n/ukrainian/how-to-work-on-coding-challenges.md @@ -566,3 +566,19 @@ pnpm run update-challenge-order ``` Він проведе вас через інтерактивний процес, який допоможе впорядкувати завдання. + +## Troubleshooting + +### Infinite Loop Detected + +If you see the following error in the console while previewing a challenge: + +```text +Potential infinite loop detected on line ... +``` + +This means that the loop-protect plugin has found a long-running loop or recursive function. If your challenge needs to do that (e.g. it contains an event loop that is supposed to run indefinitely), then you can prevent the plugin from being used in the preview. To do so, add `disableLoopProtectPreview: true` to the block's `meta.json` file. + +If your tests are computationally intensive, then you may see this error when they run. If this happens then you can add `disableLoopProtectTests: true` to the block's `meta.json` file. + +It's not typically necessary to have both set to true, so only set them as needed.