Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 180370

Summary: %w{} array syntax rendred incorrectly
Product: [Technology] DLTK Reporter: Michael Klishin <michael.s.klishin>
Component: RubyAssignee: Mikhail Kalugin <mikhail.kalugin>
Status: RESOLVED WORKSFORME QA Contact:
Severity: critical    
Priority: P3    
Version: 0.95   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Bug Depends on:    
Bug Blocks: 197240    

Description Michael Klishin CLA 2007-04-01 09:14:19 EDT
Build ID: I20070323-1616

Steps To Reproduce:
1. Open up Ruby editor.
2. Enter the following code:
# Some metaprogramming to make it rock
    %w{app controllers models helpers views 
      specs spec_models spec_helpers spec_controllers spec_views spec_fixtures 
      tests fixtures unit_tests functional_tests integration_tests
      public stylesheets javascripts images}.each do |item|
        
        method_to_eval = <<-EO_METH
          def #{item}_dir_path
            resolve_path(:#{item})
          end
        EO_METH
        class_eval(method_to_eval) 
    end

3. See that %{w is swallowed (substituted with spaces) while TextMate shows the same file correctly.
Comment 1 Mikhail Kalugin CLA 2007-04-04 00:58:38 EDT
I've tried that code, everything is ok.
Comment 2 Eclipse Webmaster CLA 2007-07-29 09:22:14 EDT
Changing OS from Mac OS to Mac OS X as per bug 185991
Comment 3 Andrey Platov CLA 2008-05-26 02:49:51 EDT
bulk change: fixed in 0.95