Fix: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead
Los mantenedores suelen responder en 1 día
@devx-arjun ya está trabajando en esto.
Desde el 6/10/2026.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Start with the Erlang source locations listed in the issue and inspect each deprecated catch operator in context. Run the project build with OTP29 to reproduce the warnings; done means all listed uses have been updated and the warnings no longer appear without changing behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Since OTP29, there will be a warning when using the catch operator, which has been deprecated for a long time. It is recommended to instead use try…catch.
Here is a list of locations, where only a catch ... is used (commit 75a77a75081442ab5c0798fbf9f9d8083abad099):
src/proper/src/proper_statem.erl:770:46: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_epi/src/couch_epi_module_keeper.erl:59:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_epi/src/couch_epi_functions_gen.erl:343:10: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_epi/src/couch_epi_functions_gen.erl:352:6: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_log/src/couch_log_trunc_io.erl:99:10: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_log/src/couch_log_trunc_io_fmt.erl:291:10: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/chttpd/src/chttpd.erl:228:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/chttpd/src/chttpd_misc.erl:198:18: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/chttpd/src/chttpd_rewrite.erl:362:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/chttpd/src/chttpd_db.erl:633:22: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/chttpd/src/chttpd_db.erl:1319:30: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_httpd.erl:186:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch.erl:35:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_httpd_auth.erl:374:35: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/test_util.erl:163:13: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/test_util.erl:164:20: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/test_util.erl:272:6: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/test_util.erl:273:12: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_util.erl:117:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_util.erl:153:9: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_util.erl:154:9: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_util.erl:547:17: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_httpd_rewrite.erl:358:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_db.erl:960:10: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_db_split.erl:203:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_db_split.erl:204:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_users_db.erl:48:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_users_db.erl:230:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_users_db.erl:241:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_db_updater.erl:205:14: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_db_updater.erl:228:14: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_db_updater.erl:461:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_file.erl:693:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_file.erl:766:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_query_servers.erl:660:13: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_query_servers.erl:780:19: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_query_servers.erl:785:21: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_query_servers.erl:795:19: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_query_servers.erl:800:21: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_query_servers.erl:809:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_httpd_vhost.erl:330:18: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_password_hasher.erl:154:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_os_process.erl:72:13: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_os_process.erl:75:9: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_os_process.erl:161:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_debug.erl:560:19: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_debug.erl:720:19: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_httpd_db.erl:227:19: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_httpd_db.erl:307:17: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_httpd_db.erl:874:22: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_native_process.erl:197:13: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_native_process.erl:199:13: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_native_process.erl:229:14: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_native_process.erl:231:14: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_native_process.erl:234:14: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_native_process.erl:244:14: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_native_process.erl:256:15: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_native_process.erl:267:15: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_native_process.erl:275:22: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_native_process.erl:397:15: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch/src/couch_native_process.erl:438:19: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_event/src/couch_event_listener.erl:84:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_event/src/couch_event_listener.erl:128:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_event/src/couch_event_listener.erl:140:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_event/src/couch_event_listener.erl:152:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_event/src/couch_event_listener.erl:167:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_event/src/couch_event_listener.erl:168:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/mem3/src/mem3_reshard_store.erl:151:17: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/mem3/src/mem3_reshard.erl:217:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/mem3/src/mem3_reshard.erl:218:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_index/src/couch_index_util.erl:36:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_index/src/couch_index_util.erl:42:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_index/src/couch_index_util.erl:51:19: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_index/src/couch_index_util.erl:57:19: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_index/src/couch_index_server.erl:372:22: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_index/src/couch_index.erl:364:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_mrview/src/couch_mrview_cleanup.erl:69:30: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_mrview/src/couch_mrview_index.erl:186:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_mrview/src/couch_mrview_http.erl:183:19: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_mrview/src/couch_mrview_http.erl:256:10: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_mrview/src/couch_mrview_http.erl:682:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_mrview/src/couch_mrview.erl:381:18: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_mrview/src/couch_mrview.erl:465:20: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_mrview/src/couch_mrview_util.erl:201:25: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_mrview/src/couch_mrview_show.erl:31:10: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_replicator/src/couch_replicator_ids.erl:54:15: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_replicator/src/couch_replicator_doc_processor.erl:545:10: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_replicator/src/couch_replicator_scheduler.erl:127:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_replicator/src/couch_replicator_scheduler_job.erl:114:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_replicator/src/couch_replicator_scheduler_job.erl:332:13: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_replicator/src/couch_replicator_scheduler_job.erl:333:13: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_replicator/src/couch_replicator_scheduler_job.erl:956:19: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_replicator/src/couch_replicator_scheduler_job.erl:976:23: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_replicator/src/couch_replicator_scheduler_job.erl:982:21: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_replicator/src/couch_replicator_scheduler_job.erl:1097:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_replicator/src/couch_replicator_docs.erl:264:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_replicator/src/couch_replicator_docs.erl:282:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_replicator/src/couch_replicator_share.erl:127:29: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_replicator/src/couch_replicator_filters.erl:112:15: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_replicator/src/couch_replicator_filters.erl:128:18: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_pse_tests/src/cpse_test_compaction.erl:165:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_pse_tests/src/cpse_test_compaction.erl:175:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_pse_tests/src/cpse_test_compaction.erl:203:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_pse_tests/src/cpse_test_compaction.erl:216:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_pse_tests/src/cpse_test_compaction.erl:245:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_pse_tests/src/cpse_test_compaction.erl:262:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_tests/setups/couch_epi_dispatch.erl:74:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/ddoc_cache/src/ddoc_cache_entry.erl:165:17: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/ddoc_cache/src/ddoc_cache_entry.erl:216:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/dreyfus/src/clouseau_rpc.erl:331:27: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/dreyfus/src/dreyfus_index_manager.erl:134:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/dreyfus/src/dreyfus_httpd.erl:442:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/dreyfus/src/dreyfus_index.erl:130:27: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/nouveau/src/nouveau_util.erl:82:27: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/fabric/src/fabric_view_reduce.erl:119:21: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/fabric/src/fabric_db_create.erl:193:30: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/fabric/src/fabric.erl:198:9: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/fabric/src/fabric.erl:268:9: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/fabric/src/fabric.erl:287:9: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/mango/src/mango_httpd.erl:339:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/mango/src/mango_doc.erl:386:11: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/setup/src/setup_httpd.erl:177:10: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/setup/src/setup.erl:88:10: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/smoosh/src/smoosh.erl:47:13: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/smoosh/src/smoosh_server.erl:259:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/smoosh/src/smoosh_channel.erl:499:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/smoosh/src/smoosh_channel.erl:502:5: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
src/couch_scanner/src/couch_scanner_checkpoint.erl:96:17: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
[build.txt](https://github.com/user-attachments/files/32872236/build.txt)
- Lenguaje dominante
- Erlang
- Estrellas
- 7k
- Forks
- 1.1k
- Merge medio
- 10 h 16 min
- PR fusionados (30 d)
- 35
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/couchdb
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
apache/couchdb#6166 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Replication result depends on whether the target has a validate_doc_update functionPosiblemente ocupada @nickva la tomó hace 1 día. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 44/100
apache/couchdb#6162 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug needs-triage
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
apache/couchdb#6132 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
[ENHANCEMENT]: Add seq checkpoints to continuous feedsPosiblemente ocupada @nickva la tomó hace 2 días. Abiertoenhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
apache/couchdb#6120 · 7 comentarios ·
Los mantenedores suelen responder en 1 día
-
enhancement needs-triage
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
Los mantenedores suelen responder en 1 día
Todos los issues de apache/couchdb
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
`/search.json` ignores the documented `editions.sort` parameterPosiblemente ocupada @PranavD2905 la tomó hoy. AbiertoAffects: Server Good First Issue Module: Solr Needs: Triage Theme: Public APIs Theme: Search
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
internetarchive/openlibrary#13989 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug P2: misleading query
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
jeffknupp/association#478 ·
-
backend bug difficulty: medium priority: medium reliability
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
trustflow-protocol/trustflow-backend#730 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
firecrawl/firecrawl-mcp-server#548 ·
Los mantenedores suelen responder en 1 día