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

V3.12.0 cannot display image, pdf, and preview markdown! #4238

Closed
liaomingg opened this issue Sep 24, 2021 · 10 comments
Closed

V3.12.0 cannot display image, pdf, and preview markdown! #4238

liaomingg opened this issue Sep 24, 2021 · 10 comments
Labels
waiting-for-info Waiting for more information from submitter

Comments

@liaomingg
Copy link

OS/Web Information

  • Web Browser:
  • Local OS:
  • Remote OS:
  • Remote Architecture:
  • code-server --version: 3.12.0

Steps to Reproduce

  1. open image, or pdf or markdown file. (installed extensions of pdf and markdown, tested by vscode.)

Expected

Actual

Logs

Screenshot

Notes

This issue can be reproduced in VS Code: Yes/No

@jsjoeio
Copy link
Contributor

jsjoeio commented Sep 24, 2021

Unfortunately, I cannot reproduce this.

Screen Shot 2021-09-24 at 10 29 57 AM

For PDFs, you need to use a separate extension.

Can you please fill out the bug report and we'll see if we can help?

Are you using accessing code-server via HTTPS?

@jsjoeio jsjoeio added the waiting-for-info Waiting for more information from submitter label Sep 24, 2021
@liaomingg
Copy link
Author

Thanks,

I use the url: http://0.0.0.0:6008.

Web Browser: Google Chrome.
Local OS: MacOS
Remote OS: Ubuntu16.04
Remote Architecture: X86-amd64
code-server --version: 3.12.0

I installed the code-server by release file: code-server-3.12.0-linux-amd64.tar.gz.
I have reinstalled many times, but still cannot display image, pdf and preview markdown. what's error with me?
and how to export the logs?

  • code server display error
    coder-server-error

  • coder server installed extensions

code-server-extensions

  • vscode display normal. (use the same Web Browser and display the same file.)
    vscode

@liaomingg
Copy link
Author

I have tested the docker image step by step as the pic shows. but still got the same problem.
Google Chrome and Safari also tested.

docker

@liaomingg
Copy link
Author

Hi,
I have tested code-server 3.9.3, 3.10.0.
3.9.3 is worked (as the picture shows.), but 3.10.0 not work.
code-server-3 9 3-worked
.

@Selenium39
Copy link

Selenium39 commented Sep 26, 2021

i have the same question... @jsjoeio

image

@LRHstudy
Copy link

I have the same problem

@jsjoeio
Copy link
Contributor

jsjoeio commented Sep 27, 2021

I use the url: http://0.0.0.0:6008.

This is the most common reason - you're not serving code-server via HTTPS, which means the images, etc. are probably being blocked.

How to check?

@LRHstudy @liaomingg I suggest going through these steps to see if you're experiencing this issue for the same reasons:

  • Are you serving code-server over HTTPS? (i.e. does the URL have https in it?)
  • Are there any logs in the browser? (Right click page -> Inspect -> click on "Console" tab -> look for errors)

How to fix

Read our docs for setting up HTTPS and getting self-signed certificates here. You can also run code-server --link (which should handle this for you).

@liaomingg
Copy link
Author

Thanks, self-signed certificates for https is workded.

@yifangtan
Copy link

我有同样的问题...@jsjoeio

图像

Is it settled now? I have the same problem.

@jsjoeio
Copy link
Contributor

jsjoeio commented Feb 25, 2022

@yifangtan please upgrade to the latest version of code-server and ensure you're using HTTPS!

@coder coder locked as resolved and limited conversation to collaborators Feb 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
waiting-for-info Waiting for more information from submitter
Projects
None yet
Development

No branches or pull requests

5 participants