mql4 compiler (Sublime text 3 plugin)
- Default key : ctrl + alt + m
- Using Metatrader 4 build 509
- Install with Sublime text Package manager
Dependencies (mac / linux)
- wine:
Linux:
sudo apt-get install wine
OS-X:
brew install wine
mql4 compiler for sublime text 3
Linux:
sudo apt-get install wine
OS-X:
brew install wine
para poder actualizar el compilador con la ultima versión conocida del metaeditor.exe, y que funcione la compilación, solo hay que modificar la linea 81 de mql4_compiler.py
" command = [METALANG_PATH,' /log:log.log /compile:./',self.filename] "
con esto se compila y genera el log en el mismo directorio donde esta el archivo mql4
espero les sea útil
Hi!
I really like sublime, is there an update for this Compiler so it orks with current versions of mt4?
Thanks!
I get error in console:
mql4compiler-master/metalang.exe
Mqlcompiler | error: metalang.exe not found
But metalang.exe is in mql4compiler-master folder.
(Sublime Text build 3059, Mac OSX version 10.9.4)
Hello. Good work.
I'm having a problem with this compiler.
I'm getting error msgs for the first directives in source code:
line 8:1 | 'version' - unknown property
line 9:1 | 'strict' - unknown property
line 9:1 | 'strict' - defined value expected
as in:
....
Do I have a misconfiguration, what can I do to enable correct compiling?
Thanks
If the message panel is already open (giving you the results) when you do a new compile, the new message for the new compile does not show.
MetaQuotes Language 4 compiler build 509 (24 Jun 2013)
I am getting this error in Sublime (OSX Sierra) console:
Mqlcompiler | error: wrong file extension: (.mql4)
Any ideas?
Have you considered porting this script to Python 3? I would love to be able to use it in ST3.
Without being a Python programmer, I was able to convert it to Python 3 (by using the 2to3 tool and following the errors). That part was simple enough, mainly changing print "" to print(). Then I kept getting TypeError: can't use a string pattern on a bytes-like object. This was fixed by strict casting a few of the strings to be bytes.
I hit my Python knowledge wall at the point where Sublime changed some of their APIs, specifically, begin_edit() and end_edit().
I do not have a strong enough Python background to make me feel comfortable actually submitting a pull request so hopefully this text will assist you in porting the complier, if you choose to do so.
And maybe this will help too, Sublime Text Porting Guide
It seems I have Python 2.6 on my Mac box and I'm getting the following error in the console view after compiling:
Traceback (most recent call last):
File "./sublime_plugin.py", line 362, in run_
File "./mql4_compiler.py", line 20, in run
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/posixpath.py", line 119, in dirname
i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.