www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Mac IDE with Intellisense

reply Mike McKee <volomike gmail.com> writes:
I've tried Sublime Text 3 editor on the Mac, but even it doesn't 
seem to have the D2 language in it yet (only D), and doesn't have 
intellisense for components in the imports that I do, even after 
saving the file after adding the import statements.

What OSX editor do you recommend that would have intellisense?

In all reality, I don't like intellisense -- it's annoying. 
However, I need it because the documentation for me is still a 
little hard to read and hard for me to search for a class method 
here or there. For instance, I was doing toHexString(myByteArray) 
instead of simply doing myByteArray.toHexString(). (That was on 
an md5 example, by the way.) Intellisense would have helped me 
realize this.
Sep 26 2015
next sibling parent Rikki Cattermole <alphaglosined gmail.com> writes:
On 26/09/15 9:17 PM, Mike McKee wrote:
 I've tried Sublime Text 3 editor on the Mac, but even it doesn't seem to
 have the D2 language in it yet (only D), and doesn't have intellisense
 for components in the imports that I do, even after saving the file
 after adding the import statements.

 What OSX editor do you recommend that would have intellisense?

 In all reality, I don't like intellisense -- it's annoying. However, I
 need it because the documentation for me is still a little hard to read
 and hard for me to search for a class method here or there. For
 instance, I was doing toHexString(myByteArray) instead of simply doing
 myByteArray.toHexString(). (That was on an md5 example, by the way.)
 Intellisense would have helped me realize this.
Try Mono-D.
Sep 26 2015
prev sibling next sibling parent reply wobbles <grogan.colin gmail.com> writes:
On Saturday, 26 September 2015 at 09:17:10 UTC, Mike McKee wrote:
 I've tried Sublime Text 3 editor on the Mac, but even it 
 doesn't seem to have the D2 language in it yet (only D), and 
 doesn't have intellisense for components in the imports that I 
 do, even after saving the file after adding the import 
 statements.

 What OSX editor do you recommend that would have intellisense?

 In all reality, I don't like intellisense -- it's annoying. 
 However, I need it because the documentation for me is still a 
 little hard to read and hard for me to search for a class 
 method here or there. For instance, I was doing 
 toHexString(myByteArray) instead of simply doing 
 myByteArray.toHexString(). (That was on an md5 example, by the 
 way.) Intellisense would have helped me realize this.
Have you installed dkit for sublime?
Sep 26 2015
parent reply Mike McKee <volomike gmail.com> writes:
On Saturday, 26 September 2015 at 10:31:13 UTC, wobbles wrote:
 Have you installed dkit for sublime?
As in? https://github.com/yazd/DKit Looks like it's alpha and doesn't run on Mac? No homebrew install?
Sep 26 2015
parent reply Johannes Loher <johannes.loher fg4f.de> writes:
On Saturday, 26 September 2015 at 18:27:52 UTC, Mike McKee wrote:
 On Saturday, 26 September 2015 at 10:31:13 UTC, wobbles wrote:
 Have you installed dkit for sublime?
As in? https://github.com/yazd/DKit Looks like it's alpha and doesn't run on Mac? No homebrew install?
I'm using this and it works great. It uses dcd, so you need to install that first (via homebrew). As DKit it is a sublime text plugin, you don't install it via homebrew. Usually you'd install sublime packages via Package Control, but sadly DKit is not in the repositories yet. There is an issue about that already (https://github.com/yazd/DKit/issues/18). So instead, you install the package manually (just follow the instrcutions in the readme). I don't know where you got the idea it doesn't work on OS X, it works like a charm for me.
Sep 27 2015
parent wobbles <grogan.colin gmail.com> writes:
On Sunday, 27 September 2015 at 22:55:38 UTC, Johannes Loher 
wrote:
 On Saturday, 26 September 2015 at 18:27:52 UTC, Mike McKee 
 wrote:
 On Saturday, 26 September 2015 at 10:31:13 UTC, wobbles wrote:
 Have you installed dkit for sublime?
