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.

highlights for tsx and jsx files stopped working

See original GitHub issue

please complete the following information:

  • OS version: [e.g. Win 10, Mac Catalina]: Mac Catalina 10.15.1
  • Editor version [e.g. 1.45.0-insider]: 1.51.0
  • Programming language: [e.g. js, ts, c++]: typescript
  • TabNine extension version: 3.1.8

If the issue is related to TabNine failure, please provide log files:

Type TabNine::config in your editor, the logs are located at the bottom of the page [2020-11-12T22:23:08.677463+01:00][INFO][5738 main][TabNine][Some(“tabnine/frontend/src/main.rs”)][Some(315)] /Users/baturaykaraduman/.vscode/extensions/tabnine.tabnine-vscode-3.1.5/binaries/3.2.13/x86_64-apple-darwin/TabNine --client=vscode --no-lsp=true --client-metadata clientVersion=1.51.1 pluginVersion=3.1.5 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-remote=false vscode-remote-name=undefined vscode-extension-kind=1 ide-restart-counter=0 [2020-11-12T22:23:08.678231+01:00][INFO][5738 main][updater::global_config][Some(“tabnine/updater/src/global_config.rs”)][Some(662)] config path: /Users/baturaykaraduman/Library/Preferences/TabNine/tabnine_config.json [2020-11-12T22:23:08.683413+01:00][INFO][5738 main][TabNine][Some(“tabnine/frontend/src/main.rs”)][Some(256)] inner at this point [2020-11-12T22:23:08.718018+01:00][INFO][5738 thread][watchdog_server][Some(“tabnine/watchdog_server/src/lib.rs”)][Some(53)] watchdog is locking path: /Users/baturaykaraduman/Library/Application Support/TabNine/monitoring/watchdog.lock [2020-11-12T22:23:08.718089+01:00][INFO][5738 main][frontend][Some(“tabnine/frontend/src/lib.rs”)][Some(75)] LSP disabled [2020-11-12T22:23:09.111812+01:00][INFO][5738 lunar settings update thread (Remote)][server::lunar_connection][Some(“tabnine/server/src/lunar_connection.rs”)][Some(131)] lunar settings update thread started (Remote) [2020-11-12T22:23:09.111836+01:00][INFO][5738 lunar settings update thread (Remote)][server::lunar_connection][Some(“tabnine/server/src/lunar_connection.rs”)][Some(137)] Successfully updated Remote lunar settings [2020-11-12T22:23:09.599989+01:00][INFO][5738 thread][watchdog_server::monitor_loop][Some(“tabnine/watchdog_server/src/monitor_loop.rs”)][Some(207)] watching new process 5738-TabNine [2020-11-12T22:23:09.623712+01:00][INFO][5738 local-forwarder][lunar_local::bridge][Some(“deep/lunar_local/src/bridge.rs”)][Some(75)] TabNine Local communication thread started. [2020-11-12T22:23:09.623740+01:00][INFO][5738 local-forwarder][lunar_local::bridge][Some(“deep/lunar_local/src/bridge.rs”)][Some(13)] Loading model… [2020-11-12T22:23:09.623855+01:00][INFO][5738 local-forwarder][lunar_local::locker][Some(“deep/lunar_local/src/locker.rs”)][Some(15)] Trying to lock: “/var/folders/y8/1_fpjtzn5bg8058b1gy58x980000gn/T/model.lock” [2020-11-12T22:23:09.623869+01:00][INFO][5738 local-forwarder][lunar_local::locker][Some(“deep/lunar_local/src/locker.rs”)][Some(17)] Lock acquired, performing the inner action [2020-11-12T22:23:09.623878+01:00][INFO][5738 local-forwarder][lunar_local::downloader][Some(“deep/lunar_local/src/downloader.rs”)][Some(151)] Starting download (last_failure=None). [2020-11-12T22:23:09.624288+01:00][INFO][5738 local-forwarder][lunar_local::downloader][Some(“deep/lunar_local/src/downloader.rs”)][Some(560)] Loaded cached metadata. [2020-11-12T22:23:09.624300+01:00][INFO][5738 local-forwarder][lunar_local::downloader][Some(“deep/lunar_local/src/downloader.rs”)][Some(187)] Attempting to load deep model (attempt: #1) [2020-11-12T22:23:09.624309+01:00][INFO][5738 metadata-updater][lunar_local::downloader][Some(“deep/lunar_local/src/downloader.rs”)][Some(556)] Checking for metadata update in background… [2020-11-12T22:23:09.624372+01:00][INFO][5738 local-forwarder][lunar_local::downloader][Some(“deep/lunar_local/src/downloader.rs”)][Some(277)] Trying to load cached model from “/Users/baturaykaraduman/Library/Application Support/TabNine/models/b8373e4b.tabninemodel” [2020-11-12T22:23:09.625061+01:00][INFO][5738 lunar settings update thread (Local)][server::lunar_connection][Some(“tabnine/server/src/lunar_connection.rs”)][Some(131)] lunar settings update thread started (Local) [2020-11-12T22:23:09.625103+01:00][INFO][5738 lunar settings update thread (Local)][server::lunar_connection][Some(“tabnine/server/src/lunar_connection.rs”)][Some(137)] Successfully updated Local lunar settings [2020-11-12T22:23:09.626050+01:00][INFO][5738 main][frontend][Some(“tabnine/frontend/src/lib.rs”)][Some(81)] Started. [2020-11-12T22:23:09.858726+01:00][INFO][5738 metadata-updater][http_requests][Some(“shared/http_requests/src/lib.rs”)][Some(69)] Making API request to https://api.tabnine.com/model_metadata/v1 [2020-11-12T22:23:10.250038+01:00][INFO][5738 metadata-updater][lunar_local::downloader][Some(“deep/lunar_local/src/downloader.rs”)][Some(229)] Downloaded model metadata [hash=b8373e4b]. [2020-11-12T22:23:16.343988+01:00][INFO][5738 local-forwarder][lunar_local::locker][Some(“deep/lunar_local/src/locker.rs”)][Some(21)] Releasing lock: “/var/folders/y8/1_fpjtzn5bg8058b1gy58x980000gn/T/model.lock” [2020-11-12T22:23:16.465396+01:00][INFO][5738 local-forwarder][lunar_local::bridge][Some(“deep/lunar_local/src/bridge.rs”)][Some(17)] Done loading model (took 6.84 seconds). [2020-11-12T22:23:17.335560+01:00][ERROR][5738 TabNine-worker-3][server::pipeline::document_tracker][Some(“tabnine/server/src/pipeline/document_tracker.rs”)][Some(316)] Error reading “/Users/baturaykaraduman/karaduman/content/spaceocean/static/assets/images/article/array_or_list.png”: stream did not contain valid UTF-8 [2020-11-12T22:23:17.336031+01:00][ERROR][5738 TabNine-worker-3][server::pipeline::document_tracker][Some(“tabnine/server/src/pipeline/document_tracker.rs”)][Some(316)] Error reading “/Users/baturaykaraduman/karaduman/content/spaceocean/static/assets/images/article/array_or_list.png”: stream did not contain valid UTF-8 [2020-11-12T22:23:17.346515+01:00][ERROR][5738 TabNine-worker-3][server::pipeline::document_tracker][Some(“tabnine/server/src/pipeline/document_tracker.rs”)][Some(316)] Error reading “/Users/baturaykaraduman/karaduman/content/spaceocean/static/assets/images/article/binary.jpeg”: stream did not contain valid UTF-8 [2020-11-12T22:23:17.346691+01:00][ERROR][5738 TabNine-worker-3][server::pipeline::document_tracker][Some(“tabnine/server/src/pipeline/document_tracker.rs”)][Some(316)] Error reading “/Users/baturaykaraduman/karaduman/content/spaceocean/static/assets/images/article/binary.jpeg”: stream did not contain valid UTF-8 [2020-11-12T22:23:17.365512+01:00][ERROR][5738 TabNine-worker-3][server::pipeline::document_tracker][Some(“tabnine/server/src/pipeline/document_tracker.rs”)][Some(316)] Error reading “/Users/baturaykaraduman/karaduman/content/spaceocean/static/assets/images/article/swallow.jpg”: stream did not contain valid UTF-8 [2020-11-12T22:23:17.365669+01:00][ERROR][5738 TabNine-worker-3][server::pipeline::document_tracker][Some(“tabnine/server/src/pipeline/document_tracker.rs”)][Some(316)] Error reading “/Users/baturaykaraduman/karaduman/content/spaceocean/static/assets/images/article/swallow.jpg”: stream did not contain valid UTF-8 [2020-11-12T22:23:17.369538+01:00][ERROR][5738 TabNine-worker-3][server::pipeline::document_tracker][Some(“tabnine/server/src/pipeline/document_tracker.rs”)][Some(316)] Error reading “/Users/baturaykaraduman/karaduman/content/spaceocean/static/assets/images/background-blog.png”: stream did not contain valid UTF-8 [2020-11-12T22:23:17.369704+01:00][ERROR][5738 TabNine-worker-3][server::pipeline::document_tracker][Some(“tabnine/server/src/pipeline/document_tracker.rs”)][Some(316)] Error reading “/Users/baturaykaraduman/karaduman/content/spaceocean/static/assets/images/background-blog.png”: stream did not contain valid UTF-8 [2020-11-12T22:23:17.382546+01:00][ERROR][5738 TabNine-worker-3][server::pipeline::document_tracker][Some(“tabnine/server/src/pipeline/document_tracker.rs”)][Some(316)] Error reading “/Users/baturaykaraduman/karaduman/content/spaceocean/static/assets/images/background-home.png”: stream did not contain valid UTF-8 [2020-11-12T22:23:17.383175+01:00][ERROR][5738 TabNine-worker-3][server::pipeline::document_tracker][Some(“tabnine/server/src/pipeline/document_tracker.rs”)][Some(316)] Error reading “/Users/baturaykaraduman/karaduman/content/spaceocean/static/assets/images/background-home.png”: stream did not contain valid UTF-8 [2020-11-12T22:23:17.386662+01:00][ERROR][5738 TabNine-worker-3][server::pipeline::document_tracker][Some(“tabnine/server/src/pipeline/document_tracker.rs”)][Some(316)] Error reading “/Users/baturaykaraduman/karaduman/content/spaceocean/static/assets/images/contact-us.png”: stream did not contain valid UTF-8 [2020-11-12T22:23:17.386816+01:00][ERROR][5738 TabNine-worker-3][server::pipeline::document_tracker][Some(“tabnine/server/src/pipeline/document_tracker.rs”)][Some(316)] Error reading “/Users/baturaykaraduman/karaduman/content/spaceocean/static/assets/images/contact-us.png”: stream did not contain valid UTF-8 [2020-11-12T22:23:20.127531+01:00][INFO][5738 local-forwarder][lunar_local::tune][Some(“deep/lunar_local/src/tune.rs”)][Some(73)] Model took 1220 ms to evaluate 1 token. [2020-11-12T22:23:23.022839+01:00][INFO][5738 local-forwarder][lunar_local::tune][Some(“deep/lunar_local/src/tune.rs”)][Some(73)] Model took 965 ms to evaluate 1 token. [2020-11-12T22:23:23.231608+01:00][INFO][5738 local-forwarder][lunar_local::tune][Some(“deep/lunar_local/src/tune.rs”)][Some(73)] Model took 69 ms to evaluate 1 token. [2020-11-12T22:23:23.353389+01:00][INFO][5738 local-forwarder][lunar_local::tune][Some(“deep/lunar_local/src/tune.rs”)][Some(73)] Model took 40 ms to evaluate 1 token. [2020-11-12T22:23:23.464020+01:00][INFO][5738 local-forwarder][lunar_local::tune][Some(“deep/lunar_local/src/tune.rs”)][Some(73)] Model took 36 ms to evaluate 2 tokens. [2020-11-12T22:23:23.592746+01:00][INFO][5738 local-forwarder][lunar_local::tune][Some(“deep/lunar_local/src/tune.rs”)][Some(73)] Model took 42 ms to evaluate 3 tokens. [2020-11-12T22:23:23.592771+01:00][INFO][5738 local-forwarder][lunar_local::tune][Some(“deep/lunar_local/src/tune.rs”)][Some(25)] Selected 2 beams. [2020-11-12T22:23:24.765581+01:00][INFO][5738 local-forwarder][lunar_local::tune][Some(“deep/lunar_local/src/tune.rs”)][Some(73)] Model took 390 ms to evaluate 16 tokens. [2020-11-12T22:23:24.765609+01:00][INFO][5738 local-forwarder][lunar_local::tune][Some(“deep/lunar_local/src/tune.rs”)][Some(27)] Selected context length of 48. [2020-11-12T22:23:28.701084+01:00][INFO][5738 update_loop][http_requests][Some(“shared/http_requests/src/lib.rs”)][Some(69)] Making API request to https://api.tabnine.com/version/v1 [2020-11-12T22:23:28.811394+01:00][INFO][5738 lunar settings update thread (Remote)][server::lunar_connection][Some(“tabnine/server/src/lunar_connection.rs”)][Some(141)] lunar settings detected config modified (Remote) [2020-11-12T22:23:28.811393+01:00][INFO][5738 thread][updater::global_config][Some(“tabnine/updater/src/global_config.rs”)][Some(662)] config path: /Users/baturaykaraduman/Library/Preferences/TabNine/tabnine_config.json [2020-11-12T22:23:28.811416+01:00][INFO][5738 lunar settings update thread (Local)][server::lunar_connection][Some(“tabnine/server/src/lunar_connection.rs”)][Some(141)] lunar settings detected config modified (Local) [2020-11-12T22:23:28.811807+01:00][INFO][5738 lunar settings update thread (Remote)][server::lunar_connection][Some(“tabnine/server/src/lunar_connection.rs”)][Some(137)] Successfully updated Remote lunar settings [2020-11-12T22:23:28.811866+01:00][INFO][5738 lunar settings update thread (Local)][server::lunar_connection][Some(“tabnine/server/src/lunar_connection.rs”)][Some(137)] Successfully updated Local lunar settings [2020-11-12T22:23:28.873314+01:00][INFO][5738 update_loop][updater][Some(“tabnine/updater/src/lib.rs”)][Some(604)] Server did not respond with version, so using default URL. [2020-11-12T22:23:28.912454+01:00][INFO][5738 thread][updater::global_config][Some(“tabnine/updater/src/global_config.rs”)][Some(662)] config path: /Users/baturaykaraduman/Library/Preferences/TabNine/tabnine_config.json [2020-11-12T22:23:28.912555+01:00][INFO][5738 lunar settings update thread (Remote)][server::lunar_connection][Some(“tabnine/server/src/lunar_connection.rs”)][Some(141)] lunar settings detected config modified (Remote) [2020-11-12T22:23:28.912564+01:00][INFO][5738 lunar settings update thread (Local)][server::lunar_connection][Some(“tabnine/server/src/lunar_connection.rs”)][Some(141)] lunar settings detected config modified (Local) [2020-11-12T22:23:28.912669+01:00][INFO][5738 lunar settings update thread (Remote)][server::lunar_connection][Some(“tabnine/server/src/lunar_connection.rs”)][Some(137)] Successfully updated Remote lunar settings [2020-11-12T22:23:28.912697+01:00][INFO][5738 lunar settings update thread (Local)][server::lunar_connection][Some(“tabnine/server/src/lunar_connection.rs”)][Some(137)] Successfully updated Local lunar settings [2020-11-12T22:23:28.993127+01:00][INFO][5738 update_loop][updater][Some(“tabnine/updater/src/lib.rs”)][Some(314)] Current version is 3.2.13, remote has version 3.2.13. [2020-11-12T22:29:06.885022+01:00][INFO][5738 main][ui::http_server][Some(“tabnine/ui/src/http_server.rs”)][Some(248)] Started config server at V4(127.0.0.1:5555). [2020-11-12T22:29:07.725371+01:00][INFO][5738 thread][lunar_local::downloader][Some(“deep/lunar_local/src/downloader.rs”)][Some(560)] Loaded cached metadata. [2020-11-12T22:29:07.725402+01:00][INFO][5738 thread][lunar_local::downloader][Some(“deep/lunar_local/src/downloader.rs”)][Some(177)] LunarLocalModelRelatedData { model_hash: “b8373e4b”, models_dir: Some(“/Users/baturaykaraduman/Library/Application Support/TabNine/models”) } [2020-11-12T22:29:07.725448+01:00][INFO][5738 metadata-updater][lunar_local::downloader][Some(“deep/lunar_local/src/downloader.rs”)][Some(556)] Checking for metadata update in background… [2020-11-12T22:29:08.246027+01:00][INFO][5738 metadata-updater][http_requests][Some(“shared/http_requests/src/lib.rs”)][Some(69)] Making API request to https://api.tabnine.com/model_metadata/v1 [2020-11-12T22:29:08.655380+01:00][INFO][5738 metadata-updater][lunar_local::downloader][Some(“deep/lunar_local/src/downloader.rs”)][Some(229)] Downloaded model metadata [hash=b8373e4b].

Editor console logs:

Help -> Toggle Developer Tools

Issue Details:

After upgrading tabnine to the newest version (3.1.8), my extension highlights for tsx and jsx files stopped working. This is definitely related to tabnine. I downgraded. It works fine now.

Screenshot 2020-11-12 at 20 39 33

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
phillystaffordcommented, Nov 16, 2020

@boaz-codota thanks for your help mate 🙏 Peace has been restored in the kingdom 😃🥂

4reactions
karadumanbcommented, Nov 13, 2020

Release v3.1.9: https://github.com/codota/tabnine-vscode/releases/tag/v3.1.9

Works good. Thank you 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

highlighting not working for ts tsx files · Issue #158 - GitHub
The syntax highlighting for ts and tsx files doesn't work. Is it the issue with the plugin? or some of the settings are...
Read more >
JS Highlighting doesn't work - Visual Studio Feedback
After updating to 16.3.4, syntax highlighting for js and ts files not working ... JS/JSX (possibly also ts/tsx) syntax highlighting doesn't work very...
Read more >
JSX Syntax Highlighting not working
Regular JavaScript is still highlighting fine, but I don't get code completion for components, or even syntax highlighting.
Read more >
Visual Studio Code syntax highlighting is not working for ...
I think this was caused by the extension called JavaScript and TypeScript Nightly. This was causing the syntax highlighting for .js and .ts ......
Read more >
How to Set Up VS Code for React Development - SitePoint
In this article, I'll highlight a selection of extensions and settings ... With TypeScript, JSX code is written in .tsx file extensions.
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