EvgeniyPeshkov / syntax-highlighter

Syntax Highlighter extension for Visual Studio Code (VSCode). Based on Tree-sitter.
https://marketplace.visualstudio.com/items?itemName=evgeniypeshkov.syntax-highlighter
MIT License
217 stars 43 forks source link

UNRESPONSIVE extension host, 'evgeniypeshkov.syntax-highlighter' took 99% of 3835.234ms #67

Open samgermain opened 3 years ago

samgermain commented 3 years ago

Computer Details MacOS Big Sur 11.4 Mac mini (2018) 3.6 GHz Quad-Core Intel Core i3 20 GB 2667 MHz DDR4

Visual Studio Code Version: 1.59.1 (Universal) Commit: 3866c3553be8b268c8a7f8c0482c0c0177aa8bfa Date: 2021-08-19T11:53:52.479Z (1 day ago) Electron: 13.1.7 Chrome: 91.0.4472.124 Node.js: 14.16.0 V8: 9.1.269.36-electron.0 OS: Darwin x64 20.5.0

This issue might also be related

workbench.desktop.main.js:62 [Extension Host] (node:1570) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use `Code Helper (Renderer) --trace-deprecation ...` to show where the warning was created)
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:2897 [GitHub.vscode-pull-request-github]: `remoteHub/pullRequest` is not a valid menu identifier
_logMessageInConsole @ workbench.desktop.main.js:2897
workbench.desktop.main.js:1733 Overwriting grammar scope name to file mapping for scope source.sql.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/sql/syntaxes/sql.tmLanguage.json.
New grammar file: file:///Users/sam/.vscode/extensions/mtxr.sqltools-0.23.0/language/sql.tmLanguage.json
register @ workbench.desktop.main.js:1733
workbench.desktop.main.js:630 Overlapping semantic tokens detected at lineNumber 41, column 5
warnOverlappingSemanticTokens @ workbench.desktop.main.js:630
workbench.desktop.main.js:630   ERR Connection got disposed.: Error: Connection got disposed.
    at Object.dispose (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:59:59231)
    at Object.dispose (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:149976)
    at _.handleConnectionClosed (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:150188)
    at _.handleConnectionClosed (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:907385)
    at t (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:148281)
    at invoke (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:299800)
    at o.fire (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:300561)
    at X (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:59:48593)
    at invoke (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:299800)
    at o.fire (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:300561)
    at m.fireClose (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:59:42231)
    at Socket.<anonymous> (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:59:43013)
    at Socket.emit (events.js:315:20)
    at Socket.EventEmitter.emit (domain.js:467:12)
    at Pipe.<anonymous> (net.js:673:12)
workbench.desktop.main.js:749 The Python Tools server crashed 5 times in the last 3 minutes. The server will not be restarted.
onDidChangeNotification @ workbench.desktop.main.js:749
workbench.desktop.main.js:630  WARN Error: 
    at new i (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:394938)
    at Object.t.getTempFileWithDocumentContents (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:336436)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async l.provideDocumentFormattingEdits (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:351500)

EntryNotFound (FileSystemError): Unable to resolve non-existing file '/Users/sam/Documents/dev/trading/freqtrade/tests/exchange/test_exchange.py.51338c7429deefb514b03cc65cfe9927.tmp'
    at _handleError (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:85:158459)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async y.writeText (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:320459)
    at async Object.t.getTempFileWithDocumentContents (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:336336)
    at async l.provideDocumentFormattingEdits (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:351500)
workbench.desktop.main.js:62 [Extension Host] rejected promise not handled within 1 second: Error: Failed to create a temporary file, Unable to resolve non-existing file '/Users/sam/Documents/dev/trading/freqtrade/tests/exchange/test_exchange.py.51338c7429deefb514b03cc65cfe9927.tmp'
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] stack trace: Error:   at new i (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:394938)    at Object.t.getTempFileWithDocumentContents (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:336436) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async l.provideDocumentFormattingEdits (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:351500)EntryNotFound (FileSystemError): Unable to resolve non-existing file '/Users/sam/Documents/dev/trading/freqtrade/tests/exchange/test_exchange.py.51338c7429deefb514b03cc65cfe9927.tmp' at _handleError (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:85:158459)   at processTicksAndRejections (internal/process/task_queues.js:93:5) at async y.writeText (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:320459)    at async Object.t.getTempFileWithDocumentContents (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:336336)   at async l.provideDocumentFormattingEdits (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:351500)
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:630   ERR Failed to create a temporary file, Unable to resolve non-existing file '/Users/sam/Documents/dev/trading/freqtrade/tests/exchange/test_exchange.py.51338c7429deefb514b03cc65cfe9927.tmp': Error: 
    at new i (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:394938)
    at Object.t.getTempFileWithDocumentContents (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:336436)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async l.provideDocumentFormattingEdits (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:351500)