As in? https://github.com/yazd/DKit Looks like it's alpha and doesn't run on Mac? No homebrew install?
I'm using this and it works great. It uses dcd, so you need to install that first (via homebrew). As DKit it is a sublime text plugin, you don't install it via homebrew. Usually you'd install sublime packages via Package Control, but sadly DKit is not in the repositories yet. There is an issue about that already (https://github.com/yazd/DKit/issues/18). So instead, you install the package manually (just follow the instrcutions in the readme). I don't know where you got the idea it doesn't work on OS X, it works like a charm for me.
Yeah, me too (on linux and windows). I used to try out quite a few of the D IDEs (Mono-d, DDT, Visual D etc) but this one plugin has replaced them all. For now at least...
Sep 28 2015
prev sibling next sibling parent reply Gary Willoughby <dev nomad.so> writes:
On Saturday, 26 September 2015 at 09:17:10 UTC, Mike McKee wrote:
 I was doing toHexString(myByteArray) instead of simply doing 
 myByteArray.toHexString(). (That was on an md5 example, by the 
 way.) Intellisense would have helped me realize this.
Both these forms are the same. It's called UFCS (uniform function call syntax). Here's some material to help you understand what's going on here: http://ddili.org/ders/d.en/ufcs.html http://nomad.so/2013/08/alternative-function-syntax-in-d/ Auto-complete in D is tricky because of this feature and no-one has invested any time to figure out a nice way to provide auto-complete for this. There is DCD by Brian Schott that looks very impressive but UFCS suggestions are not implemented yet. http://forum.dlang.org/post/hlrykibossssijmtnxug forum.dlang.org
Sep 26 2015
next sibling parent Mike McKee <volomike gmail.com> writes:
On Saturday, 26 September 2015 at 10:38:29 UTC, Gary Willoughby 
wrote:
 Both these forms are the same. It's called UFCS (uniform 
 function call syntax). Here's some material to help you 
 understand what's going on here:

 http://ddili.org/ders/d.en/ufcs.html
 http://nomad.so/2013/08/alternative-function-syntax-in-d/
Noted, and thanks.
Sep 26 2015
prev sibling parent Marco Leise <Marco.Leise gmx.de> writes:
Am Sat, 26 Sep 2015 10:38:25 +0000
schrieb Gary Willoughby <dev nomad.so>:

 Auto-complete in D is tricky because of this feature and no-one 
 has invested any time to figure out a nice way to provide 
 auto-complete for this.
Mono-D does have UFCS auto-complete. The plugin is going to bit-rot though, since its only developer is done studying. -- Marco
Oct 01 2015
prev sibling next sibling parent extrawurst <stephan extrawurst.org> writes:
On Saturday, 26 September 2015 at 09:17:10 UTC, Mike McKee wrote:
 I've tried Sublime Text 3 editor on the Mac, but even it 
 doesn't seem to have the D2 language in it yet (only D), and 
 doesn't have intellisense for components in the imports that I 
 do, even after saving the file after adding the import 
 statements.

 What OSX editor do you recommend that would have intellisense?
I use mono-d on win32 and OS X and am happy with it: http://wiki.dlang.org/Mono-D --Stephan
Sep 26 2015
prev sibling parent nazriel <spam dzfl.pl> writes:
On Saturday, 26 September 2015 at 09:17:10 UTC, Mike McKee wrote:
 I've tried Sublime Text 3 editor on the Mac, but even it 
 doesn't seem to have the D2 language in it yet (only D), and 
 doesn't have intellisense for components in the imports that I 
 do, even after saving the file after adding the import 
 statements.

 What OSX editor do you recommend that would have intellisense?

 In all reality, I don't like intellisense -- it's annoying. 
 However, I need it because the documentation for me is still a 
 little hard to read and hard for me to search for a class 
 method here or there. For instance, I was doing 
 toHexString(myByteArray) instead of simply doing 
 myByteArray.toHexString(). (That was on an md5 example, by the 
 way.) Intellisense would have helped me realize this.
Mono-D works really well. Also it integrates well with dub so you can simply "import" projects by opening dub.json file - pure awesomeness.
Sep 27 2015