Giter Site home page Giter Site logo

Comments (16)

drnic avatar drnic commented on July 30, 2024

I think this issue might be in TextMate's own Support/lib files.

This bug is from the line:

TextMate.exit_show_tool_tip("The ‘create partial from selection’ action works within view files only.")

Are you using TextMate version 1.5.9 (1589)? If not, turn on Cutting Edge and do an update. Did that help?

If not, raise a bug with TextMate itself. Not sure where that is. Perhaps start with ##textmate irc channel.

from ruby-on-rails-tmbundle.

Stefano1990 avatar Stefano1990 commented on July 30, 2024

I had the same problem. Turning on cutting edge did the trick for me. Thx, drnic.

from ruby-on-rails-tmbundle.

dmclark avatar dmclark commented on July 30, 2024

This may work in 10.5, bud for the life of me I cant get it to work in 10.6

i'm getting errors when trying to use comands from the rails bundle. likei:
/Library/Application Support/TextMate/Bundles/Ruby on
Rails.tmbundle/Support/bin/create_partial_from_selection.rb:17:
invalid multibyte char (US-ASCII)
/Library/Application Support/TextMate/Bundles/Ruby on
Rails.tmbundle/Support/bin/create_partial_from_selection.rb:17:
invalid multibyte char (US-ASCII)
/Library/Application Support/TextMate/Bundles/Ruby on
Rails.tmbundle/Support/bin/create_partial_from_selection.rb:17: syntax
error, unexpected $end, expecting ')'
...Mate.exit_show_tool_tip("The ‘create partial from selectio...
... ^

I am using latest edge, so
http://github.com/drnic/ruby-on-rails-tmbundle/issues/issue/14 isn't
it.

my ruby_path his /Users/Administrator/.rvm/bin/textmate_ruby

from ruby-on-rails-tmbundle.

Stefano1990 avatar Stefano1990 commented on July 30, 2024

if with 10.5 you are refering to the OS, I am running 10.6.4 and textmate 1.5.9.
And as I said, edge did it for me.

from ruby-on-rails-tmbundle.

dmclark avatar dmclark commented on July 30, 2024

yes, I did mean os 10.6.4. I made that distinction because the original poster had "Mac OS 10.5.8"

this is driving me nuts - any ideas?

from ruby-on-rails-tmbundle.

jmonster avatar jmonster commented on July 30, 2024

For me, this problem was caused by the TM_RUBY variable (for use with RVM). I just removed it for now...

from ruby-on-rails-tmbundle.

dmclark avatar dmclark commented on July 30, 2024

thanks jmonster, that did the trick

from ruby-on-rails-tmbundle.

jmonster avatar jmonster commented on July 30, 2024

I haven't tried it, but I just noticed that http://rvm.beginrescueend.com/integration/textmate/ states that you need version >= 0.1.45 for proper TextMate compatibility. I was running 0.1.43; my guess is you have an older version too? The TM_RUBY variable is probably ok once you update.

from ruby-on-rails-tmbundle.

justinperkins avatar justinperkins commented on July 30, 2024

I am running ruby 1.9.2p0 (no rvm) and getting this error as well. I thought it was because the encoding declaration was missing from the ruby files in /Support/bin but that didn't fix the issue for me. I have cutting edge TM turned on and am running the latest (1.5.9 (1589)).

from ruby-on-rails-tmbundle.

dan-dyomo avatar dan-dyomo commented on July 30, 2024

Hi, I'm having a problem with Create Partial from Selection as well.

The error message I'm seeing (which appears where my selected text used to be) is:

/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:in to_plist': An object in the argument tree could not be converted (ArgumentError) from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:inrequest_string_core'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:193:in request_string' from /Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/bin/create_partial_from_selection.rb:23:in

'

I'm running rvm 1.0.5 set for ruby 1.9.2. I've followed all the instructions here and in the rvm textmate integration page.

I'm guessing that the problem is that I'm not running the right version of textmate. The release I'm running is 1.5.9 (1510). I've tried to use the update feature, but I'm getting a 500 error. Any suggestions?

from ruby-on-rails-tmbundle.

JerryWho avatar JerryWho commented on July 30, 2024

I tried it with TM_RUBY and setting it to different versions of rubies via rvm.
(rvm wrapper VERSION textmate see http://rvm.beginrescueend.com/integration/textmate/)

As I can see everything is okay, when using ruby 1.8.7. Just when using ruby 1.9.x the error occurs.

from ruby-on-rails-tmbundle.

armanddp avatar armanddp commented on July 30, 2024

@dan-dyomo the following article was a life saver for me getting around the errors you getting : http://gnuu.org/2009/05/25/getting-gittmbundle-working-with-ruby19/

from ruby-on-rails-tmbundle.

justinperkins avatar justinperkins commented on July 30, 2024

Several of the rails-y partials in this bundle have multibyte characters, such as ellipsis, but the encoding is not correctly specified. See Support/app/views/annotate/_content.html.erb

from ruby-on-rails-tmbundle.

justinperkins avatar justinperkins commented on July 30, 2024

Sorry guys, commented on the wrong bundle. My last comment was intended for the git bundle.

from ruby-on-rails-tmbundle.

b-mandelbrot avatar b-mandelbrot commented on July 30, 2024

Yes. I used rvm wrapper ruby-1.8.7@foobar textmate ! works fine to me! The problem is ruby 1.9.2 i think.

from ruby-on-rails-tmbundle.

Bodacious avatar Bodacious commented on July 30, 2024

Hi all

I'm still seeing this error in 1.9.2

What's the latest on this issue?

Thanks

from ruby-on-rails-tmbundle.

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.