L-I-V / MQL-Tools

42 stars 15 forks source link

File is outside the workspace MQL5 #50

Closed Badzoneyv4n closed 4 months ago

Badzoneyv4n commented 4 months ago

Hello LIV thank you for this extension, I don't know why i keep gating this "[Error] The file is outside the workspace MQL5" I'm using linux debian 12. and the mq5 file is in experts folder. Even when I select a . mq5 file and select open with metaeditor meta editor won't open. But when I click any word and f1 for help, mql5 reference opens.

Screenshot at 2024-02-09 03-52-04

Badzoneyv4n commented 4 months ago

I think the problem was in the path of MetaEditor64.exe , So I replaced the path with

'${workspaceFolder}/../MetaEditor64.exe'

in both user and workspace in the extension's settings.

Screenshot at 2024-02-10 17-03-08

kenorb commented 2 months ago

I've tried to set to:

${workspaceFolder}/../home/vscode/.wine/drive_c/Program Files/MetaTrader 5/MetaEditor64.exe

but it didn't work either.

[Error] 'Invalid path to "metaeditor.exe": MQL5' [ /workspaces/home/vscode/.wine/drive_c/Program Files/MetaTrader 5/MetaEditor64.exe ]