atom / language-ruby-on-rails

Ruby on Rails package for Atom
Other
48 stars 41 forks source link

highlight not working? #20

Closed fotanus closed 10 years ago

fotanus commented 10 years ago

Hello,

I installed this plugin but strangly it don't really highlight any methods. for example, this screenshot is from one of my models:

not highlighting

Note how the last method has exactly the same colors then the default rails methods.

Any idea of why this might be happening? My only action was to activate the plugin.

Thanks!

izuzak commented 10 years ago

I installed this plugin

@fotanus Which package did you install? The language-ruby-on-rails comes pre-installed with Atom so you don't need to install it. Did you install a different package perhaps?

Also, what language is specified in the status bar for that file (bottom left, next to the cursor position)? If it's not "Ruby on Rails", can you try changing it to "Ruby on Rails" manually with the grammar selector? You can open the grammar selector with ctrl-shift-L or from the command palette, search for "grammar".

fotanus commented 10 years ago

Hello,

Thanks for the prompt reply!

I have been using for some time when I noticed the highlight thing, so sorry if is a default package - I should had it installed along with atom!

But you got it, the problem is that the language was set to Ruby instead of Ruby on Rails.

Every new file I open after set the language as ruby on rails still in ruby. Maybe I'm starting atom in a way it can't identify it is a rails application? I simply type atom . on my rails directory.

Was it supposed to switch to ruby on rails programming language automatically?

fotanus commented 10 years ago

Hi,

I think it is some kind of conflict with Ruby language. If I disable ruby-language, I can see the highlights for the Rails keywords, but I lose all highlight for ruby (for example, the class and end keywords)

fotanus commented 10 years ago

Please ignore my last comments - I'm not quite sure what I did wrong. Now everything is opening as ruby on rails! :-)

Closing this noise.