www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Mono-D v1.5.2 - Completion improvements, dub support fixes

reply "Alexander Bothe" <info alexanderbothe.com> writes:
Hi everyone,

Just wanted to announce a new minor version bump of Mono-D.

There have been couple of completion/parser improvements like 
inline-assembly instruction completion (thanks Orvid who spent a 
whole bunch of time for submitting PRs and making the parser work 
even faster! :-) )

(method-body-omitting multi-threaded scan for phobos&druntime 
takes ~200ms without IO, ~800ms with IO atm on .Net/Windows -- 
pretty sufficient!)

Blog/Installation manual:
http://mono-d.alexanderbothe.com

Issues:
https://github.com/aBothe/Mono-D/issues



Cheers,
Alex
Feb 12 2014
next sibling parent reply "Alexander Bothe" <info alexanderbothe.com> writes:
For those who don't know what Mono-D is:

It's a plug-in for XamarinStudio to give it D 
editing/building/debugging/project management support which 
features a large amount of features like semantic highlighting, 
code completion (now there even is a bit CTFE available for 
better mixin pre-compile time analysis available), standard code 
navigation stuff like goto declaration or looking up 
variable/symbol references in the currently edited file - or 
well, just take a look at some of the screenshots uploaded to the 
blog.
Feb 12 2014
parent reply "Alexander Bothe" <info alexanderbothe.com> writes:
Okay, just implemented a completion mode for method overrides.

I won't explain this over here, as there are screenshots 
depicting everything properly already :-)

http://mono-d.alexanderbothe.com/method-override-completion-v1-6/
Feb 13 2014
parent reply "evilrat" <evilrat666 gmail.com> writes:
On Friday, 14 February 2014 at 01:26:18 UTC, Alexander Bothe
wrote:
 Okay, just implemented a completion mode for method overrides.

 I won't explain this over here, as there are screenshots 
 depicting everything properly already :-)

 http://mono-d.alexanderbothe.com/method-override-completion-v1-6/
new version is cool, but i have found one bug already. when using autocompletion with symbol having trailing numbers in name it matches only last trailing char, for example trying to get completion for ID3D1 will match ID3D10(properly) stuff and also ID3D(1)1.... with (1) grayed out, making it impossible to get completion for ID3D11 string. i'm still can't figure exact cases when it happens.
Feb 14 2014
parent "extrawurst" <stephan extrawurst.org> writes:
On Friday, 14 February 2014 at 08:40:04 UTC, evilrat wrote:
 On Friday, 14 February 2014 at 01:26:18 UTC, Alexander Bothe
 wrote:
 Okay, just implemented a completion mode for method overrides.

 I won't explain this over here, as there are screenshots 
 depicting everything properly already :-)

 http://mono-d.alexanderbothe.com/method-override-completion-v1-6/
new version is cool, but i have found one bug already. when using autocompletion with symbol having trailing numbers in name it matches only last trailing char, for example trying to get completion for ID3D1 will match ID3D10(properly) stuff and also ID3D(1)1.... with (1) grayed out, making it impossible to get completion for ID3D11 string. i'm still can't figure exact cases when it happens.
Consider filing an issue for this stuff on github: https://github.com/aBothe/D_Parser Alex usually fixes those kind of issues very fast.
Feb 14 2014
prev sibling parent reply "Rene Zwanenburg" <renezwanenburg gmail.com> writes:
On Thursday, 13 February 2014 at 00:46:02 UTC, Alexander Bothe
wrote:
 Hi everyone,

 Just wanted to announce a new minor version bump of Mono-D.

 There have been couple of completion/parser improvements like 
 inline-assembly instruction completion (thanks Orvid who spent 
 a whole bunch of time for submitting PRs and making the parser 
 work even faster! :-) )

 (method-body-omitting multi-threaded scan for phobos&druntime 
 takes ~200ms without IO, ~800ms with IO atm on .Net/Windows -- 
 pretty sufficient!)

 Blog/Installation manual:
 http://mono-d.alexanderbothe.com

 Issues:
 https://github.com/aBothe/Mono-D/issues



 Cheers,
 Alex
