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

eslisp 0.7.5 breaks eslisp-camelify and eslisp-propertify (and maybe eslisp-fancy-function) #50

Open
raymond-w-ko opened this issue May 4, 2017 · 5 comments
Labels

Comments

@raymond-w-ko
Copy link

Hello, I recently upgraded my project's dependencies and noticed this error when trying to compile *.esl files.

eslisp-camelify is checkout from the official Git repo.

It seems like something has changed, and this is no longer bound to the eslisp object, so that this.multi() fails because this is null?

git clean -fxd
npm install
make clean
make
make test 
node test.js
TAP version 13
# var
/home/rko/src/eslisp-camelify/node_modules/eslisp/lib/compile.js:189
        throw e;
        ^

TypeError: Error evaluating macro `camelify` (called at line 1, column 40): Cannot read property 'apply' of undefined
    at env.module.exports (/home/rko/src/eslisp-camelify/index.js:35:22)
    at /home/rko/src/eslisp-camelify/node_modules/eslisp/lib/compile.js:184:35
    at listToEstree (/home/rko/src/eslisp-camelify/node_modules/eslisp/lib/compile.js:191:6)
    at astToEstree (/home/rko/src/eslisp-camelify/node_modules/eslisp/lib/compile.js:250:25)
    at /home/rko/src/eslisp-camelify/node_modules/eslisp/lib/translate.js:36:14
    at /home/rko/src/eslisp-camelify/node_modules/prelude-ls/lib/List.js:158:21
    at /home/rko/src/eslisp-camelify/node_modules/prelude-ls/lib/List.js:161:4
    at /home/rko/src/eslisp-camelify/node_modules/prelude-ls/lib/List.js:665:42
    at module.exports (/home/rko/src/eslisp-camelify/node_modules/eslisp/lib/translate.js:37:7)
    at toEstree (/home/rko/src/eslisp-camelify/node_modules/eslisp/lib/index.js:9:10)
make: *** [makefile:12: test] Error 1
@raymond-w-ko
Copy link
Author

raymond-w-ko commented May 4, 2017

No, it is probably related to this commit where this.multi() was removed in favor of using JS Array.

eec8e6f

@raymond-w-ko
Copy link
Author

I've created pull requests to fix the two transforms

anko/eslisp-propertify#4
anko/eslisp-camelify#4

@raymond-w-ko
Copy link
Author

I don't personally use anko/eslisp-fancy-function but this may need a review after the two plugins are updated. It depends on those two.

@anko
Copy link
Owner

anko commented May 4, 2017

Thanks—I'll have a look tomorrow.

I really should put together a script that tests all packages on npm tagged eslisp-macro against current eslisp HEAD before I publish.

@anko anko changed the title eslisp 0.7.5 breaks eslisp-camelify and eslisp-propertify eslisp 0.7.5 breaks eslisp-camelify and eslisp-propertify (and maybe eslisp-fancy-function) May 5, 2017
@anko
Copy link
Owner

anko commented May 5, 2017

I merged your PRs anko/eslisp-camelify#4 and anko/eslisp-propertify#4, and released corresponding eslisp-camelify@0.4.0 and eslisp-propertify@0.3.0 with them. Thanks for your help! ✨

I'll leave this open for now, while I check how eslisp-fancy-function is doing.

@anko anko added the bug label May 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants