Giter Club home page Giter Club logo

Comments (9)

astashov avatar astashov commented on June 5, 2024

Hmm... really strange... Could you open ~/.vim/plugin/ruby_debugger.vim and try to find this function (/send_message_to_debugger). Can you find it?

from vim-ruby-debugger.

fwoeck avatar fwoeck commented on June 5, 2024

Yes, it's there:
function! s:send_message_to_debugger(message) ...

from vim-ruby-debugger.

astashov avatar astashov commented on June 5, 2024

Do other features work correctly? (:Rdebugger, next/step/continue commands, set/remove breakpoints...)

from vim-ruby-debugger.

fwoeck avatar fwoeck commented on June 5, 2024

Yes, perfectly! I currently have no idea, how I could help you investigating the problem. Is there any log file place you now I could consult or so? Btw. I do this on a Ubuntu 9.04, this is my .vimrc: git://gist.github.com/123099.git , this is this .vim-tree: git://gist.github.com/123102.git, gvim is vim-gnome (2:7.2.079-1ubuntu5)

from vim-ruby-debugger.

astashov avatar astashov commented on June 5, 2024

Well, it is even more strange, because :Rdebugger and others use s:send_message_to_debugger too. Let me suggest some ways:

  1. In command mode, run ':scriptnames' and find SID of ruby_debugger.vim. E.g.:
26: /home/anton/.vim/plugin/ruby_debugger.vim
  • SID is 26
    Then execute send_message_to_debugger with SID instead of RdbCommand:
    :call 26_send_message_to_debugger('p User.count')
  • Find string in ~/.vim/plugin/ruby_debugger.vim
  let RubyDebugger.send_command = function ("s:send_message_to_debugger")

and change it to

  let RubyDebugger.send_command = function("<SID>send_message_to_debugger")

Then close and open Vim, run :Rdebugger and try :RdbCommand again.

Tell me if 1 or 2 is worked (or if no one :)). Thanks!

from vim-ruby-debugger.

fwoeck avatar fwoeck commented on June 5, 2024

Hi, the steps 1) and 2) didn't help, BUT, I disabled all plugins apart from your's and now it works. So there is probably a conflict with one of these:

   deleted:    plugin/CSApprox.vim
   deleted:    plugin/ColorSchemeMenuMaker.vim
   deleted:    plugin/ColorSchemes.vim
   deleted:    plugin/IndexedSearch.vim
   deleted:    plugin/NERDSnippets.vim
   deleted:    plugin/NERD_tree.vim
   deleted:    plugin/allml.vim
   deleted:    plugin/apidock.vim
   deleted:    plugin/bufexplorer.vim
   deleted:    plugin/camelcasemotion.vim
   deleted:    plugin/color_sample_pack.vim
   deleted:    plugin/endwise.vim
   deleted:    plugin/fuzzyfinder.vim
   deleted:    plugin/fuzzyfinder_textmate.vim
   deleted:    plugin/grep.vim
   deleted:    plugin/matchit.vim
   deleted:    plugin/pastie.vim
   deleted:    plugin/rails.vim
   deleted:    plugin/ruby_debugger_test.vim
   deleted:    plugin/surround.vim
   deleted:    plugin/tComment.vim
   deleted:    plugin/taglist.vim
   deleted:    plugin/themes.vim

I will re-enable them sequentially and post the results!

from vim-ruby-debugger.

fwoeck avatar fwoeck commented on June 5, 2024

It turned out, that everything works, if I delete ruby_debugger_test.vim from the plugins folder. Im unsure, if I wasn't supposed to install them both?

from vim-ruby-debugger.

astashov avatar astashov commented on June 5, 2024

Yeah, you need to remove one of them and leave only ruby_debugger.vim or ruby_debugger_test.vim (second file contains contents of ruby_debugger.vim + unit tests for the plugin). So, if you don't want to run unit tests, you can remove ruby_debugger_test.vim.

Thanks for this research, by the way :) ! I think I'll move out ruby_debugger_test.vim from vim directory.

from vim-ruby-debugger.

fwoeck avatar fwoeck commented on June 5, 2024

Oki, great - thank's a lot for your help!

from vim-ruby-debugger.

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.