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

State.run failing on State instances #32

Closed
b-gran opened this Issue Jul 23, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@b-gran
Contributor

b-gran commented Jul 23, 2017

When using the prototype form of State.run: State.prototype.run (e.g. State.of('something').run('whatever')), the operation fails with a cryptic error message:

TypeError: k is not a function
 at Object.f (node_modules/akh.codensity/trans/codensity.js:24:32)
      at Object.module.exports.tail.module.exports.trampoline.f [as trampoline] (node_modules/akh.codensity/node_modules/akh.core.trampoline/index.js:21:23)
      at Function.spec.Monad.spec.Monoid.spec.Transformer.CodensityT.run (node_modules/akh.codensity/trans/codensity.js:60:11)
      at spec.Monad.spec.Monoid.spec.Transformer.Instance.run (node_modules/akh.codensity/trans/codensity.js:47:27)
      at Context.<anonymous> (tests/state.js:21:15)

State.prototype.run works fine when used from akh.state directly.

See PR #33 for a failing test

Verified the issues exists for the following node versions:

0.12
4.0.0
4.8.4
8.0.0
8.2.1
@mattbierner

This comment has been minimized.

Show comment
Hide comment
@mattbierner

mattbierner Jul 24, 2017

Owner

Thanks. I believe the root cause of this was an old version of the State package getting getting picked up. I just published 3.1.2 which should fix this

Owner

mattbierner commented Jul 24, 2017

Thanks. I believe the root cause of this was an old version of the State package getting getting picked up. I just published 3.1.2 which should fix this

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