www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Has anyone tried making a QtCreator plugin for D and what is your

reply Enjoys Math <enjoysmath gmail.com> writes:
I'm 5 years an expert at PyQt5 in conjunction with 
QtCreator-designed widgets.  Where D is lacking is a good GUI 
editor and GUI library support.

I am starting by building a python-based project called QDmt = 
Qt/D manager

It will do for you, in a cross-platform way, the laborious task 
of compiling the Qt framework from git:

https://wiki.qt.io/Building_Qt_5_from_Git

And also it will guide you through building Qt Creator itself.  
We can then use this tool to help us hack the Qt Creator code and 
make it work for D (assuming a plugin isn't enough).

Building Qt is quite essential, as I am unable to get OpenGL 
support without building it for example.

So not only will we get traffic from TDPL people but from others 
who are only familiar with Qt and had to build it for some 
reason.  This would then be the goto tool for that.

Then they will see firsthand how easy it is (at the click of a 
few buttons) to work with D.

This will cause a huge influx of users to dlang.org and a rift in 
the spacetime continuum!
Jan 11
parent reply Laurent =?UTF-8?B?VHLDqWd1aWVy?= <laurent.treguier.sink gmail.com> writes:
On Friday, 11 January 2019 at 18:52:14 UTC, Enjoys Math wrote:
 I'm 5 years an expert at PyQt5 in conjunction with 
 QtCreator-designed widgets.  Where D is lacking is a good GUI 
 editor and GUI library support.

 I am starting by building a python-based project called QDmt = 
 Qt/D manager

 It will do for you, in a cross-platform way, the laborious task 
 of compiling the Qt framework from git:

 https://wiki.qt.io/Building_Qt_5_from_Git

 And also it will guide you through building Qt Creator itself.  
 We can then use this tool to help us hack the Qt Creator code 
 and make it work for D (assuming a plugin isn't enough).

 Building Qt is quite essential, as I am unable to get OpenGL 
 support without building it for example.

 So not only will we get traffic from TDPL people but from 
 others who are only familiar with Qt and had to build it for 
 some reason.  This would then be the goto tool for that.

 Then they will see firsthand how easy it is (at the click of a 
 few buttons) to work with D.

 This will cause a huge influx of users to dlang.org and a rift 
 in the spacetime continuum!
QtCreator 4.8.0 introduced support for the LSP last month : https://blog.qt.io/blog/2018/12/06/qt-creator-4-8-0-released I think I'm going to add it to the list of editors to look into and perhaps try to make a plugin for it.
Jan 12
parent reply Laurent =?UTF-8?B?VHLDqWd1aWVy?= <laurent.treguier.sink gmail.com> writes:
On Saturday, 12 January 2019 at 15:16:25 UTC, Laurent Tréguier 
wrote:
 QtCreator 4.8.0 introduced support for the LSP last month : 
 https://blog.qt.io/blog/2018/12/06/qt-creator-4-8-0-released

 I think I'm going to add it to the list of editors to look into 
 and perhaps try to make a plugin for it.
Correction: a language server can simply be set up in the LSP plugin's options after the plugin has been enabled, so some amount of D support is achievable already.
Jan 12
parent reply Enjoys Math <enjoysmath gmail.com> writes:
On Saturday, 12 January 2019 at 16:09:22 UTC, Laurent Tréguier 
wrote:
 On Saturday, 12 January 2019 at 15:16:25 UTC, Laurent Tréguier 
 wrote:
 QtCreator 4.8.0 introduced support for the LSP last month : 
 https://blog.qt.io/blog/2018/12/06/qt-creator-4-8-0-released

 I think I'm going to add it to the list of editors to look 
 into and perhaps try to make a plugin for it.
Correction: a language server can simply be set up in the LSP plugin's options after the plugin has been enabled, so some amount of D support is achievable already.
I see your links. Would you like to work on this together? Social coding is more powerful than solo coding IMO.
Jan 12
parent reply Laurent =?UTF-8?B?VHLDqWd1aWVy?= <laurent.treguier.sink gmail.com> writes:
On Saturday, 12 January 2019 at 20:10:40 UTC, Enjoys Math wrote:
 On Saturday, 12 January 2019 at 16:09:22 UTC, Laurent Tréguier 
 wrote:
 On Saturday, 12 January 2019 at 15:16:25 UTC, Laurent Tréguier 
 wrote:
 QtCreator 4.8.0 introduced support for the LSP last month : 
 https://blog.qt.io/blog/2018/12/06/qt-creator-4-8-0-released

 I think I'm going to add it to the list of editors to look 
 into and perhaps try to make a plugin for it.
Correction: a language server can simply be set up in the LSP plugin's options after the plugin has been enabled, so some amount of D support is achievable already.
I see your links. Would you like to work on this together? Social coding is more powerful than solo coding IMO.
Is it necessary to make a plugin though ? Syntax highlighting can be downloaded directly through QtCreator's syntax options, and then the new bundled LSP plugin can be configured directly to use any language server.
Jan 15
parent Mirjam Akkersdijk <noreply noreply.com> writes:
On Tuesday, 15 January 2019 at 21:51:57 UTC, Laurent Tréguier 
wrote:
 On Saturday, 12 January 2019 at 20:10:40 UTC, Enjoys Math wrote:
 On Saturday, 12 January 2019 at 16:09:22 UTC, Laurent Tréguier 
 wrote:
 On Saturday, 12 January 2019 at 15:16:25 UTC, Laurent 
 Tréguier wrote:
 QtCreator 4.8.0 introduced support for the LSP last month : 
 https://blog.qt.io/blog/2018/12/06/qt-creator-4-8-0-released

 I think I'm going to add it to the list of editors to look 
 into and perhaps try to make a plugin for it.
Correction: a language server can simply be set up in the LSP plugin's options after the plugin has been enabled, so some amount of D support is achievable already.
I see your links. Would you like to work on this together? Social coding is more powerful than solo coding IMO.
Is it necessary to make a plugin though ? Syntax highlighting can be downloaded directly through QtCreator's syntax options, and then the new bundled LSP plugin can be configured directly to use any language server.
As an avid C++ programmer I preferably work in QtCreator, though my heart really tends toward D, for which I usually just use plain old vim. https://blog.qt.io/blog/2019/02/21/qt-creator-4-9-beta-released/ With the new version, they seem to improve on the LSP which they introduced in the current version of 4.8. Has anyone tried it yet? I would switch in a beat if it has full D support.
Feb 23