Giter VIP home page Giter VIP logo

rsense's Introduction

DESCRIPTION

Redcar Plugin for RSense
Using RSense, this plugin provides highly precise code completion for Ruby.

INSTALLATION

Requires Java Runtime Environment 1.5 or later. SunJDK and OpenJDK are supported

Installation on HEAD
    cd into ~/.redcar/plugins
    git clone git://github.com/Samsinite/rsense.git
Installation on gem version
   cd into ~/.redcar/plugins
   git clone git://github.com/Samsinite/rsense.git
   cd rsense
   git checkout --track -b lmod origin/redcar_3.5

USAGE

Ctrl + / (Linux/Win/Osx)

Or change the key-binding using the RSense menu under plugins

rsense's People

Contributors

samsinite avatar sundbp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rsense's Issues

Could not find the main class: org.cx4a.rsense.Main. Program will exit.

First error was this:

#<Redcar::ApplicationSWT::Treebook:0x1578426>#<Redcar::ApplicationSWT::Treebook:0x1578426>#<Redcar::ApplicationSWT::Treebook:0x1578426>no .rsense file detected, creating .rsense file
/bin/sh: cannot create /home/gatis/Apps/jruby-1.5.0/lib/ruby/gems/1.8/gems/redcar-0.8.1/plugins/rsense/.rsense: Directory nonexistent start time: 12.728

Then I created the mssing directory, but then I got next error:

#<Redcar::ApplicationSWT::Treebook:0x1885088>#<Redcar::ApplicationSWT::Treebook:0x1885088>#<Redcar::ApplicationSWT::Treebook:0x1885088>start time: 5.737
Couldnt find Setting class for textmate setting: spellchecking
Couldnt find Setting class for textmate setting: spellchecking
indent setting without scope! #<Redcar::Textmate::UnIndentedLinePatternSetting:0xe5f01b @plist="^\\s*$", @scope=nil>
==> RSense: line_str: "". length: 3
==> RSense: line_end_length: 0
==> RSense: prefix:  length: 0
==> RSense: prefix_start_offset: 3
==> RSense: cursor_offset: 33
==> RSense: cursor_line_offset: 3
==> RSense: cursor_line_end_offset: 34
==> RSense: new_line_length: 1
==> RSense: deleted_section: 
==> RSense: command: code-completion '--file=/home/gatis/Code/ruby/bench.rb~' '--location=4:3' '--prefix='
Exception in thread "main" java.lang.NoClassDefFoundError: org/cx4a/rsense/Main
Caused by: java.lang.ClassNotFoundException: org.cx4a.rsense.Main
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.cx4a.rsense.Main. Program will exit.
==> RSense: line_str: "". length: 3
==> RSense: line_end_length: 0
==> RSense: prefix:  length: 0
==> RSense: prefix_start_offset: 3
==> RSense: cursor_offset: 33
==> RSense: cursor_line_offset: 3
==> RSense: cursor_line_end_offset: 34
==> RSense: new_line_length: 1
==> RSense: deleted_section: 
==> RSense: command: code-completion '--file=/home/gatis/Code/ruby/bench.rb~' '--location=4:3' '--prefix='
Error in command Redcar::RSense::CodeCompleteCommand
Errno::EPIPE: Broken pipe - Broken pipe
/home/gatis/.redcar/plugins/rsense/lib/rsense.rb:278:in `get_completions'
/home/gatis/.redcar/plugins/rsense/lib/rsense.rb:241:in `execute'
/home/gatis/Apps/jruby-1.5.0/lib/ruby/gems/1.8/gems/redcar-0.8.1/plugins/application/lib/application/command/executor.rb:29:in `execute'
/home/gatis/Apps/jruby-1.5.0/lib/ruby/gems/1.8/gems/redcar-0.8.1/plugins/application/lib/application/command.rb:83:in `run'
/home/gatis/Apps/jruby-1.5.0/lib/ruby/gems/1.8/gems/redcar-0.8.1/plugins/application/lib/application/menu/item.rb:45:in `selected'
/home/gatis/Apps/jruby-1.5.0/lib/ruby/gems/1.8/gems/redcar-0.8.1/plugins/application_swt/lib/application_swt/menu.rb:133:in `widgetSelected'
/home/gatis/Apps/jruby-1.5.0/lib/ruby/gems/1.8/gems/redcar-0.8.1/plugins/swt/lib/swt/event_loop.rb:13:in `start'
/home/gatis/Apps/jruby-1.5.0/lib/ruby/gems/1.8/gems/redcar-0.8.1/plugins/core/lib/core/gui.rb:39:in `start'
/home/gatis/Apps/jruby-1.5.0/lib/ruby/gems/1.8/gems/redcar-0.8.1/lib/redcar.rb:180:in `pump'
/home/gatis/Apps/jruby-1.5.0/lib/ruby/gems/1.8/gems/redcar-0.8.1/bin/redcar:30
/home/gatis/Apps/jruby-1.5.0/lib/ruby/gems/1.8/gems/redcar-0.8.1/bin/redcar:19:in `load'

I have redcar on Ubuntu, then I folowed rsence install steps.

Rsense fails on startup

no .rsense file detected, creating .rsense file
/bin/sh: cannot create /home/steven/.rvm/gems/ruby-1.9.2-head/gems/redcar-0.3.8.1/plugins/rsense/.rsense: Directory nonexistent

Error in command Redcar::RSense::CodeCompleteCommand

I'm using redcar gem version
i've java 1.6 installed

i downloaded your plugin and checked out the lmod branch but I get this error:

Error in command Redcar::RSense::CodeCompleteCommand
Errno::EPIPE: Broken pipe - Broken pipe
/home/tha/.redcar/plugins/rsense/lib/rsense.rb:278:in get_completions' /home/tha/.redcar/plugins/rsense/lib/rsense.rb:241:inexecute'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/redcar-0.7/plugins/application/lib/application/command/executor.rb:29:in execute' /usr/local/rvm/gems/ruby-1.9.1-p378/gems/redcar-0.7/plugins/application/lib/application/command.rb:83:inrun'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/redcar-0.7/plugins/application/lib/application/menu/item.rb:45:in selected' /usr/local/rvm/gems/ruby-1.9.1-p378/gems/redcar-0.7/plugins/application_swt/lib/application_swt/menu.rb:133:inwidgetSelected'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/redcar-0.7/plugins/swt/lib/swt/event_loop.rb:13:in start' /usr/local/rvm/gems/ruby-1.9.1-p378/gems/redcar-0.7/plugins/core/lib/core/gui.rb:39:instart'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/redcar-0.7/lib/redcar.rb:180:in `pump'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/redcar-0.7/bin/redcar:30

I'm using rvm

redcar seems to work proper but I'm a redcar n00b so maybe this is just a stupid question

thanks in advance for you help!

Ghedamat

Rails project not detected

I'm not entirely sure whether this is a real bug. I'm trying the rsense plugin with a Rails app. Yet since rsense is invoked with a correct "--detect-project" argument, I'd expect it to find something when a model User with methods exists and I try to complete something like:

user = User.new
user.[Ctrl-/]

However, rsense simply goes "error: superclass not found: User". Any way to make this work or is this a rsense limitation?

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.