MATLAB-extension-for-vscode
MATLAB-extension-for-vscode copied to clipboard
A window ”This feature is not available without MATLAB running.“ keep pop up
I didn't install matlab on my computer and I just need to edit some .m file without running them, but when I type ctrl, a window "This feature is not available without MATLAB running." always pop up. Is there any way to disable those feature or stop window from poping up? Thanks!
This also appears when MATLAB is installed but the "Matlab Connection Timing" setting is set to "never", i.e. MATLAB is not running in the background.
Please add more details to the error popup (what is "this feature"?) and the option to disable the popup when MATLAB is intentionally not running.
Thanks for raising this! I don't believe there is currently a way to prevent this popups from appearing. We will look into means to silence them.
As a workaround, navigate to ~/.vscode-server/extensions/mathworks.language-matlab-1.1.4/out/extension.js and comment out these lines:
client.onNotification(Notification.MatlabLaunchFailed, () => handleMatlabLaunchFailed());
client.onNotification(Notification.MatlabFeatureUnavailable, () => handleFeatureUnavailable());
client.onNotification(Notification.MatlabFeatureUnavailableNoMatlab, () => handleFeatureUnavailableWithNoMatlab());
Reload the window and the annoying notifications won't appear anymore.
Am I really the only one who installed this extension just for the syntax highlighting? I don't want to actually run MATLAB.
As a workaround, navigate to ~/.vscode-server/extensions/mathworks.language-matlab-1.1.4/out/extension.js and comment out these lines:
client.onNotification(Notification.MatlabLaunchFailed, () => handleMatlabLaunchFailed()); client.onNotification(Notification.MatlabFeatureUnavailable, () => handleFeatureUnavailable()); client.onNotification(Notification.MatlabFeatureUnavailableNoMatlab, () => handleFeatureUnavailableWithNoMatlab());
Reload the window and the annoying notifications won't appear anymore.
Am I really the only one who installed this extension just for the syntax highlighting? I don't want to actually run MATLAB.
@Lachcim , have you considered changing the setting under MATLAB: Matlab Connection Timing to "never"? That setting will make extension to not start MATLAB on your system and hence you should not see those errors.
@hamidingit Did you read the previous two comments? This is exactly what we tried and this is exactly what isn't working.
I went the extra mile for you and tracked down the source of this bug. Turns out that the notification is sent by the handleDefOrRefRequest
function in mathworks/MATLAB-language-server. This in turn is called by Connection.onDefinition
when the user presses CTRL while the text cursor is hovering over a symbol. The notification keeps popping up whenever the user presses CTRL+S to save, hence the annoyance.
You guys will have to take over from here.
A new setting to hide these popups has been added in v1.2.5, and the popups now contain a button to hide future occurrences.