question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

empty diagnostic method list from amm public facet etc.

See original GitHub issue

Describe the bug

The “no method” diagnostic from the AMM public facet used to include the list of names of methods that it does have. Now that list is empty.

To Reproduce

In a REPL:

command[10] E(home.agoricNames).lookup('instance', 'amm')
history[10] [Object Alleged: InstanceHandle]{}
command[11] E(home.zoe).getPublicFacet(h[10])
history[11] [Object Alleged: AMM publicFacet]{}
command[12] E(h[11]).help()
history[12] Promise.reject("TypeError: target has no method \"help\", has []")

Expected behavior

The has [] list should include the available methods; for example:

command[13] E(home.zoe).getPublicFacet(E(home.agoricNames).lookup('instance', 'Pegasus'))
history[13] [Object Alleged: pegasus]{}
command[14] E(h[13]).help()
history[14] Promise.reject("TypeError: target has no method \"help\", has [\"getLocalIssuer\",\"makeInvitationToTransfer\",\"makePegasusConnectionKit\"]")

Platform Environment

  • what OS are you using? what version of Node.js? v16.17.0
  • is there anything special/unusual about your platform?
  • what version of the Agoric-SDK are you using? (run git describe --tags --always)

@agoric/vat-data@0.4.3-209-g095c89a29

Additional context

I suspect this is due to wrapping the AMM public facet in virtual / durable API stuff.

cc @michaelfig @Chris-Hibbert @turadg

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dckccommented, Dec 5, 2022

Good to see that land, but I think this needs an endo update before it’s fixed.

1reaction
michaelfigcommented, Nov 15, 2022

The code that displays the diagnostic uses Reflect.ownKeys(obj) to fetch the properties. Very likely with the introduction of Far Classes, method properties are moved somewhere else in the prototype chain (not as “own” properties of the object identity).

@erights, do you care to weigh in on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix list for IBM WebSphere Application Server V8.5
IBM WebSphere Application Server provides periodic fixes for the base and Network Deployment editions of release V8.5. The following is a complete listing...
Read more >
Comprehensive Review and Future Research Directions on ...
Faceted search (FS) is considered as one of the ES techniques that aids users in exploring items of interest within such a vast...
Read more >
Provider Manual
Note: This manual provides standards for services to Simply and Clear Health Alliance members enrolled in the.
Read more >
Classical Examples of the Concept of the ASIA Syndrome - PMC
Diagnostic criteria for the ASIA syndrome and the five classical examples of this condition. (SIIS: silicone implant incompatibility ...
Read more >
BRg - River Thames Conditions
Tanker jacket for sale, Llvm function calling convention, Postcode shiraz 2009, ... Movimientos morfogeneticos migracion, Gmers sola nri merit list 2015, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found