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

ndts is failing #46

Closed
dasa opened this issue Dec 12, 2016 · 5 comments
Closed

ndts is failing #46

dasa opened this issue Dec 12, 2016 · 5 comments

Comments

@dasa
Copy link
Contributor

dasa commented Dec 12, 2016

I've installed nbind-example-minimal and npm test works, but I get this error when I run npm run -- ndts .

/Users/dasa/Projects/nbind/nbind-example-minimal/node_modules/nbind/dist/reflect.js:144
        this.globalScope.methodList.sort(compareName);
                        ^

TypeError: Cannot read property 'methodList' of undefined
    at new Reflect (/Users/dasa/Projects/nbind/nbind-example-minimal/node_modules/nbind/dist/reflect.js:144:25)
    at Object.<anonymous> (/Users/dasa/Projects/nbind/nbind-example-minimal/node_modules/nbind/bin/ndts.js:6:15)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:420:7)
    at startup (bootstrap_node.js:139:9)
@dasa
Copy link
Contributor Author

dasa commented Dec 12, 2016

Here's my versions in case that makes a difference:

$ npm version
{ npm: '3.10.9',
  ares: '1.10.1-DEV',
  cldr: '30.0.2',
  http_parser: '2.7.0',
  icu: '58.1',
  modules: '51',
  node: '7.2.1',
  openssl: '1.0.2j',
  tz: '2016g',
  unicode: '9.0',
  uv: '1.10.1',
  v8: '5.4.500.44',
  zlib: '1.2.8' }

@jjrv
Copy link
Member

jjrv commented Dec 12, 2016

It seems to fail if there's no NBIND_GLOBAL block in the entire program. Now fixed in the develop branch, I still also need to fix some Windows issues from a previous commit.

@jjrv
Copy link
Member

jjrv commented Dec 12, 2016

As a workaround, you can add some dummy global function, if you need it to work on a released version of nbind. I probably won't get a new release out before Wednesday.

@dasa
Copy link
Contributor Author

dasa commented Dec 12, 2016

I probably won't get a new release out before Wednesday.

No problem, thanks!

@jjrv
Copy link
Member

jjrv commented Dec 20, 2016

This is now finally fixed in the latest release.

@jjrv jjrv closed this as completed Dec 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants