Is there a free / open source code tool for formatting M programs to ensure consistent formatting? There are tools for other languages, but I don't know if one exists for M. Thank you very much, in advance.
Regards
– Bhaskar
On Monday, August 24, 2020 at 1:05:30 PM UTC-4, K.S. Bhaskar wrote:
Is there a free / open source code tool for formatting M programs to ensure consistent formatting? There are tools for other languages, but I don't know if one exists for M. Thank you very much, in advance.
Regards
– Bhaskar
I don't know of one either. George James Serenji for VS Code is free, but not open source I don't believe. It is an excellent syntax highlighter for that platform, but doesn't enforce any coding/format style.
Mark
On Monday, August 24, 2020 at 1:51:50 PM UTC-4, OldMster wrote:
On Monday, August 24, 2020 at 1:05:30 PM UTC-4, K.S. Bhaskar wrote:
Is there a free / open source code tool for formatting M programs to ensure consistent formatting? There are tools for other languages, but I don't know if one exists for M. Thank you very much, in advance.
Regards
– Bhaskar
I don't know of one either. George James Serenji for VS Code is free, but not open source I don't believe. It is an excellent syntax highlighter for that platform, but doesn't enforce any coding/format style.
Mark
Thanks Mark. I'm looking for a tool we can insert in a Continuous Integration pipeline to ensure consistent formatting of M programs. Joel Ivy's tool at https://github.com/kench/M-Tools might work.
Regards
– Bhaskar
Is there a free / open source code tool for formatting M programs to ensure consistent formatting? There are tools for other languages, but I don't know if one exists for M. Thank you very much, in advance.Hello Bashkar,
Regards
– Bhaskar
K.S. Bhaskar schrieb am Montag, 24. August 2020 um 19:05:30 UTC+2:
Is there a free / open source code tool for formatting M programs to ensure consistent formatting? There are tools for other languages, but I don't know if one exists for M. Thank you very much, in advance.
RegardsHello Bashkar,
– Bhaskar
could you please give an example (inpit => output) what the tool should do please?
Greetings
Winfried
On Tuesday, September 29, 2020 at 9:27:29 AM UTC-4, winfrie...@e-ntwicklung.de wrote:
K.S. Bhaskar schrieb am Montag, 24. August 2020 um 19:05:30 UTC+2:
Is there a free / open source code tool for formatting M programs to ensure consistent formatting? There are tools for other languages, but I don't know if one exists for M. Thank you very much, in advance.
RegardsHello Bashkar,
– Bhaskar
could you please give an example (inpit => output) what the tool should do please?
Greetings
WinfriedWinfried –
The goal is to take M code written by different programmers and get it into a consistent format. I don't have many specific rules in mind, but the format should be consistent in order to improve readability, e.g.:
- Non label lines to start with a single tab
- Each dot level is a dot followed by a single space
- Consistent capitalization of commands, functions, and ISVs
Regards
– Bhaskar
K.S. Bhaskar schrieb am Dienstag, 29. September 2020 um 16:09:44 UTC+2:
On Tuesday, September 29, 2020 at 9:27:29 AM UTC-4, winfrie...@e-ntwicklung.de wrote:
K.S. Bhaskar schrieb am Montag, 24. August 2020 um 19:05:30 UTC+2:
Is there a free / open source code tool for formatting M programs to ensure consistent formatting? There are tools for other languages, but I don't know if one exists for M. Thank you very much, in advance.
RegardsHello Bashkar,
– Bhaskar
could you please give an example (inpit => output) what the tool should do please?
Greetings
WinfriedWinfried –
The goal is to take M code written by different programmers and get it into a consistent format. I don't have many specific rules in mind, but the format should be consistent in order to improve readability, e.g.:
- Non label lines to start with a single tab
- Each dot level is a dot followed by a single space
- Consistent capitalization of commands, functions, and ISVs
RegardsI've written an Extension for Visual Studio Code, which provides a Debugger, Syntax-Highlighting, Help with Function-Signatures and Formatting Help.
– Bhaskar
It has also a new Feature to toggle between short and long M Commands.(Open M-File and press Ctrl-E) It's not tested too much but looks good so far.
Regards Jens
четверг, 8 апреля 2021 г. в 10:33:05 UTC+3, Jens:
K.S. Bhaskar schrieb am Dienstag, 29. September 2020 um 16:09:44 UTC+2:
On Tuesday, September 29, 2020 at 9:27:29 AM UTC-4, winfrie...@e-ntwicklung.de wrote:
K.S. Bhaskar schrieb am Montag, 24. August 2020 um 19:05:30 UTC+2:
Is there a free / open source code tool for formatting M programs to ensure consistent formatting? There are tools for other languages, but I don't know if one exists for M. Thank you very much, in advance.
RegardsHello Bashkar,
– Bhaskar
could you please give an example (inpit => output) what the tool should do please?
Greetings
WinfriedWinfried –
The goal is to take M code written by different programmers and get it into a consistent format. I don't have many specific rules in mind, but the format should be consistent in order to improve readability, e.g.:
- Non label lines to start with a single tab
- Each dot level is a dot followed by a single space
- Consistent capitalization of commands, functions, and ISVs
RegardsI've written an Extension for Visual Studio Code, which provides a Debugger, Syntax-Highlighting, Help with Function-Signatures and Formatting Help.
– Bhaskar
It has also a new Feature to toggle between short and long M Commands.(Open M-File and press Ctrl-E) It's not tested too much but looks good so far.
doing wrong?Regards JensGood day !
I'm interested in this topic. I myself developed an editor for M using the CodeMirror utility and FCGI W. Bantel. (special thanks to him!)
I can't connect to the GT.M database from your application in any way - i do everything according to the instructions as described. I don't see a list of routines ... I'm working on a client with VS Code Windows. The server is on CENTOS 8. What am i
gont...@gmail.com schrieb am Freitag, 9. April 2021 um 07:39:18 UTC+2:
четверг, 8 апреля 2021 г. в 10:33:05 UTC+3, Jens:
K.S. Bhaskar schrieb am Dienstag, 29. September 2020 um 16:09:44 UTC+2:
On Tuesday, September 29, 2020 at 9:27:29 AM UTC-4, winfrie...@e-ntwicklung.de wrote:
K.S. Bhaskar schrieb am Montag, 24. August 2020 um 19:05:30 UTC+2:
Is there a free / open source code tool for formatting M programs to ensure consistent formatting? There are tools for other languages, but I don't know if one exists for M. Thank you very much, in advance.
RegardsHello Bashkar,
– Bhaskar
could you please give an example (inpit => output) what the tool should do please?
Greetings
WinfriedWinfried –
The goal is to take M code written by different programmers and get it into a consistent format. I don't have many specific rules in mind, but the format should be consistent in order to improve readability, e.g.:
- Non label lines to start with a single tab
- Each dot level is a dot followed by a single space
- Consistent capitalization of commands, functions, and ISVs
RegardsI've written an Extension for Visual Studio Code, which provides a Debugger, Syntax-Highlighting, Help with Function-Signatures and Formatting Help.
– Bhaskar
It has also a new Feature to toggle between short and long M Commands.(Open M-File and press Ctrl-E) It's not tested too much but looks good so far.
doing wrong?Regards JensGood day !
I'm interested in this topic. I myself developed an editor for M using the CodeMirror utility and FCGI W. Bantel. (special thanks to him!)
I can't connect to the GT.M database from your application in any way - i do everything according to the instructions as described. I don't see a list of routines ... I'm working on a client with VS Code Windows. The server is on CENTOS 8. What am i
MDEBUG just provides the control over the Debug-Process. I'm working with the routines-directory over a samba share mapped to Drive y: on windows.
Tell me if this works for you too.
-------- relevant part of /etc/samba/smb.conf :
[routines]
comment = Mumps routines
path = /var/lib/yottadb/r
browseable = yes
writeable = yes
----------------------------
пятница, 9 апреля 2021 г. в 15:36:06 UTC+3, Jens:
gont...@gmail.com schrieb am Freitag, 9. April 2021 um 07:39:18 UTC+2:
четверг, 8 апреля 2021 г. в 10:33:05 UTC+3, Jens:
K.S. Bhaskar schrieb am Dienstag, 29. September 2020 um 16:09:44 UTC+2:
On Tuesday, September 29, 2020 at 9:27:29 AM UTC-4, winfrie...@e-ntwicklung.de wrote:
K.S. Bhaskar schrieb am Montag, 24. August 2020 um 19:05:30 UTC+2:
Is there a free / open source code tool for formatting M programs to ensure consistent formatting? There are tools for other languages, but I don't know if one exists for M. Thank you very much, in advance.
RegardsHello Bashkar,
– Bhaskar
could you please give an example (inpit => output) what the tool should do please?
Greetings
WinfriedWinfried –
The goal is to take M code written by different programmers and get it into a consistent format. I don't have many specific rules in mind, but the format should be consistent in order to improve readability, e.g.:
- Non label lines to start with a single tab
- Each dot level is a dot followed by a single space
- Consistent capitalization of commands, functions, and ISVs
RegardsI've written an Extension for Visual Studio Code, which provides a Debugger, Syntax-Highlighting, Help with Function-Signatures and Formatting Help.
– Bhaskar
It has also a new Feature to toggle between short and long M Commands.(Open M-File and press Ctrl-E) It's not tested too much but looks good so far.
i doing wrong?Regards JensGood day !
I'm interested in this topic. I myself developed an editor for M using the CodeMirror utility and FCGI W. Bantel. (special thanks to him!)
I can't connect to the GT.M database from your application in any way - i do everything according to the instructions as described. I don't see a list of routines ... I'm working on a client with VS Code Windows. The server is on CENTOS 8. What am
The Problem is, that the Debugger doesn't know where to find source files in your case. So you have to use the Samba share or alternatively the Remote-SSH Extension for VS-Code.MDEBUG just provides the control over the Debug-Process. I'm working with the routines-directory over a samba share mapped to Drive y: on windows.
Tell me if this works for you too.
-------- relevant part of /etc/samba/smb.conf :
[routines]
comment = Mumps routines
path = /var/lib/yottadb/r
browseable = yes
writeable = yes
----------------------------I use the WinSCP utility and there in the settings I specify which editor to open (those VS Code)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 225:11:02 |
Calls: | 6,623 |
Calls today: | 5 |
Files: | 12,171 |
Messages: | 5,318,597 |