Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Wayne Maurer
@wmaurer
@Glavin001 I reported a prettydiff issue, and it's been fixed already (prettydiff/prettydiff#56). What's the plan for the next release? It'd be great to have this fix in atom-beautify. Cheers, -W
Glavin Wiechert
@Glavin001
@wmaurer is there an issue on atom beautify? If not, please create it. If so, sorry I haven't had much time to look at it, please bump the issue and tag me as a reminder :). Should be a quick fix for this one and release very soon. Thanks!
Sidali
@SidaliNadji
This message was deleted
Wayne Maurer
@wmaurer
Hi @Glavin001, the latest release 0.21.4 fixed this issue, as your release bundle included the latest version of prettydiff. Thanks!
Ed Pirone
@edpirone
Anyone have any idea how to get uncrustify working correctly with Beautify? Im trying to beautify some code for asp.net and keep getting this error "Unsupported language for grammar 'Web Form/Control (C#)'."
Glavin Wiechert
@Glavin001
I don’t think that language asp.net is supported, at least by Atom Beautify
Does Uncrustify support asp.net ?
Ed Pirone
@edpirone
I thought uncrustify did but I guess it doesn't now that I looked into it. This would be a nice feature to add. Not a deal breaker for me at all but it would make it that much better.
Glavin Wiechert
@Glavin001
If Uncrustify supports the language then we can add support for it in Atom Beautify.
Ed Pirone
@edpirone
Im actually having trouble getting uncrustify to work in Atom. Is there a solid walk through on how to get that going? I have it installed but adding the root in Atom Beautify is confusing.
Glavin Wiechert
@Glavin001
there's no tutorials yet, although that is on the long TODO list :P.
Ed Pirone
@edpirone
I bet. Thanks @Glavin001. I appreciate the work you and all the contributors are doing. Wish I had a better handle on some of this so I could take some time and contribute. Ill stick around. Thanks.
Glavin Wiechert
@Glavin001
@edpirone could you provide me with some sample code to test with?
I want to solve this and a few other quick issues right now.
Ed Pirone
@edpirone
@Glavin001 I think we resolved this stuff in the last email correspondence. Thank you.
Glavin Wiechert
@Glavin001
Yup :)
ctz
@Chotaz
I'm having trouble installing/updating since the latest release, I think that my problem might by NPM related tho, but I'm not being able to get around it.
whenever I try to install atom-beautify I get an npm error reporting a 0-byte tarball
Glavin Wiechert
@Glavin001
Yeah sounds like something o cannot control, npm issue
ctz
@Chotaz
but is it happening to anyone else?
Aaron Ballard
@ansballard
Updated via the package menu, uninstalled/reinstalled via apm, no errors for me
Glavin Wiechert
@Glavin001
I believe uninstalling and reinstalling usually resolves a LOT of issues :P. apm is rather inconsistent, unfortunately.
ctz
@Chotaz
@ansballard , when the updated started failling for me that was the first thing I did, uninstalling via APM, but it never installed again as the installation itself returned the same error that of the update. EDIT: What node/npm versions are u guys running? I'm on 0.12.4 and 2.10 respectively.
Aaron Ballard
@ansballard
npm -v: 2.5.1, node -v: 0.12.0
Glavin Wiechert
@Glavin001
$ apm -v
apm  0.171.0
npm  2.5.1
node 0.10.35
python 2.7.9
git 2.4.0
hellboy81
@hellboy81
How can I format JSON content with plugin?
I have installed -> Right Click -> local menu -> Beautify editor content -> nothing
Is there working plugin with the same functionality as in Webstorm
?
ctz
@Chotaz
$ sudo su - root                                                                                 
# apm install atom-beautify
Installing atom-beautify to /root/.atom/packages ✓
# su user
$ apm install atom-beautify
Installing atom-beautify to /home/user/.atom/packages ✗

