mvisonneau / atom-s5

Atom wrapper for S5
Apache License 2.0
1 stars 0 forks source link

Not working on Windows 10 with s5 installed #1

Open Amoo0001 opened 4 years ago

Amoo0001 commented 4 years ago

On Windows 10, I installed this plugin in Atom, and installed s5 and added it to my path, but I couldn't get this to work.

At first, I thought perhaps this plugin had a hard dependency on POSIX shell (traditionally "/bin/sh") as this looks like a POSIX shell here document to me:

cmd += ' <<_EOL_\n' + editor.getSelectedText() + '\n_EOL_'

From Shell Command Language:

2.7.4 Here-Document The redirection operators "<<" and "<<-" both allow redirection of lines contained in a shell input file, known as a "here-document", to the input of a command.

However, it appears you are using shelljs for evaluation which, if I'm not mistaken, is designed to evaluate POSIX shell expressions cross-platform. So I'm not sure why this doesn't work for me.

Either way, I cannot get it to work. I used the same AES key you used in your example for the following screenshots. Here is the error message I receive when trying to encipher the message "This is my super secret message." with your plugin: Error message

And here are my settings. Everything collapsed was left as the default values as of this hour (see the issue creation timestamp if it matters): My settings

Amoo0001 commented 4 years ago

On further look, I'm not sure that shelljs implements redirection at all. You could try the -c switch to sh.