Closed zw963 closed 6 years ago
this is my spec example project url: https://github.com/zw963/opal_rspec_example
Same problem here with phantomjs runner or directly in browser
Same problem also with phantomjs: https://travis-ci.org/inesita-rb/inesita
It's still WIP and very unstable, but some work has been done on the elia/master
branch (see https://github.com/opal/opal-rspec/pull/74).
Tried to use 0.7.0rc2
but with no luck:
/tmp/opal-nodejs-runner-20180818-5161-1il32su:292
if (value.$$is_a_module) {
^
TypeError: Cannot read property '$$is_a_module' of undefined
at Object.Opal.const_set (/tmp/opal-nodejs-runner-20180818-5161-1il32su:292:15)
at /tmp/opal-nodejs-runner-20180818-5161-1il32su:64190:12
at /tmp/opal-nodejs-runner-20180818-5161-1il32su:64249:7
at Opal.modules.inesita/browser (/tmp/opal-nodejs-runner-20180818-5161-1il32su:64250:5)
at Object.Opal.load (/tmp/opal-nodejs-runner-20180818-5161-1il32su:2192:7)
at Object_alloc.Opal.require [as $require] (/tmp/opal-nodejs-runner-20180818-5161-1il32su:2216:17)
at Opal.modules.inesita (/tmp/opal-nodejs-runner-20180818-5161-1il32su:64699:8)
at Object.Opal.load (/tmp/opal-nodejs-runner-20180818-5161-1il32su:2192:7)
at Object_alloc.Opal.require [as $require] (/tmp/opal-nodejs-runner-20180818-5161-1il32su:2216:17)
at Opal.modules.spec_helper (/tmp/opal-nodejs-runner-20180818-5161-1il32su:64716:15)```
FWIW this is no longer a problem for me with opal 0.11.3 and opal-rspec 0.7.0.rc.2.
I'll close this, @fazibear ping me if you have repro instructions and I'll reopen.
awesome, i will try it recent days, and will report here.
Thanks @elia !
Hi, It seem like still not worked for me (maybe some low level error happen here ..., i leave opal almost one year ...)
╭─ 14:05 zw963 ⮀ ~/Project/opal/update_to_0.11_not_success/opal_rspec_example ⮀ ⭠ (d40b1f2) master *+ ➦ ruby-2.3.3@opal_rspec_example
╰─ $ bundle exec rake
Connecting to localhost:9222...
/usr/lib64/chromium/chromium --headless --disable-gpu --remote-debugging-port=9222
Connecting to localhost:9222...
Connecting to localhost:9222...
[1111/140629.286066:ERROR:gpu_process_transport_factory.cc(980)] Lost UI shared context.
DevTools listening on ws://127.0.0.1:9222/devtools/browser/109eac29-fdda-4923-a624-df66bf838c9b
Connecting to localhost:9222...
Object freezing is not supported by Opal
WARNING: Unable to find ~/.rspec because the HOME environment variable is not set. Called from .
undefined : object.$respond_to? is not a function
at coerce_to (file:///tmp/chrome-opal.js:2330:40)
at exit (file:///tmp/chrome-opal.js:4104:59)
at call (file:///tmp/chrome-opal.js:18126:25)
╭─ 14:06 zw963 ⮀ ~/Project/opal/update_to_0.11_not_success/opal_rspec_example ⮀ ⭠ (d40b1f2) master *+ ➦ ruby-2.3.3@opal_rspec_example
╰─ $ /usr/lib64/chromium/chromium --version
Chromium 70.0.3538.77
I have the same problem using headless chrome.
Probably, to update Opal-Rspec to 0.7.1
,
object.$respond_to? is not a function
error doesn't occur.
Following spec is worked with 0.10.5 on
phantomjs
, but when swtich to 0.11.0,when run
rake
command in command line, got following error message:After change runner to headless chrome. (headless chrome is worked with hello world),
Still got following error: