Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Build on linux #2

Open
RivelinoDomingo opened this issue May 19, 2021 · 2 comments
Open

Problem with Build on linux #2

RivelinoDomingo opened this issue May 19, 2021 · 2 comments

Comments

@RivelinoDomingo
Copy link

I have here a Kde Neon 5.21, and Sublime Text 3.2.2, and also MT5, MetaEditor, installed by wine..

at the time of compiling an error (" [Errno 2] No such file or directory: '/home/rivelino/.config/sublime-text-3/Packages\User\sublime_mql5\buildMQL5.bat'
[cmd: ['/home/rivelino/.config/sublime-text-3/Packages\User\sublime_mql5\buildMQL5.bat', '', '', '']]
[dir: /opt/sublime_text]
[path: /home/rivelino/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin]
[Finished] ")

Do you know if it is possible to do the procedure through Linux using Wine?

@rodrigopandini
Copy link
Owner

Hi @RivelinoDomingo
Seems that is a problem with the path syntax. You are using back slash \ and also slash / in the path.
Try to change to use only one of them.
Also I'm not sure if you can run a .bat file on Linux OS. So try to change to .sh and make it executable (chmod u+x script.sh).
Or try to run as a "Windows file" but using the Wine as runner. Something like this: wine /path/to/script.bat.

Sorry but have a while that I don't run this project (years, actually). At the time, I as using only windows.
As soon as possible I will try to run it with Wine in Linux.

Let me know anything.

@RivelinoDomingo
Copy link
Author

RivelinoDomingo commented Jun 13, 2021

Yes, my friend, I made some modifications to the MQL5.sublime-build file, directing it to a Bash executable;
and I also created an executable similar to your .Bat but mine in .sh

"selector": "source.mq5",
"cmd": ["/bin/bash", "$packages/sublime_mql5/buildMQL5.sh", "$file_path", "$file_base_name", "$file_extension"],
"word_wrap": true,
"variants": [
{ "name": "Syntax Check",
"cmd": ["/bin/bash","$packages/sublime_mql5/buildMQL5.sh", "$file_path", "$file_base_name", "$file_extension", "/s"]

Anyway thanks for the project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants