question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Syntax Highlighting not working with Nativefier

See original GitHub issue
  • code-server version: v1.32.0-282
  • OS Version: Mac, server hosted on Ubuntu 18.04.1 LTS

Description

Synatx highlighting for all files does not work with Nativefier (which hosts a browser in an electron app). I’ve had occasional issues using it in the web browser where the syntax highlighting stops working, so this could be related.

Screenshot of console in a working browser window image

Screenshot of console in the nativefier app image

Steps to Reproduce

  1. Install Nativefier npm install nativefier -g
  2. Open vs code server with nativefier nativefier --ignore-certificate https://xx.xx.xx.xx:port The files do not have syntax highlighting

This was tested with all relevant looking flags (–insecure, --enable-es3-apis, --ignore-certificate, --flash), but none of them got syntax highlighting to work.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Cosby5commented, Mar 29, 2019

I was having the same problem. What I did was move the auth to Nginx using basic auth, then added a special case to turn it off. Nativefier can then be set with the username & password to auto-login. Now the only thing that escapes auth is the .wasm extension.

I also set the server to --no-auth.

auth_basic_user_file /path/to/.htpasswd;
auth_basic           "Administrator’s Area"

location ~ \.wasm {
  auth_basic off;
  ...
}
location / {
  ...
}
1reaction
nol166commented, Mar 26, 2019

I followed the steps above and syntax highlighting seems to work, unless i am not understanding correctly:

Screen Shot 2019-03-26 at 1 47 00 PM
Read more comments on GitHub >

github_iconTop Results From Across the Web

Syntax Highlighting not working with Nativefier #340 - GitHub
Synatx highlighting for all files does not work with Nativefier (which hosts a browser in an electron app). I've had occasional issues using...
Read more >
Syntax highlighting not working in MD files for Jekyll?
The syntax highlighter does not seem to be working in Jekyll using the kramdown parser and rouge gem. Quotes also do not show...
Read more >
Turning web content into a Linux App.. - Tech Blog
It's an NPM based application which will turn a URL into a Native platform App. Under OpenSuse the install of NPM is. sudo...
Read more >
Help getting syntax highlighting working : r/neovim - Reddit
I installed the appropriate lsp's and ts files, but syntax highlighting does not seem to work. I followed several tutorials to no avail....
Read more >
Release Notes - Firejail - WordPress.com
In the same time frame, the problem was independently reported by Birk Blechschmidt. Full working exploit code was also provided.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found