npm ERR! tar.unpack error reading /tmp/d-115516-20542-3rae44/package.tgz
npm ERR! addLocal Could not install /tmp/d-115516-20542-3rae44/package.tgz
npm ERR! Linux 3.19.0-20-generic
npm ERR! argv "/usr/local/share/atom/resources/app/apm/bin/node" "/usr/local/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/user/.atom/.apm/.apmrc" "--userconfig" "/home/user/.atom/.apmrc" "install" "/tmp/d-115516-20542-3rae44/package.tgz" "--target=0.22.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.5.1

npm ERR! 0-byte tarball
npm ERR! Please run `npm cache clean`
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-115516-20542-15ol5i4/npm-debug.log

$ apm -v
apm  0.163.0
npm  2.5.1
node 0.10.35
python 2.7.9
git 2.4.3
Just posting this for reference and historical value.
User root installs the package with no problem, however I can't seem to do so with my user, I'll dig more into user-side problems with NPM while I try to figure this out, will update with new findings.
Aaron Ballard
@ansballard
@hellboy81 did you set the language of the file to JSON? Is it giving you an error?
Austin Cheney
@prettydiff
After two weeks of silent effort I am making strong progress on many of the open issues assigned to me: prettydiff/prettydiff#103
ctz
@Chotaz
Just a quick update on my not so unusual problem. Apparently while I was updating atom-beautify yesterday my connection dropped and I never even realized it, leading to one of it's dependencies getting a corrupted tarball and apparently apm/npm upon detecting such won't retry to download the file, just exit with an error and report the empty tarball rather vaguely. I had to manually delete the cross-spawn dependency folder to restor normal install/upgrade behaviour.
hellboy81
@hellboy81

How can I change JSON formatting rules to

"hosts" : {
       "DEV": [
           {"devHost01": "https://..."},           
           {"devHost02": "http://..."}
       ],
       "LIVE": [
          ....
        ]
}

?

hellboy81
@hellboy81
Currently it formats as follows:
"DEV": [{
}],
"LIVE": [{
....
}]
Aaron Ballard
@ansballard
@Chotaz good to hear you figured it out. Did npm cache clean not delete that folder for you? May be worth posting an issue on npm to see if that error is getting shown incorrectly.
@hellboy81 I didn't see config options in the package settings, but it uses JS Beautify by default, so I would assume you can put a .jsbeautifyrc in your path with the options you want to set.
Pubudu Kodikara
@THPubs
@Glavin001 Hi, @prettydiff have fixed a problem I reported. In his site the problem is fixed and he have released a fix to the code. But when using atom beautify the problem is still there. I re-installed atom beautify, re-installed atom but still no help :-(
Austin Cheney
@prettydiff
@hellboy81 Try putting that input into http://prettydiff.com/?mode=beautify but be sure it wrap it with a "{" and a "}". If this output is closer to what you want then I would recommend using prettydiff over the default jsbeautify. Atom-beautify includes both prettydiff and jsbeautify and you can which beautifier you would like to use
kevin sproles
@kevinsproles
can't seem to get beautify to trigger on file save.
works fine when manually triggering it.
Glavin Wiechert
@Glavin001
For which language, @kevinsproles ?
kevin sproles
@kevinsproles
@Glavin001 HTML
kevin sproles
@kevinsproles
@Glavin001 SCSS as well
WEIDA KONG
@iadaking

Installing “atom-beautify@0.28.7” failed.Hide output…

spawn-sync@1.0.11 postinstall C:\Users\ADMINI~1\AppData\Local\Temp\apm-install-dir-11567-12976-7d72bu\node_modules\atom-beautify\node_modules\cross-spawn\node_modules\spawn-sync
node postinstall

npm

don't understand why
gh0stl4b
@gh0stl4b
Same here, it just hangs the process and that is it...
Glavin Wiechert
@Glavin001
Cross-spawn has been updated. Please try installing again. Thanks
Juan M Garcia
@kelvix
and pretty sure I'm officially stuck, something about the tree view having a directory on Linux causes the atom ui to "flash" when a beautify on save occurs sigh