Comments (5)
I think the issue has to deal with the fact that we've loaded the library in memory when we run rake build
in the parent project.
Might be able to fix this by not loading the entire application when our rake build
happens, but the default Rakefile
looks like this:
require_relative 'config/application'
Rails.application.load_tasks
so that might be rather difficult...
You can see that native.so
is loaded by printing out $"
after the ParentBuildTask#build
loop.
from helix.
Issue is with copy_native
. We copy over the native library when it's already loaded.
from helix.
Ah interesting, we've done a lot of our active testing on macOS which behaves a bit differently in this area. Probably the solution would be to detect the rake build
happening and avoid loading the native extension in this case, if that is feasible.
from helix.
is there a temporary workaround that doesnt involve rebuilding everything? my rust crate is rather large
from helix.
Confirmed on Ruby 2.2, Rails 3.2 on Debian Jessie.
from helix.
Related Issues (20)
- Classes require cloneable fields HOT 1
- Incorrect semicolon after class definition results in "Unknonw parser state" HOT 1
- Declaring lifetimes in Helix class structs? HOT 1
- Add Proc coercions
- Consider implicit coercions, e.g. `to_str` for String HOT 2
- Support for Rust's Generics
- Attempting to build a project when Rust isn't installed fails silently
- Unclear how to use rust based gems in other projects
- helix_runtime/libcruby-sys 1.0
- Forum or IRC channel HOT 2
- Coercions for Rust structs and Ruby hashes HOT 2
- Encoding error when requiring native.so HOT 4
- Activity Status HOT 4
- Re-try Changes in #148
- Investigate the safety of using `rb_raise`
- What is Helix doing that affects performance so much? HOT 9
- Getting symbol not found _HELIX_Qnil HOT 1
- warning: use of deprecated item 'try': use the `?` operator instead HOT 1
- Confusing example / importing Rust libs in Ruby/Rails
- undefined method `exists?' for File:Class
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helix.