Skip to content

Commit 84e0c91

Browse files
committed
Merge branch 'master' into tcp_mode2
2 parents e1660c7 + e5b7b73 commit 84e0c91

File tree

2 files changed

+23
-10
lines changed

2 files changed

+23
-10
lines changed

packages/jupyterlab-lsp/src/components/statusbar.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -340,17 +340,16 @@ class LSPPopup extends VDomRenderer<LSPStatus.Model> {
340340
);
341341
}
342342
);
343+
const trans = this.model.trans;
343344
return (
344345
<div className={'lsp-popover-content'}>
345346
<div className={'lsp-servers-menu'}>
346-
<h3 className={'lsp-servers-title'}>
347-
{this.model.trans.__('LSP servers')}
348-
</h3>
347+
<h3 className={'lsp-servers-title'}>{trans.__('LSP servers')}</h3>
349348
<div className={'lsp-servers-lists'}>
350349
{servers_available.length ? (
351350
<CollapsibleList
352351
key={'available'}
353-
title={this.model.trans.__('Available')}
352+
title={trans.__('Available')}
354353
list={servers_available}
355354
startCollapsed={true}
356355
/>
@@ -360,7 +359,7 @@ class LSPPopup extends VDomRenderer<LSPStatus.Model> {
360359
{running_servers.length ? (
361360
<CollapsibleList
362361
key={'running'}
363-
title={this.model.trans.__('Running')}
362+
title={trans.__('Running')}
364363
list={running_servers}
365364
/>
366365
) : (
@@ -369,7 +368,7 @@ class LSPPopup extends VDomRenderer<LSPStatus.Model> {
369368
{missing_languages.length ? (
370369
<CollapsibleList
371370
key={'missing'}
372-
title={this.model.trans.__('Missing')}
371+
title={trans.__('Missing')}
373372
list={missing_languages}
374373
/>
375374
) : (
@@ -378,15 +377,15 @@ class LSPPopup extends VDomRenderer<LSPStatus.Model> {
378377
</div>
379378
</div>
380379
<div className={'lsp-popover-status'}>
381-
{this.model.trans.__('Documentation:')}{' '}
380+
{trans.__('Documentation:')}{' '}
382381
<a
383382
href={
384383
'https://jupyterlab-lsp.readthedocs.io/en/latest/Language%20Servers.html'
385384
}
386385
target="_blank"
387386
rel="noreferrer"
388387
>
389-
{this.model.trans.__('Language Servers')}
388+
{trans.__('Language Servers')}
390389
</a>
391390
</div>
392391
</div>
@@ -845,7 +844,7 @@ export namespace LSPStatus {
845844
uninitialized.delete(initialized);
846845
}
847846
// servers for n documents did not respond to the initialization request
848-
msg = this.trans.__(
847+
msg = this.trans._n(
849848
'Fully connected, but %2/%3 virtual document stuck uninitialized: %4',
850849
'Fully connected, but %2/%3 virtual documents stuck uninitialized: %4',
851850
status.detected_documents.size,
@@ -859,7 +858,7 @@ export namespace LSPStatus {
859858
unconnected.delete(connected);
860859
}
861860

862-
msg = this.trans.__(
861+
msg = this.trans._n(
863862
'%2/%3 virtual document connected (%4 connections; waiting for: %5)',
864863
'%2/%3 virtual documents connected (%4 connections; waiting for: %5)',
865864
status.detected_documents.size,

python_packages/jupyter_lsp/jupyter_lsp/specs/texlab.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
from .config import load_config_schema
22
from .utils import ShellSpec
33

4+
TROUBLESHOOT = """\
5+
Please ensure that texlab executable is in the PATH; \
6+
this should happen automatically when installing texlab from Conda, \
7+
but may require manual configuration of PATH environment variable \
8+
if you compiled texlab from source.
9+
10+
You can ensure check if texlab is in the PATH, by running:
11+
12+
which texlab
13+
14+
which should return the path to the executable (if found).
15+
"""
16+
417

518
class Texlab(ShellSpec):
619
cmd = key = "texlab"
@@ -15,4 +28,5 @@ class Texlab(ShellSpec):
1528
install=dict(conda="conda install -c conda-forge texlab chktex"),
1629
config_schema=load_config_schema(key),
1730
env=dict(RUST_BACKTRACE="1"),
31+
troubleshoot=TROUBLESHOOT,
1832
)

0 commit comments

Comments
 (0)