#71 ✓invalid
Mario Zigliotto

"Create Partial from Selection" does not work

Reported by Mario Zigliotto | April 5th, 2009 @ 09:56 PM | in 0.3

Steps to reproduce:

  1. Open a rails project directory
  2. Open a view file
  3. Highlight some code 4, From menu; Bundles > Ruby on Rails > Erb Templates > Create Partial from Selection

Result:

Nothing happens. Looking in terminal output: /usr/bin/ruby1.8: No such file or directory -- /home/mario/Desktop/redcar/textmate/Bundles/D.tmbundle/Support/bin/create_partial_from_selection.rb (LoadError)

Other: mario@pumped:~/Desktop/redcar/textmate/Bundles/D.tmbundle$ ls Commands info.plist Preferences Snippets Syntaxes Templates Tests

It looks like the /Support directory and all it's subfolders are missing or maybe a typo? I installed from "latest" yesterday.

Comments and changes to this ticket

  • Mario Zigliotto

    Mario Zigliotto April 5th, 2009 @ 10:17 PM

    I should mention that i did find this: redcar/textmate/Bundles/Ruby on Rails.tmbundle/Support/bin/create_partial_from_selection.rb

  • Daniel Lucraft

    Daniel Lucraft April 6th, 2009 @ 06:50 AM

    • Tag changed from directory, erb, missing, partial, rails to bundle, rails
    • State changed from “new” to “open”

    Hmmm, looks like you've found yourself editing a document in the "D" grammar. You can change that with the combo box at the bottom right of the screen.

    But create_partial_from_selection doesn't work anyway, because we've not implemented various methods from textmate/support/textmate.rb

    shell command failed with error:
    /home/dan/Projects/redcar/textmate/Bundles/Ruby on     Rails.tmbundle/Support/lib/rails/text_mate.rb:54:in `method_missing': undefined method `filepath' for TextMate:Module (NoMethodError)
            from /home/dan/Projects/redcar/textmate/Bundles/Ruby on     Rails.tmbundle/Support/lib/rails/rails_path.rb:54:in `initialize'
            from /home/dan/Projects/redcar/textmate/Bundles/Ruby on Rails.tmbundle/Support/bin/create_partial_from_selection.rb:13:in `new'
            from /home/dan/Projects/redcar/textmate/Bundles/Ruby on Rails.tmbundle/Support/bin/create_partial_from_selection.rb:13
    
    
  • Mario Zigliotto

    Mario Zigliotto April 6th, 2009 @ 06:38 PM

    hmm... maybe my expectations were wrong because i thought that if i explicitly selected "Create Partial from Selection" from the RoR menu it would assume im in RoR.

  • Daniel Lucraft

    Daniel Lucraft April 7th, 2009 @ 02:17 PM

    • Milestone set to 0.2

    No, it should assume RoR. That is another bug. (That I thought I'd fixed, actually...)

  • Mario Zigliotto

    Mario Zigliotto April 7th, 2009 @ 10:35 PM

    Daniel,

    If you think it's worth it, i can log a new bug for that.

  • Daniel Lucraft

    Daniel Lucraft June 30th, 2009 @ 10:30 AM

    • Milestone changed from 0.2 to 0.3
  • Daniel Lucraft

    Daniel Lucraft November 24th, 2009 @ 03:04 PM

    • State changed from “open” to “invalid”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A programmer's text editor for Gnome.

People watching this ticket

Tags

Pages