The results of beautification are not what I expect.
This is what the code looked like before:
apm install atom-beautify
The beautified code should have looked like this:
//Installation
The beautified code actually looked like this:
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated @types/[email protected]: This is a stub types definition for commander (https://github.com/tj/commander.js). commander provides its own type definitions, so you don't need @types/commander installed!
npm WARN deprecated [email protected]: Deprecated in favour of eslint-config-wikimedia. -- https://phabricator.wikimedia.org/T118941
npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.
npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\\Users\\iFranco\\AppData\\Local\\atom\\app-1.30.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\iFranco\\AppData\\Local\\atom\\app-1.30.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\iFranco\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\iFranco\\.atom\\.apmrc" "install" "C:\\Users\\iFranco\\AppData\\Local\\Temp\\d-118731-7472-1rzyzv6.ry0uj714i\\package.tgz" "--runtime=electron" "--target=2.0.5" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code EREADFILE
npm ERR! Error extracting C:\Users\iFranco\.atom\.apm\marko\4.13.3\package.tgz archive: ENOENT: no such file or directory, open 'C:\Users\iFranco\.atom\.apm\marko\4.13.3\package.tgz'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\iFranco\AppData\Local\Temp\apm-install-dir-118731-7472-1n6hv2y.ak2xz5b3xr\npm-debug.log
Atom Beautify: Beautify EditorHere is a link to the debug.md Gist:
I have:
Atom Beautify: Help Debug Editor command in Atom and added link for debug.md Gist to this issuePlease follow the issue template provided. More specifically, update the original comment for this issue by adding a link to the required debug.md gist which includes debugging information that answers our most commonly asked questions. Thank you.
bad bot.
Can't issue atom beautify command if you can't install the package!
apm clean does not fix the problem.
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
@francosmp guessing if you just create a junk debug.md file upload gist to link that will mollify the overzealous bot.
Please follow the issue template provided. More specifically, update the original comment for this issue by adding a link to the required debug.md gist which includes debugging information that answers our most commonly asked questions. Thank you.
Ignore probot-no-response. Do you have the language-marko package installed as well?
(I'm not the OP, but seemingly have the same problem.) I can't install language-marko standalone either:
[fdidev@ia16ep4demo ~]$ apm clean
[fdidev@ia16ep4demo ~]$ apm install language-marko
Installing language-marko to /home/fdidev/.atom/packages ✗
npm ERR! Linux 3.10.0-862.11.6.el7.x86_64
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/fdidev/.atom/.apm/.apmrc" "--userconfig" "/home/fdidev/.atom/.apmrc" "install" "/tmp/d-118731-10770-wtbmjg.b2ydkakyb9/package.tgz" "--runtime=electron" "--target=2.0.5" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code EREADFILE
npm ERR! Error extracting /home/fdidev/.atom/.apm/marko/4.13.3/package.tgz archive: ENOENT: no such file or directory, open '/home/fdidev/.atom/.apm/marko/4.13.3/package.tgz'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /tmp/apm-install-dir-118731-10770-tcxall.t0bdpfogvi/npm-debug.log
The apm log doesn't seem to exist either:
[fdidev@ia16ep4demo ~]$ cat /tmp/apm-install-dir-118731-10770-tcxall.t0bdpfogvi/npm-debug.log
cat: /tmp/apm-install-dir-118731-10770-tcxall.t0bdpfogvi/npm-debug.log: No such file or directory
Are you trying to install language-marko or atom-beautify? Or both?
Well, first just atom-beautify but then language-marko by itself. Guessing (wild guess) that is really the core problem and not particularly atom-beautify. Strangely it seems to be trying to install language-marko at a version that doesn't exist. 4.13.3 is not a version of language-marko. I tried forcing it with [email protected] and it failed with same error.
Also tried completely uninstalling sudo yum erase atom and removing ~/.atom, then reinstalling only language-marko. No joy.
So probably I (or OP) should go over to language-marko and put in a bug report there.
I'm not an atom user, just a hapless devops guy trying to fix an ansible script that started failing all of a sudden doing apm install atom-beautify. So this will go back into a queue for someone who actually knows atom to investigate further on our side.
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
OK, I'm getting the same error on my Mac now.
It's actually the core marko package that is failing to install here, which is required by marko-prettyprint, which is required by atom-beautify. 4.13.3 is a valid version of that, but it looks like it's actually downloading 4.13.4.
Unfortunately that debug log disappears after failure, so can't even look at it.
Please follow the issue template provided. More specifically, update the original comment for this issue by adding a link to the required debug.md gist which includes debugging information that answers our most commonly asked questions. Thank you.
I have the same problem ... what's new?
well, it was great until i had problems with maximizing atom. so i uninstalled it. after uninstall, i deleted atom in program files, program files x86, program data, users, and users app data. then i downloaded atom from oficial page and i installed it. fillany i installed many packages but the problem was with beautify. i tried install with setting -> install and got the same problem that console install.
what's next :(
@Glavin001 might have to remove marko-prettyprint as a dependency and do a release.
Same issue here - looking foward to a solution. Many thanks for your efforts.
Up until this morning, I was also receiving the marko error. Now I am getting errors around Hostname/IP doesn't match certificate's altnames: "Host: registry.npmjs.org. is not in the cert's altnames: DNS:a.sni.fastly.net, DNS:a.sni.global-ssl.fastly.net".
Both that and the marko errors might be caused by https://status.npmjs.org/incidents/v22ffls5cd6h. Please give it some time to clear up, then try installing again.
Just opened this new issue agains language-marki as I believ it's the root cause.
For atom-beautify, creating a symling works around the installation issue:
~/.atom/.apm $ ll marko
total 8.0K
drwxrwxr-x 3 crux crux 4.0K May 26 21:43 4.10.0
lrwxrwxrwx 1 crux crux 6 Sep 1 16:59 4.13.3 -> 4.13.4
drwxr-xr-x 3 crux crux 4.0K Sep 1 16:51 4.13.4
It's not language-marko causing the error in atom-beautify. They just share the same core issue.
I've the same issue .. I get the same error when I try apm install atom-beautify
Also getting this same issue. I tried updating the package but that failed, so I uninstalled and when I tried to reinstall I couldn't. Waiting on a fix.
I have the same issue for both mac and window. I tried apm, but it does not work either.
THANK YOU! @default50 your solution solves it: https://github.com/Glavin001/atom-beautify/issues/2213#issuecomment-417869719
Recap:
cd /Users/YOURUSERID/.atom/.apm/marko; ln -s 4.13.4 4.13.3; apm install atom-beautify
@default50 thank you! but how to fix it on windows?
I solve it on windows with git bash and @default50 #2213
Having the same problem unfortunately :|
Many many thanks.
On Linux, the issue is solved by taking the following steps:
cd /home/your_username/.atom/.apm/marko
ln -s 4.13.4 4.13.3
apm install atom-beautify
on windows use comand mklink ... like
mklink /J c:\Users\username\.atom\.apm\marko\4.13.3 c:\Users\username\.atom\.apm\marko\4.13.4
Installing “[email protected]” failed.Hide output…
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated @types/[email protected]: This is a stub types definition for commander (https://github.com/tj/commander.js). commander provides its own type definitions, so you don't need @types/commander installed!
npm WARN deprecated [email protected]: Deprecated in favour of eslint-config-wikimedia. -- https://phabricator.wikimedia.org/T118941
npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.
npm ERR! Darwin 17.7.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/user/.atom/.apm/.apmrc" "--userconfig" "/Users/user/.atom/.apmrc" "install" "/private/var/folders/fy/ff39dmw95cx6ks3npnpkk2880000gn/T/d-11883-7509-1niq8xu.dkc87x2yb9/package.tgz" "--runtime=electron" "--target=2.0.5" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code EREADFILE
npm ERR! Error extracting /Users/user/.atom/.apm/marko/4.13.3/package.tgz archive: ENOENT: no such file or directory, open '/Users/user/.atom/.apm/marko/4.13.3/package.tgz'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /private/var/folders/fy/ff39dmw95cx6ks3npnpkk2880000gn/T/apm-install-dir-11883-7509-1e8lcyb.mmeku766r/npm-debug.log
same error
Rename the following folder:
_/Users/user/.atom/.apm/marko/4.13.4_
Rename to 4.13.3 and try again!
I just published v0.33.1. For the time being, marko-prettyprint has been removed as there is an issue with the marko dependency when downloading.
Most helpful comment
THANK YOU! @default50 your solution solves it: https://github.com/Glavin001/atom-beautify/issues/2213#issuecomment-417869719
Recap:
cd /Users/YOURUSERID/.atom/.apm/marko; ln -s 4.13.4 4.13.3; apm install atom-beautify