I'm trying Mono-D for the first time and I must say I'm really enjoying the autocomplete. It's not giving suggestions for Phobos though. Includes in D Compiler Toolchains have been set correctly. Any idea what's wrong?
Feb 15 2014
next sibling parent reply "extrawurst" <stephan extrawurst.org> writes:
On Saturday, 15 February 2014 at 14:31:15 UTC, Rene Zwanenburg
wrote:
 On Thursday, 13 February 2014 at 00:46:02 UTC, Alexander Bothe
 wrote:
 Hi everyone,

 Just wanted to announce a new minor version bump of Mono-D.

 There have been couple of completion/parser improvements like 
 inline-assembly instruction completion (thanks Orvid who spent 
 a whole bunch of time for submitting PRs and making the parser 
 work even faster! :-) )

 (method-body-omitting multi-threaded scan for phobos&druntime 
 takes ~200ms without IO, ~800ms with IO atm on .Net/Windows -- 
 pretty sufficient!)

 Blog/Installation manual:
 http://mono-d.alexanderbothe.com

 Issues:
 https://github.com/aBothe/Mono-D/issues



 Cheers,
 Alex
I'm trying Mono-D for the first time and I must say I'm really enjoying the autocomplete. It's not giving suggestions for Phobos though. Includes in D Compiler Toolchains have been set correctly. Any idea what's wrong?
You have to set up the paths of phobos in mono-d like described under "3. Mono-D installation & setup" on mono-d website: http://mono-d.alexanderbothe.com/download/
Feb 15 2014
parent "Rene Zwanenburg" <renezwanenburg gmail.com> writes:
On Saturday, 15 February 2014 at 14:44:13 UTC, extrawurst wrote:
 On Saturday, 15 February 2014 at 14:31:15 UTC, Rene Zwanenburg
 wrote:
 I'm trying Mono-D for the first time and I must say I'm really
 enjoying the autocomplete. It's not giving suggestions for 
 Phobos
 though. Includes in D Compiler Toolchains have been set
 correctly. Any idea what's wrong?
You have to set up the paths of phobos in mono-d like described under "3. Mono-D installation & setup" on mono-d website: http://mono-d.alexanderbothe.com/download/
I double checked the import paths, but they're really correct. Any other ideas?
Feb 15 2014
prev sibling parent reply "Alexander Bothe" <info alexanderbothe.com> writes:
On Saturday, 15 February 2014 at 14:31:15 UTC, Rene Zwanenburg 
wrote:
 I'm trying Mono-D for the first time and I must say I'm really
 enjoying the autocomplete. It's not giving suggestions for 
 Phobos
 though. Includes in D Compiler Toolchains have been set
 correctly. Any idea what's wrong?
1) On which OS are you working? 2) What are your include paths? 3) Are those paths put into the 'default' compiler config (aka DMD2 should be the default) 4) Have you opened up a dub project or did you create one directly in Mono-D? 5) Could you pastebin me your last log file(s) please? (You can open the folder via 'Help' menu -> Open Log directory) 6) Try to put the include paths into the project settings and try to get phobos symbol completion afterwards.
Feb 15 2014
parent reply "Rene Zwanenburg" <renezwanenburg gmail.com> writes:
On Saturday, 15 February 2014 at 20:28:03 UTC, Alexander Bothe 
wrote:
 1) On which OS are you working?
Windows 7 64 bit
 2) What are your include paths?
I'm using the default install directory: C:\D\dmd2\src\druntime\import C:\D\dmd2\src\phobos
 3) Are those paths put into the 'default' compiler config (aka 
 DMD2 should be the default)
Yes
 4) Have you opened up a dub project or did you create one 
 directly in Mono-D?
