suggestions

53 views
Skip to first unread message

me you

unread,
Nov 18, 2022, 3:01:32 PM11/18/22
to The Ring Programming Language
why the ring vscode extension does not support suggestions? the ring QT function names are very long and it takes a long time to write. also the ring editor does not support this correctly.

Mahmoud Fayed

unread,
Nov 19, 2022, 2:55:35 AM11/19/22
to The Ring Programming Language
Hello

Ring Notepad is just a Notepad (Not Complete IDE)
I remember writing it 2 days before Ring 1.0 release in 2016
It was just an example about using RingQt

Later, and along the time it's improved with more features including (Form Designer, REPL, Find In Files, Classes/Functions Lists, Styles & Modes, Files Tabs, The ability to run web applications from any folder, etc.)

It's open-source, written in Ring itself, if you need more features, You can implement it : https://github.com/ring-lang/ring/tree/master/tools/ringnotepad

Inside Ring Notepad, You can get the methods names in RingQt classes quickly by typing the class name then _
I know that it's not enough, but this could help in some situations
shot1.png

I don't have time to invest in Ring Notepad, because I am already investing my time in something better (Programming Without Coding Technology 2.0)
In PWCT 2.0 - We go forward in this direction as you can see in the next screen shot
All of the class methods appears including parameters & output
Also, everything is visual, the language is an open book that you can explore using components
No Syntax Errors, and you have the Time dimension to see the program step-by-step
And if you know Ring, you can write Ring code too, and it will be converted to the Steps Tree


shot2.png

Greetings,
Mahmoud

Ilir

unread,
Nov 19, 2022, 4:52:14 AM11/19/22
to The Ring Programming Language
Hello All,

I suggest to add suggestions at Ring VM level acting as a server. Whenever parser reaches text ending with & (because underscore can be integral part of the word including the end, but ampersand cannot - it comes before the word as return by item reference instruction), responds with all what can find, including parsed .ct files (if necessary).

Then each extension can work in automated (sending source code up to & by default) or manual mode where extension sends source code at request by the user typing & at the end of the word.

Greetings,
Ilir

me you

unread,
Nov 19, 2022, 11:16:58 AM11/19/22
to The Ring Programming Language
Hello Mahmoud and Ilir,

Mahmoud, thanks for making it clear. I hope Programming Without Coding Technology 2.0 will be successful.

Ilir thanks for your suggestion. i tried to do something like that myself. but i don't have enough experience for it.

can you watch this video. it is exactly about language server protocol from microsoft



do you have the experience to implement something like this?

Ilir

unread,
Nov 19, 2022, 12:18:55 PM11/19/22
to The Ring Programming Language
Hello All,

I don't have experience in doing this, but I know where to start. Haxe compiler can run in server mode (uses cache) to act as Haxe language server giving suggestions


From there, you can grasp how it can be implemented. If you are unfamiliar with the Haxe language (basically it is ActionScript with syntax suggar) I can help you, starting from next year because I have other things to do now. I planned to do something about this, but not before Ring2D (Debug&Deploy) which is planned earliest in 2024.

Greetings,
Ilir

Mansour Ayouni

unread,
Nov 19, 2022, 12:23:02 PM11/19/22
to Ilir, The Ring Programming Language
Hello Ilir,

In fact, the Haxe solution implements the Language Server Protocol from Microsoft.

I think this is the way to go for anyone who thinks of providing code completion support for Ring in any IDE.

Best,
Mansour

--

---
You received this message because you are subscribed to the Google Groups "The Ring Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ring-lang+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ring-lang/97c719d4-3c75-478a-8a50-4a9c918c1507n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages