davidmarkclements / 0x

🔥 single-command flamegraph profiling 🔥

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid regular expression & Syntax Error

Zayelion opened this issue · comments

Windows 7
Running in VS code CMD terminal
Node 8.5.0

Process exited, generating flamegraphbufferSyntaxError:
Invalid regular expression: / C:\d+:\d+| x86)\\Nodist\\bin\\node_modules\\0x\\lib\\random-require\.js:\d+:\d+| module\.js:\d+:\d+| internal/module\.js:\d+:\d+| x86)\\Nodist\\bin\\node_modules\\0x\\lib\\loading-stacks\.js:\d+:\d+| bootstrap_node\.js:\d+:\d+$
/: Unmatched ')'
    at RegExp (<anonymous>)
    at ticksToTree (C:\Program Files (x86)\Nodist\bin\node_modules\0x\lib\ticks-to-tree.js:41:18)
    at render (C:\Program Files (x86)\Nodist\bin\node_modules\0x\lib\render.js:19:17)
    at generateFlamegraph (C:\Program Files (x86)\Nodist\bin\node_modules\0x\index.js:95:22)
    at zeroEks (C:\Program Files (x86)\Nodist\bin\node_modules\0x\index.js:59:18)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
Terminate batch job (Y/N)?

Thanks for reporting!

I think Node 8.5.0 has a bug, everything is working as expected in Node 8.12. Would you mind updating?

Actually this is a bug and broken in latest 0x. I'll get a fix soon.

Thank you for your quick response. With node 8.12 issue persist.