EntryNotFound (FileSystemError): Unable to resolve non-existing file '/Users/sam/Documents/dev/trading/freqtrade/tests/exchange/test_exchange.py.51338c7429deefb514b03cc65cfe9927.tmp'
    at _handleError (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:85:158459)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async y.writeText (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:320459)
    at async Object.t.getTempFileWithDocumentContents (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:336336)
    at async l.provideDocumentFormattingEdits (/Users/sam/.vscode/extensions/ms-python.python-2021.8.1147840270/out/client/extension.js:9:351500)
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/ftx.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/tests/exchange/test_exchange.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/tests/exchange/test_binance.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/exchange.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/ccxt-scratch/exchange.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/tests/exchange/test_binance.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/ftx.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/exchange.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/tests/exchange/test_exchange.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/ftx.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/kraken.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/tests/exchange/test_exchange.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/exchange.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/binance.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/tests/leverage/test_leverage.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/ftx.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/kraken.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/binance.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/tests/exchange/test_exchange.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/exchange.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/ftx.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/kraken.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/binance.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/freqtradebot.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/tests/exchange/test_exchange.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/kraken.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/ftx.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/tests/exchange/test_exchange.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/exchange.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/freqtrade/exchange/binance.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:2902 Extension Host
workbench.desktop.main.js:2902 Debugger attached.
workbench.desktop.main.js:630  WARN UNRESPONSIVE extension host, 'evgeniypeshkov.syntax-highlighter' took 99% of 3835.234ms, saved PROFILE here: 'file:///var/folders/l8/5_4psbl16b511sj_st2gfxn00000gn/T/exthost-018f67.cpuprofile' Array(5)
workbench.desktop.main.js:62 [Extension Host] No editors associated with document: /Users/sam/Documents/dev/trading/freqtrade/tests/exchange/test_exchange.py
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:2902 Extension Host
workbench.desktop.main.js:2902 Debugger attached.
workbench.desktop.main.js:630  WARN UNRESPONSIVE extension host, 'evgeniypeshkov.syntax-highlighter' took 92% of 5181.938ms, saved PROFILE here: 'file:///var/folders/l8/5_4psbl16b511sj_st2gfxn00000gn/T/exthost-8b3f53.cpuprofile' Array(2)
workbench.desktop.main.js:630   ERR Cannot call write after a stream was destroyed: Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
    at onwriteError (internal/streams/writable.js:389:22)
    at onwrite (internal/streams/writable.js:426:7)
    at internal/streams/destroy.js:60:7
    at Socket._destroy (net.js:678:5)
    at Socket.destroy (internal/streams/destroy.js:39:8)
    at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:95:12)
workbench.desktop.main.js:2897 Extension host terminated unexpectedly. Code:  null  Signal:  SIGKILL
_onExtensionHostCrashed @ workbench.desktop.main.js:2897
workbench.desktop.main.js:630   ERR Extension host terminated unexpectedly. The following extensions were running: vscode.microsoft-authentication, aaron-bond.better-comments, GrapeCity.gc-excelviewer, mechatroner.rainbow-csv, evgeniypeshkov.syntax-highlighter, ms-python.python, ms-toolsai.jupyter, VisualStudioExptTeam.vscodeintellicode, vscode.debug-auto-launch, vscode.git, christian-kohler.path-intellisense, CoenraadS.bracket-pair-colorizer, GitHub.vscode-pull-request-github, ionutvmi.path-autocomplete, mtxr.sqltools, naumovs.color-highlight, njqdev.vscode-python-typehint, vscode.github-authentication, ms-vscode.js-debug, mtxr.sqltools-driver-sqlite, vscode.github, vscode.emmet, vscode.merge-conflict, alefragnani.Bookmarks, eamodio.gitlens, ms-python.vscode-pylance
workbench.desktop.main.js:749 Extension host terminated unexpectedly.
onDidChangeNotification @ workbench.desktop.main.js:749
workbench.desktop.main.js:630  WARN Canceled: Canceled
    at Object.g [as canceled] (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:8:1157)
    at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1549:7360
    at Array.forEach (<anonymous>)
    at r.dispose (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1549:7308)
    at br.dispose (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1581:4941)
    at tl.stopExtensionHosts (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2897:141835)
    at tl._onExtensionHostCrashed (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2897:142676)
    at tl._onExtensionHostCrashed (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2903:5266)
    at tl._onExtensionHostCrashOrExit (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2897:142479)
    at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2897:142239
    at l.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60:1712)
    at $._onExtHostProcessExit (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2902:13712)
    at ChildProcess.<anonymous> (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2902:9145)
    at ChildProcess.emit (events.js:315:20)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/3866c3553be8b268c8a7f8c0482c0c0177aa8bfa/core/vs/workbench/workbench.desktop.main.js.map: Load canceled due to load timeout