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

Unable to print: No permission to use port undefined. #33

Open
gkeraunen opened this issue Jun 2, 2019 · 3 comments
Open

Unable to print: No permission to use port undefined. #33

gkeraunen opened this issue Jun 2, 2019 · 3 comments

Comments

@gkeraunen
Copy link

I am running latest version 3.0.0 on Windows 7 with Chrome as default browser and always get the same error when trying to print:

Unable to print: No permission to use port undefined. Please set different port number in User Settings: printcode.webServerPort and Reload Window.

I have tried different port numbers in the settings but nothing changes. Chrome always says:

Cannot print: localhost refused to connect.

I am not running any web server. Is this required in order to print?

@PeterWone
Copy link

The extension has an embedded webserver. It works by spawning a browser with the URL of its embedded webserver, which then delivers markdown rendered as HTML.

This problem occurs because for some reason the extension is getting a value of undefined when it reads your settings.

I don't think this repo is maintained. There are a number of unmerged PRs and the last commit was in October 2018. That's why I took the basic premise and wrote my own VS Code Printing extension. In the process I have addressed every outstanding issue and greatly improved the user experience.

@gkeraunen
Copy link
Author

Is your extension available for download?
I just want an editor that can print. I like VS Code but have to copy and paste text into UltraEdit to print.

@PeterWone
Copy link

PeterWone commented Jul 2, 2019

Yes. It would be extremely bad manners to advertise it here but if you search for "printing" in the marketplace I'm sure you'll figure it out. It's not listed in my name.

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

2 participants