Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Misleading docs for dc_jsonrpc_next_response

Aperta Adatta ai principianti
#7,978 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
68/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
c, rust
Ambito
documentation

Direzione di ricerca

Apri deltachat-ffi/deltachat.h alle righe collegate e leggi prima la documentazione di dc_jsonrpc_next_response. Rimuovi le due righe fuorvianti relative all’arresto, assicurandoti che il testo rimanente non suggerisca più che l’eliminazione degli account sbloccherà il polling o restituirà NULL. Nell’issue non viene menzionato alcun test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The docs for the cffi function dc_jsonrpc_next_response say:

https://github.com/chatmail/core/blob/80acc9d46720723f5971d1c38599c2c091f138df/deltachat-ffi/deltachat.h#L6004-L6005

This is misleading because dc_jsonrpc_instance_t holds an Arc on Accounts, so it cannot happen that the underlying accounts_t has been dropped.

This sentence in the docs also suggests that for a clean shutdown you can just dc_accounts_unref to somehow unblock dc_jsonrpc_next_response which would then return NULL to then exit a dc_jsonrpc_next_response polling loop. But as far as I understand this will not work, for a clean shutdown it is necessary to manually unblock dc_jsonrpc_next_response by sending some request (like get_system_info) and then manually break the polling loop (e.g. based on a done flag which has been set when initiating the shutdown).

I think even just removing these two lines from the docs would improve comprehensibility.

Lingua principale
Rust
Stelle
938
Fork
151
Merge medio
1g 23h
PR unite (30g)
67

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di chatmail/core

Tutte le issue di chatmail/core

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.