Closed MooersLab closed 6 years ago
Hi @MooersLab
It's time to try atom2yas -u https://raw.githubusercontent.com/bryceosterhaus/atom-jest-snippets/master/snippets/custom.json -o ./dist
on your local. the command only support the cson url on remote http/https server. maybe you can upload your local cson file to gist and get a raw content url. I will update the readme file to clarify this.
Thanks
Thank you! Your example code worked for me.
The ability to apply atom2yasnippets to a directory of atom snippets would be very useful.
On Wed, Feb 21, 2018 at 7:33 PM, Yaodong Li notifications@github.com wrote:
Closed #1 https://github.com/liyaodong/atom2yasnippets/issues/1.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/liyaodong/atom2yasnippets/issues/1#event-1486015294, or mute the thread https://github.com/notifications/unsubscribe-auth/AOeSCzfXBG5QlloRQQ78bEP77eyHVkwgks5tXMPqgaJpZM4SJzRY .
-- Best regards,
Blaine
Blaine Mooers, Ph.D. Associate Professor Department of Biochemistry and Molecular Biology College of Medicine University of Oklahoma Health Sciences Center S.L. Young Biomedical Research Center Rm. 466 975 NE 10th Street https://maps.google.com/?q=975+NE+10th+Street&entry=gmail&source=g, BRC 466 Oklahoma City, OK 73104-5419
office: (405) 271-8300 lab: (405) 271-8313
Faculty webpage http://tinyurl.com/ouhscMooers X-ray lab (LBSF) http://research.ouhsc.edu/CoreFacilities/LaboratoryofBiomolecularStructureandFunction.aspx COBRE in Structural Biology http://structuralbiology.ou.edu/ SSRL UEC Facebook Page https://www.facebook.com/ssrluec/ SSRL UEC https://www-ssrl.slac.stanford.edu/content/about-ssrl/advisory-panels/ssrl-users-organization/members/ssrluo-2016-executive-committee-members SSRL SAC https://www-ssrl.slac.stanford.edu/content/about-ssrl/scientific-advisory-committee LCLS UEC https://www-ssrl.slac.stanford.edu/lcls-resources/lcls-users-organization-executive-committee
EasyPyMOL https://github.com/MooersLab/EasyPyMOL Molecular Graphics https://www.oumedicine.com/docs/default-source/ad-biochemistry-workfiles/moleculargraphicslinks.html
https://www.oumedicine.com/docs/default-source/ad-biochemistry-workfiles/MolecularGraphicsLinks.html Small Angle Scattering http://www.oumedicine.com/docs/default-source/ad-biochemistry-workfiles/small-angle-scattering-links-27aug2014.html?sfvrsn=0 office: (405) 271-8300 lab: (405) 271-8313 e-mail: blaine-mooers@ouhsc.edu (or bmooers1@gmail.com)
Hi, I am using windows 10 wsl I updated Node.js, npm, and installed atom2yasnippets.
atom2yas -u https://github.com/dsandstrom/atom-css-snippets/blob/master/snippets/css-snippets.cson -o ./dist
It works, and runs anyway the index.js but maybe has problems parsing the source?
erron when parse https://github.com/dsandstrom/atom-css-snippets/blob/master/snippets/css-snippets.cson as CSON file
(node:2329) UnhandledPromiseRejectionWarning: Error: [stdin]:31:96: error: missing / (unclosed regex)
<title>atom-css-snippets/css-snippets.cson at master · dsandstrom/atom-css-snippets · GitHub</title>
^
at parseCSON (/usr/local/lib/node_modules/atom2yasnippets/index.js:32:15)
at <anonymous>:null:null
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:2329) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2329) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Any suggestions?
Same result with another source.
erron "GitHub" .
I am using MacOSX 13 High Sierra. I updated Node.js and installed atom2yasnippets. I can print the help but that is it.
I have tried the following commands
atom2yas -u "file:///Users/blaine/software/yasnippets/subi.cson" -o ./dist
atom2yas -u file:///Users/blaine/software/yasnippets/subi.cson-o file///Users/blaine/software/yasnippets/dist/
atom2yas -u /Users/blaine/software/yasnippets/subi.cson -o /Users/blaine/software/yasnippets/dist
atom2yas -u rawCSONAtomSnippetURL -o ./dist
All of the above give the error message:
(node:40501) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: only absolute urls are supported
Here is the content of the cson file:
'.text.tex, latex.ing, comment.line.percentage.tex, meta.no-spellcheck': 'subsection with label and index': prefix: 'subi' body: ''' \subsection{${1:subsection name}} % (fold) \label{sub:${1:subsection name}} \index{${1:subsection name}} ${2:Start here} % subsection ${1:subsection name} (end)$0 '''