These are chat archives for Glavin001/atom-beautify

5th
Nov 2014
Alex Wait
@bobber205
Nov 05 2014 18:24
I'm trying to use atom-beautify to format ruby. I installed rbeautify and used which to get the path of the gem and pasted it into the right spot in the config screen. Restarted atom. Now getting "Could not find 'ruby-beautify' (>= 0) "
```ruby
Could not find 'ruby-beautify' (>= 0)
sorry, new to this chat system :P
Could not find 'ruby-beautify' (>= 0)
there we go :D
@bobber205 so your ruby_rbeautify_path is set in the package settings?
Glavin Wiechert
@Glavin001
Nov 05 2014 18:28
I notice that I prefix the command with ruby
Thanks
could you run in your Terminal:
ruby /Users/alexwait/…./bin/rbeautify and see what it says>
(filling in your path, of course)
Looks like you are doing everyting right so far :+1: let’s see if that above works
Alex Wait
@bobber205
Nov 05 2014 18:30
so far hasn't said anything, looks like it's looking for input?
Glavin Wiechert
@Glavin001
Nov 05 2014 18:30
ok
so that’s good
Alex Wait
@bobber205
Nov 05 2014 18:30
yeah :D
Glavin Wiechert
@Glavin001
Nov 05 2014 18:30
But strange that it’s not working on Atom Beautify
Alex Wait
@bobber205
Nov 05 2014 18:30
I've run rbeautify on some files manually and it's worked
Glavin Wiechert
@Glavin001
Nov 05 2014 18:30
Could you create and issue and we can discuss more there.
Alex Wait
@bobber205
Nov 05 2014 18:30
figured I'd might be able to repo it there
sure!
Glavin001/atom-beautify#137
Glavin Wiechert
@Glavin001
Nov 05 2014 18:32
Would you be confortable editing some of the package’s code on your end for testing?
rbeautify_path
Alex Wait
@bobber205
Nov 05 2014 18:32
sure thing
Glavin Wiechert
@Glavin001
Nov 05 2014 18:32
sorry, this link
If you could add a console.log
Alex Wait
@bobber205
Nov 05 2014 18:33
so to modify ap ackage, I do "open in atom", do the changes, then restart atom?
Glavin Wiechert
@Glavin001
Nov 05 2014 18:33
so before if path add the line console.log(“rbeautify path”, path)
Just use View->Reload
Opening in dev mode is not necessary
Alex Wait
@bobber205
Nov 05 2014 18:35
/Users/alexwait/.atom/packages/atom-beautify/lib/langs/ruby-beautify.coffee:12 console.log(“rbeautify(path”, path)); ^ Unexpected token ILLEGAL
Glavin Wiechert
@Glavin001
Nov 05 2014 18:35
no ;
coffeescript
:)
Alex Wait
@bobber205
Nov 05 2014 18:35
yeah I deleted it
did reload
still thinks its there
Glavin Wiechert
@Glavin001
Nov 05 2014 18:35
haha awesome, silly atom
Alex Wait
@bobber205
Nov 05 2014 18:35
restarting atom
Glavin Wiechert
@Glavin001
Nov 05 2014 18:35
Yeah
probably best then
Alex Wait
@bobber205
Nov 05 2014 18:36
... still there :\
Glavin Wiechert
@Glavin001
Nov 05 2014 18:36
Reload works for me, but Atom’s caching modules sometimes screws stuff like that up
oh
extgra )
?
extra*
console.log(“rbeautify(path”, path))
should be
console.log(“rbeautify_path”, path)
Alex Wait
@bobber205
Nov 05 2014 18:37
```coffee
getCmd = (inputPath, outputPath, options) ->
  path = options.rbeautify_path # jshint ignore: line
  console.log(“rbeautify path”, path)
is what I have
Glavin Wiechert
@Glavin001
Nov 05 2014 18:37
ok looks good
Alex Wait
@bobber205
Nov 05 2014 18:38
still sees a semicolon
Glavin Wiechert
@Glavin001
Nov 05 2014 18:39
those “ "
did you copy and paste? or type out
Alex Wait
@bobber205
Nov 05 2014 18:40
paste
Glavin Wiechert
@Glavin001
Nov 05 2014 18:40
aww
font issue maybe
Alex Wait
@bobber205
Nov 05 2014 18:40
omg
Glavin Wiechert
@Glavin001
Nov 05 2014 18:40
can you delete
Alex Wait
@bobber205
Nov 05 2014 18:40
so sorry
Glavin Wiechert
@Glavin001
Nov 05 2014 18:40
and retype?
Alex Wait
@bobber205
Nov 05 2014 18:40
ya
Glavin Wiechert
@Glavin001
Nov 05 2014 18:40
What happened?
Was that it?
Alex Wait
@bobber205
Nov 05 2014 18:40
I totally didn't see it was syntax coloring the string
should have been a clue :P
so
uh
Glavin Wiechert
@Glavin001
Nov 05 2014 18:40
No worries at all :). It’s silly that this is an issue. Happens to me all the time when I copy&paste code :P
Alex Wait
@bobber205
Nov 05 2014 18:40
it's all working
Glavin Wiechert
@Glavin001
Nov 05 2014 18:40
Any luck?
Alex Wait
@bobber205
Nov 05 2014 18:40
lmao
formatting fine with no errors
Glavin Wiechert
@Glavin001
Nov 05 2014 18:41
Okay, what does it think is beautify_p
oh
hahahahaha
Alex Wait
@bobber205
Nov 05 2014 18:41
looks like restarting atom didn't properly reload the module!
Glavin Wiechert
@Glavin001
Nov 05 2014 18:41
Now THAT’s weird
Alex Wait
@bobber205
Nov 05 2014 18:41
lmao
Glavin Wiechert
@Glavin001
Nov 05 2014 18:41
Great to hear!
Alex Wait
@bobber205
Nov 05 2014 18:41
yeah
nice plugins btw
super excited to use it
haven't found a good ruby formatter for atom till now
Glavin Wiechert
@Glavin001
Nov 05 2014 18:41
Could you post in your GitHub issue that it’s all working and false alarm. Let me know if you have any further problems
Alex Wait
@bobber205
Nov 05 2014 18:41
sure thing!
Glavin Wiechert
@Glavin001
Nov 05 2014 18:41
Thanks!!
Glad you like it. Let me know if there’s anything missing / any more problems :)
I try to keep it up-to-date whenever I am not in school / working.
Speaking of which, I am at my office now so I best get back to work :P.
Alex Wait
@bobber205
Nov 05 2014 18:42
thinking about filing a bug in atom land
same here!
ttyl
Glavin Wiechert
@Glavin001
Nov 05 2014 18:44
Later! Enjoy :)