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

Windows 7 Issue- undefined method `attach_function' for Spoon:Module (NoMethod Error) #17

Closed
edubkendo opened this issue Dec 2, 2014 · 10 comments
Milestone

Comments

@edubkendo
Copy link

@headius I got a report on rsense that appears to be an spoon error:

rsense/rsense#36

Any ideas about it?

@maiteko
Copy link

maiteko commented Jun 27, 2015

I've been messing around with this. I got past the initial spoon error by adding "ffi_lib 'MSVCRT'" above attach_function :_spawnve.

MSVCRT is the dll where those functions are defined.

@jonyeezs
Copy link

jonyeezs commented Nov 6, 2015

It looks like the way spoon handles windows is very different from a unix.
rsense still try uses the methods a unix spoon would have but windows option doesn't

@ghost
Copy link

ghost commented Apr 26, 2016

Has anyone found a fix yet? I want to use RSense with Atom but it's impossible without this.

@jonyeezs
Copy link

@sanekfta, it looks like @agross might have a fix for that. Thanks for bumping this issue. Why don't you give it a try on your local and see if it works. I'll do the same when i get to it 😁

@headius
Copy link
Owner

headius commented Apr 29, 2016

@jonyeezs @sanekfta If one of you can verify @agross's PR I'd be happy to merge it and get a release out!

@ghost
Copy link

ghost commented May 2, 2016

@headius Doesn't seem to work for me. But the error message has changed, now it looks like this:
C:/Ruby22/lib/ruby/gems/2.2.0/gems/rsense-0.5.18/lib/rsense/client/runner.rb:112:in start': uninitialized constant Spoon::FileActions (NameError) from C:/Ruby22/lib/ruby/gems/2.2.0/gems/rsense-0.5.18/bin/rsense:12:in<top (required)>'
from C:/Ruby22/bin/rsense:23:in load' from C:/Ruby22/bin/rsense:23:in

'

@headius
Copy link
Owner

headius commented May 2, 2016

@sanekfta rsense is using an API that's only available in the Unix version of Spoon, it appears. There's no Spoon::FileActions in the Windows version, but it may be possible to add?

@headius
Copy link
Owner

headius commented Sep 6, 2016

Fixed in 0.0.5. Sorry for the epic delay on this one.

@elliotcm
Copy link

@headius Sorry to say the FFI fix from @agross didn't resolve this issue on Windows.

@ChrislyBear-GH
Copy link

No fix yet, but this issue has been closed? Seriously?

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

No branches or pull requests

6 participants