Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hubot Update #251

Open
drkno opened this issue Apr 16, 2017 · 4 comments
Open

hubot Update #251

drkno opened this issue Apr 16, 2017 · 4 comments

Comments

@drkno
Copy link
Member

drkno commented Apr 16, 2017

Since initial hubot support was implemented, many features such as middleware have been introduced in Concierge. The equivilant features have sub-optimal implementations within the hubot loader which could be replaced with their new Concierge counterparts.

  • Middleware
  • Catch all
  • Before
  • After
  • Events
  • Help
@p0358
Copy link
Member

p0358 commented Jul 12, 2017

I'll add this to here:

debug: TypeError: Instance is not a constructor
    at Robot.load (/var/www/Concierge/core/modules/hubot/robot.js:389:75)
    at /var/www/Concierge/core/modules/modules.js:161:40
    at undefined.next (native)
    at step (/var/www/Concierge/core/modules/modules.js:1:260)
    at /var/www/Concierge/core/modules/modules.js:1:420

@drkno
Copy link
Member Author

drkno commented Jul 12, 2017

What hubot script caused this error? I've seen it before but haven't had time to investigate. The majority of hubot scripts should at least load, even if they don't function fully.

@p0358
Copy link
Member

p0358 commented Jul 12, 2017

I can't really tell, I tried disabling them all and enabling one by one using kpm to quickly test now, but none gave the error during loading, but hubot-speed-test was giving kpm's response that it couldn't get loaded, even though I got info message above it that it was loaded.
I'll later clone a fresh Concierge and copy each module one after another to test it.

@drkno
Copy link
Member Author

drkno commented Jul 12, 2017

Interesting, that would be a regression if kpm was saying that something loaded when it didn't. Note that if you are copying modules across to the latest clone, ensure modules like kpm are up-to-date first. As much as I tried to ensure there were not many breaking changes some backwards incompatibilities in #270 were unavoidable.

As a side note, now that loading is async we need to add a way to work out which loading succeeded/failed message belongs with which module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants