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

service side: interface must be optional for methods if unambiguous

Aperta
#45 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
ruby

Direzione di ricerca

Reproduce the example service and the qdbus calls shown in the issue, comparing calls made with and without an interface name. Trace the service-side method dispatch and introspection behavior; done means unambiguous methods are callable without an interface and the reported introspection output is corrected.

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

Descrizione

If I create the service from the example, I get the following on the command line

╰─➤ qdbus org.ruby.service /org/ruby/MyInstance
signal void org.ruby.SampleInterface.SomethingJustHappened(QString toto, uint tutu)
method void org.ruby.SampleInterface.hello(QString name, QString name2)
method void org.ruby.SampleInterface.test_variant(QDBusVariant stuff)
method QString org.ruby.AnotherInterface.Reverse(QString instr)
method void org.ruby.AnotherInterface.ThatsALongMethodNameIThink()

Notice there is no introspect method. Also, I can't call any of the methods, I get the following error:

╰─➤ qdbus org.ruby.service /org/ruby/MyInstance Reverse "yay"
Error: org.freedesktop.DBus.Error.UnknownMethod
Interface "" of object "/org/ruby/MyInstance" doesn't exist

I have created multiple service, in different applications, but still keep getting this error. When the method genuinely doesn't exist, there is another different error saying it cannot be found.

Lingua principale
Ruby
Stelle
174
Fork
51
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 mvidner/ruby-dbus

Tutte le issue di mvidner/ruby-dbus

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.