Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Ubuntu ... ? #36

Closed
goessner opened this issue Mar 12, 2018 · 5 comments
Closed

Issues with Ubuntu ... ? #36

goessner opened this issue Mar 12, 2018 · 5 comments

Comments

@goessner
Copy link

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

@LCAR979
Copy link

LCAR979 commented Mar 17, 2018

@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?

@floatdrop
Copy link
Collaborator

Clipboardy ships with precompiled binary for Linux - so you do not need ‘xsel’ installed.

@goessner can you post full error message from clipboardy?

@goessner
Copy link
Author

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 ?

@floatdrop
Copy link
Collaborator

floatdrop commented Mar 19, 2018

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));

@goessner
Copy link
Author

.. it works now ..

#36

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants