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

Cannot install appmetrics with Node.js v12 on MacOS #572

Closed
yuecchen opened this issue Apr 25, 2019 · 8 comments
Closed

Cannot install appmetrics with Node.js v12 on MacOS #572

yuecchen opened this issue Apr 25, 2019 · 8 comments
Assignees

Comments

@yuecchen
Copy link
Contributor

With Node.js v12, run npm install appmetrics, we got some error while compile:

Release/obj.target/appmetrics/geni/appmetrics.cpp:665:52: error: no matching
      member function for call to 'ToObject'
            Local<Value> gpfilename = grandparent->ToObject()->Get(Nan::...
                                      ~~~~~~~~~~~~~^~~~~~~~
/Users/yuecchen/.node-gyp/12.0.0/include/node/v8.h:2532:44: note: candidate
      function not viable: requires single argument 'context', but no arguments
      were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(

and

../src/plugins/node/prof/compat-inl.h:302:19: error: no member named
      'GetCpuProfiler' in 'v8::Isolate'
  return isolate->GetCpuProfiler()->StartProfiling(title, record_samples);
         ~~~~~~~  ^
../src/plugins/node/prof/compat-inl.h:312:19: error: no member named
      'GetCpuProfiler' in 'v8::Isolate'
  return isolate->GetCpuProfiler()->StopProfiling(title);
         ~~~~~~~  ^

here is the install log:
2018-11-28T14_57_12_372Z-debug.log

@yuecchen yuecchen changed the title Node.js v12 support Cannot install appmetrics with Node.js v12 Apr 25, 2019
@yuecchen yuecchen changed the title Cannot install appmetrics with Node.js v12 Cannot install appmetrics with Node.js v12 on MacOS Apr 26, 2019
@rwalle61 rwalle61 self-assigned this May 16, 2019
@rwalle61
Copy link
Contributor

rwalle61 commented May 16, 2019

@yuecchen thanks for opening the issue, I'm working on it now.

Progress:

  • recreate
  • get Node 12 compiling
  • get tests passing for Node 12
  • check Node 10 still compiles
  • check Node 10 still passes tests
  • check Node 8 still compiles
  • check Node 8 still passes tests
  • raise PR
  • implement review suggestions
  • get Travis working
  • merge
  • raise issues for future work
  • legals
  • release new major version (as this removes support for Node 6)

Update: #576 is passing Travis on Mac and Linux, for Node 8, 10, and 12

@rwalle61
Copy link
Contributor

Update: #576 has been merged!

@rwalle61
Copy link
Contributor

@yuecchen can you pull Appmetrics 5.0.0 and see if you can install on Node 12?

@rwalle61
Copy link
Contributor

rwalle61 commented Jun 5, 2019

As you closed #573, I assume this is safe to close too

@rwalle61 rwalle61 closed this as completed Jun 5, 2019
@nithil
Copy link

nithil commented Nov 4, 2019

This is not working on v12.13, also tried on v12.6

@mattcolegate
Copy link
Member

@n1th1l Our Travis test for Appmetrics 5.1.1 on Node 12.13 on MacOS passed cleanly: https://travis-ci.org/RuntimeTools/appmetrics/jobs/606748803?utm_medium=notification&utm_source=github_status
Can you provide some more detail on the problems you are seeing please?

@tmkasun
Copy link

tmkasun commented Oct 6, 2020

I tried to install appmetrics on node v12.18.3 in mac catalina, It's not working. getting bunch of

error: no matching
      member function for call to 'ToObject'

errors

@mattcolegate
Copy link
Member

@tmkasun Our latest Travis test for Appmetrics 5.1.1 on Node 12.18.4 failed in the test stage but did pass installation: https://travis-ci.org/github/RuntimeTools/appmetrics/jobs/733041231

Can you provide the entire log output for the installation attempt please?

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

5 participants