Bug: Infinite loop in rc-apps watch
Personne n'a encore pris cette issue.
- #175 par @quelqu'un — fermée sans fusion
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 45/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- node.js, typescript
Piste de recherche
Start at the rc-apps watch entry point and inspect how .rcappsconfig and its ignoredFiles patterns are passed to the file watcher. Reproduce on Windows/WSL2 with an empty dist/ directory, then verify that generated dist/ artifacts and node_modules/ changes no longer trigger repeated builds or deployments.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Description
The rc-apps watch command enters an infinite build loop on Windows/WSL2 environments. This happens because the file watcher triggers on build artifacts (in dist/) or dependency changes (node_modules/), creating a cycle:
Change -> Build -> Update dist/ -> Change Detected -> Build ...
This occurs even when dist/** is added to .rcappsconfig, suggesting chokidar ignore patterns are not behaving as expected in this environment or the default ignores are insufficient.
Steps to Reproduce
- Setup:
- Create a new app and setup .rcappsconfig
- Ensure
dist/folder does not exist or is empty.
- Execution:
- Run
rc-apps watch.
- Run
- Observation:
- The CLI packages and deploys the app successfully.
- Immediately after, it detects a change (likely the new
dist/artifact) and deploys again. - This loop continues indefinitely.
- Logs shows:
- Failure of Mitigation:
- Adding
**/node_modules/**,dist/**and**/dist/**to.rcappsconfigignoredFilesdoes not stop the loop in this environment.
- Adding
Environment Details
- OS: Windows (WSL2 / Ubuntu)
- Node Version: v22.16.0
- Rocket.Chat Server: v7.13.2
- CLI Version: 1.13.0 wsl-x64 node-v20.19.6
- Langage dominant
- TypeScript
- Étoiles
- 49
- Forks
- 40
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de RocketChat/Rocket.Chat.Apps-cli
-
Feature Request: Add Boilerplate Templates to rc-apps createPeut-être pris @ShubhamS2005 l’a pris il y a 243 jours. Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
RocketChat/Rocket.Chat.Apps-cli#181 · 1 commentaire ·
-
Windows: rc-apps deploy fails with File 'X.ts' not found while tsc compiles successfullyPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
RocketChat/Rocket.Chat.Apps-cli#177 · 3 commentaires ·
-
`rc-apps pack` throws error with nodejs 24Peut-être à nouveau libre @okayxsh l’a pris il y a 231 jours, et aucune pull request n’est ouverte. Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 64/100
RocketChat/Rocket.Chat.Apps-cli#173 · 3 commentaires ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 38/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
RocketChat/Rocket.Chat.Apps-cli#164 · 1 commentaire ·
Toutes les issues de RocketChat/Rocket.Chat.Apps-cli
Issues similaires
-
Out of order / duplicate key error shows the key bytes as decimal or UTF-8, not hexPeut-être pris @bardrop l’a pris aujourd’hui. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 86/100
-
`/leaderboard`, the page and the share image say "be the first" for a program that hasn't startedOuvertebug good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
codercops/discord-bot#152 ·
Les mainteneurs répondent en général sous 1 jour
-
bug i18n
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
endora-commerce/endora-commerce#1315 ·
Les mainteneurs répondent en général sous 1 jour
-
Two stored artist rows are not act names: "DJS" from a Renate floor heading and "Stevie Cox -"Ouvertearea:data-quality importer size:S
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
enorm-labs/event-junkie#5136 ·
Les mainteneurs répondent en général sous 1 jour
-
fix(scripts): set-device-owner.ps1 fails to parse on Windows PowerShell 5.1 (UTF-8 without BOM)Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 84/100
Les mainteneurs répondent en général sous 1 jour