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

problem with daru-view and IRuby , ffi-rzmq #155

Open
mb52089 opened this issue Mar 13, 2020 · 16 comments
Open

problem with daru-view and IRuby , ffi-rzmq #155

mb52089 opened this issue Mar 13, 2020 · 16 comments

Comments

@mb52089
Copy link

mb52089 commented Mar 13, 2020

When IRuby and ffii-rzmq gems are installed, Daru-view creates an issue when loading the rails server whereby cannot load such file -- daru-view (LoadError).

Daru-view without IRuby works. IRuby without Daru-view works. But together they don't work.

Thoughts?

@mb52089
Copy link
Author

mb52089 commented Mar 14, 2020

When trying to load the rails console when Daru-view and IRuby gems are both in the gemfile, IRuby fails:

/Users/michaelburke/.rvm/gems/ruby-2.6.5@copient_health_rails6/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in `block in load_missing_constant': uninitialized constant IRuby::Utils (NameError)

Daru-view does work in the Iruby notebook though. I just can't get rails server or console to run along with it.....

@lokeshh
Copy link
Member

lokeshh commented Mar 15, 2020

@mb52089 Could you share the complete error log? You can post the log at http://gist.github.com/ and share the link here.

@mb52089
Copy link
Author

mb52089 commented Mar 15, 2020 via email

@Shekharrajak
Copy link
Member

@Shekharrajak
Copy link
Member

It looks like we should require the IRuby util when it is needed IRuby.html in any method.

@Shekharrajak
Copy link
Member

@Prakriti-nith any thoughts ?

@mb52089
Copy link
Author

mb52089 commented Mar 21, 2020 via email

@Shekharrajak
Copy link
Member

Shekharrajak commented Mar 21, 2020

@mb52089 , please let me know which ruby and ROR version you are using. I am looking into it. let me know if you can paste the code snippet as well or it is coming on rails server itself.

@Shekharrajak
Copy link
Member

Our demo version of rails is present in this repo: https://github.com/Shekharrajak/demo_daru-view, you may check the gemfile and other configuration once.

@Shekharrajak
Copy link
Member

@mb52089 , I am not able to reproduce it. I am seeing rails server is running perfectly with Ruby 2.53, 'rails', '~> 5.1.1' for all the rails examples present in https://github.com/Shekharrajak/demo_daru-view

@Shekharrajak
Copy link
Member

Simple solution could be: using rbenv install a ruby version and use it for running the rails server - (so basically there will not be any IRuby installed), so this error should not come.

@mb52089
Copy link
Author

mb52089 commented Mar 21, 2020 via email

@Shekharrajak
Copy link
Member

@mb52089
Copy link
Author

mb52089 commented Mar 23, 2020 via email

@Shekharrajak
Copy link
Member

Okay! Understool. I am not sure your usecase. But why do we need IRuby gem to be installed when we are using rails server ?

Let me try it in newer rails version.

@mb52089
Copy link
Author

mb52089 commented Apr 4, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants