Skip to content

Commit e2ee5cb

Browse files
committed
Trim whitespace from installPath when attempting to connect to MATLAB
1 parent 08df9ce commit e2ee5cb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ MATLAB language server supports these editors by installing the corresponding ex
2727

2828
### Unreleased
2929

30+
Fixed:
31+
* Leading or trailing whitespace in `installPath` setting is ignored when connecting to MATLAB
32+
3033
### 1.2.4
3134
Release date: 2024-07-12
3235

src/lifecycle/MatlabSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ async function getMatlabLaunchCommand (outFile: string): Promise<{ command: stri
387387
let command = 'matlab'
388388
if (matlabInstallPath !== '') {
389389
command = path.normalize(path.join(
390-
matlabInstallPath,
390+
matlabInstallPath.trim(),
391391
'bin',
392392
'matlab'
393393
))

0 commit comments

Comments
 (0)