GithubHelp home page GithubHelp logo

Comments (11)

gfowley avatar gfowley commented on August 17, 2024 1

FWIW this is no longer a problem for me with opal 0.11.3 and opal-rspec 0.7.0.rc.2.

from opal-rspec.

zw963 avatar zw963 commented on August 17, 2024

this is my spec example project url: https://github.com/zw963/opal_rspec_example

from opal-rspec.

elthariel avatar elthariel commented on August 17, 2024

Same problem here with phantomjs runner or directly in browser

from opal-rspec.

fazibear avatar fazibear commented on August 17, 2024

Same problem also with phantomjs: https://travis-ci.org/inesita-rb/inesita

from opal-rspec.

elia avatar elia commented on August 17, 2024

It's still WIP and very unstable, but some work has been done on the elia/master branch (see #74).

from opal-rspec.

fazibear avatar fazibear commented on August 17, 2024

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)```

from opal-rspec.

elia avatar elia commented on August 17, 2024

I'll close this, @fazibear ping me if you have repro instructions and I'll reopen.

from opal-rspec.

zw963 avatar zw963 commented on August 17, 2024

awesome, i will try it recent days, and will report here.

Thanks @elia !

from opal-rspec.

zw963 avatar zw963 commented on August 17, 2024

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 

from opal-rspec.

anharu2394 avatar anharu2394 commented on August 17, 2024

I have the same problem using headless chrome.

from opal-rspec.

anharu2394 avatar anharu2394 commented on August 17, 2024

Probably, to update Opal-Rspec to 0.7.1,
object.$respond_to? is not a function error doesn't occur.

from opal-rspec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.