I've opened an existing Dub project
 5) Could you pastebin me your last log file(s) please? (You can 
 open the folder via 'Help' menu -> Open Log directory)
Parts of the log file is Dutch (OS language), Xamarin Studio language is set to English but most of the interface and even the log files are unaffected. I guess I'll have to take that up with the Mono Develop devs. http://pastebin.com/tBn5hGxd
 6) Try to put the include paths into the project settings and 
 try to get phobos symbol completion afterwards.
I can't seem to find where to add include paths in the project settings..
Feb 16 2014
next sibling parent "Arjan" <arjan ask.me.to> writes:
On Sunday, 16 February 2014 at 11:49:08 UTC, Rene Zwanenburg 
wrote:
 On Saturday, 15 February 2014 at 20:28:03 UTC, Alexander Bothe
 5) Could you pastebin me your last log file(s) please? (You 
 can open the folder via 'Help' menu -> Open Log directory)
Parts of the log file is Dutch (OS language), Xamarin Studio language is set to English but most of the interface and even the log files are unaffected. I guess I'll have to take that up with the Mono Develop devs.
No it is not the OS language but the location setting of the OS I guess, I have Windows 7 64 bits English and the Monodevelop/Xamarin studio default language is still Dutch... Had to set it manually to English in the options.
Feb 16 2014
prev sibling next sibling parent "extrawurst" <stephan extrawurst.org> writes:
On Sunday, 16 February 2014 at 11:49:08 UTC, Rene Zwanenburg 
wrote:

 I can't seem to find where to add include paths in the project 
 settings..
Since you are using dub, you simply define those in the dub package: http://code.dlang.org/package-format
Feb 16 2014
prev sibling parent reply "Alexander Bothe" <info alexanderbothe.com> writes:
On Sunday, 16 February 2014 at 11:49:08 UTC, Rene Zwanenburg 
wrote:
 5) Could you pastebin me your last log file(s) please? (You 
 can open the folder via 'Help' menu -> Open Log directory)
Parts of the log file is Dutch (OS language), Xamarin Studio language is set to English but most of the interface and even the log files are unaffected. I guess I'll have to take that up with the Mono Develop devs. http://pastebin.com/tBn5hGxd
What I really wonder is why the last exception is occurring - In theory there can't be such exception in that case.. Which version of Mono-D do you've got installed? Anyway it might hangs in a deadlock or so while scanning all the folders - but I can't imagine that this is happening that oftenly.
 6) Try to put the include paths into the project settings and 
 try to get phobos symbol completion afterwards.
I can't seem to find where to add include paths in the project settings..
You could reference them in the dub package definition temporarily.
Feb 16 2014
parent "Rene Zwanenburg" <renezwanenburg gmail.com> writes:
On Sunday, 16 February 2014 at 12:59:31 UTC, Alexander Bothe 
wrote:
 On Sunday, 16 February 2014 at 11:49:08 UTC, Rene Zwanenburg 
 wrote:
 5) Could you pastebin me your last log file(s) please? (You 
 can open the folder via 'Help' menu -> Open Log directory)
Parts of the log file is Dutch (OS language), Xamarin Studio language is set to English but most of the interface and even the log files are unaffected. I guess I'll have to take that up with the Mono Develop devs. http://pastebin.com/tBn5hGxd
What I really wonder is why the last exception is occurring - In theory there can't be such exception in that case.. Which version of Mono-D do you've got installed? Anyway it might hangs in a deadlock or so while scanning all the folders - but I can't imagine that this is happening that oftenly.
 6) Try to put the include paths into the project settings and 
 try to get phobos symbol completion afterwards.
I can't seem to find where to add include paths in the project settings..
You could reference them in the dub package definition temporarily.
Apologies for getting back so late. I was still on a pretty old version of Dub on that machine, updating to the latest version has fixed the issue. I'm sorry for wasting your time.
Mar 13 2014