Issues with Ubuntu ... ?
goessner opened this issue · 5 comments
When using clipboardy with
Operating system: _Ubuntu 16.04 LTS_
VSCode version: _ 1.20.1_
Markdown+Math version: 2.1.0
by code ...
if (!cb) cb = require('clipboardy');
cb.write(clipTmpl(mdit.render(doc.getText())))
.then(()=>vscode.window.showInformationMessage('Html copied to clipboard!'),
()=>vscode.window.showInformationMessage('Html copying to clipboard failed!'));
... it says 'Html copying to clipboard failed!', whereas with all other operating systems it seems to work well. See ...
goessner/mdmath#44
goessner/mdmath#36
Is it simply so, that Ubuntu is not supported by clipboardy
?
thanks
@goessner It turns out that you must install dependency to make mdmath work. Please see this pull request and the related issue
And I have tested, after installing xsel
, Clip Markdown+Math to HTML
works perfectly and has a nice output. So you mdmath issue now has a fix.
@sindresorhus Since the problem still exists, is it better to recover that line in readme.md?
Clipboardy ships with precompiled binary for Linux - so you do not need ‘xsel’ installed.
@goessner can you post full error message from clipboardy?
Thanks for having solved this issue.
@floatdrop: What does ' ... ships with precompiled binary for Linux ... ' mean?
In mdmath
's package.json
is clipboardy listed with all its dependencies. So do I need to loist 'xsel' here explicitely somehow?
How do you want me to post the full error message ... as a simple link ?
What does ' ... ships with precompiled binary for Linux ... ' mean?
We literally ship xsel inside npm package – https://github.com/sindresorhus/clipboardy/blob/master/fallbacks/linux/xsel
How do you want me to post the full error message ... as a simple link ?
Something like this should do the trick:
if (!cb) cb = require('clipboardy');
cb.write(clipTmpl(mdit.render(doc.getText())))
.then(()=>vscode.window.showInformationMessage('Html copied to clipboard!'),
(err)=>vscode.window.showInformationMessage(err.message));