www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Any D plugins for recent Xcode?

reply Dan Olson <zans.is.for.cans yahoo.com> writes:
Just checking to see if anybody has D and Xcode playing together nicely.

This may be the last hurdle to jump for enjoyable D use with iOS.  I
finally figured out a recipe to use symbolic debugging on armv7, but
being able to click in source code to set breakpoints would be more fun
that typing b [long D mangled symbol] in lldb console.  Also made
progress last week with building universal runtime/phobos (lipo) to
support either iphonesim (i386) or hardware device (armv7).  This will
allow D development without iOS hardware once I work it into the LDC
cmake process.
--
Dan
Apr 18 2015
parent reply Jacob Carlborg <doob me.com> writes:
On 2015-04-18 19:30, Dan Olson wrote:
 Just checking to see if anybody has D and Xcode playing together nicely.
Not for any recent version of Xcode. Michel Fortin wrote a puling for Xcode 3 [1], if you're interested. [1] https://michelf.ca/projects/d-for-xcode/ -- /Jacob Carlborg
Apr 18 2015
parent reply Dan Olson <zans.is.for.cans yahoo.com> writes:
Jacob Carlborg <doob me.com> writes:

 On 2015-04-18 19:30, Dan Olson wrote:
 Just checking to see if anybody has D and Xcode playing together nicely.
Not for any recent version of Xcode. Michel Fortin wrote a puling for Xcode 3 [1], if you're interested. [1] https://michelf.ca/projects/d-for-xcode/
Yeah, I was hoping somone might have done the same for Xcode 6. I've never poked at how Xcode plugins works, maybe somehow it can be upgraded. I have gotten the impression that the Xcode plugin API changes often and is undocumented, making it hard to maintain something non-Apple. Another approach is to use different IDE that can supports iOS dev (download, debug). Not sure what is available, but these folks setup Eclipse for Java iOS dev. http://robovm.com
Apr 18 2015
next sibling parent reply Michel Fortin <michel.fortin michelf.ca> writes:
On 2015-04-18 20:18:56 +0000, Dan Olson <zans.is.for.cans yahoo.com> said:

 Yeah, I was hoping somone might have done the same for Xcode 6.  I've
 never poked at how Xcode plugins works, maybe somehow it can be
 upgraded.  I have gotten the impression that the Xcode plugin API
 changes often and is undocumented, making it hard to maintain something
 non-Apple.
It's undocumented API, and they sometime change it although not that much. Xcode 4 broke the plugin and I didn't put much effort into figuring out what was wrong. Feel free to fork and fix it if you want, the code is on Github. https://github.com/michelf/d-for-xcode/ -- Michel Fortin michel.fortin michelf.ca http://michelf.ca
Apr 18 2015
next sibling parent Dan Olson <zans.is.for.cans yahoo.com> writes:
Michel Fortin <michel.fortin michelf.ca> writes:
 It's undocumented API, and they sometime change it although not that
 much. Xcode 4 broke the plugin and I didn't put much effort into
 figuring out what was wrong. Feel free to fork and fix it if you want,
 the code is on Github.
 https://github.com/michelf/d-for-xcode/
Thanks Michel, I'll take a look.
Apr 18 2015
prev sibling next sibling parent Jacob Carlborg <doob me.com> writes:
On 2015-04-19 02:28, Michel Fortin wrote:

 It's undocumented API, and they sometime change it although not that
 much. Xcode 4 broke the plugin and I didn't put much effort into
 figuring out what was wrong. Feel free to fork and fix it if you want,
 the code is on Github.
 https://github.com/michelf/d-for-xcode/
Xcode 4 was a big change compared to Xcode 3. Hopefully there aren't that many changes in later versions. There are many other plugins that work with Xcode 6 that one can look at. There's even a package manager for Xcode plugins [1], which is a good starting point to find other plugins. [1] http://alcatraz.io/ -- /Jacob Carlborg
Apr 19 2015
prev sibling parent reply Michel Fortin <michel.fortin michelf.ca> writes:
On 2015-04-19 00:28:14 +0000, Michel Fortin <michel.fortin michelf.ca> said:

 On 2015-04-18 20:18:56 +0000, Dan Olson <zans.is.for.cans yahoo.com> said:
 
 Yeah, I was hoping somone might have done the same for Xcode 6.  I've
 never poked at how Xcode plugins works, maybe somehow it can be
 upgraded.  I have gotten the impression that the Xcode plugin API
 changes often and is undocumented, making it hard to maintain something
 non-Apple.
It's undocumented API, and they sometime change it although not that much. Xcode 4 broke the plugin and I didn't put much effort into figuring out what was wrong. Feel free to fork and fix it if you want, the code is on Github. https://github.com/michelf/d-for-xcode/
I just realized, I have some unpushed changes on my computer that aren't on Github. I probably never pushed them because it didn't work well enough, but it might be closer to something that works. If someone want to sort things out, I pushed those to a separate branch "xcode-4-work". -- Michel Fortin michel.fortin michelf.ca http://michelf.ca
Apr 19 2015
parent reply Dan Olson <gorox comcast.net> writes:
Michel Fortin <michel.fortin michelf.ca> writes:

 On 2015-04-19 00:28:14 +0000, Michel Fortin <michel.fortin michelf.ca> said:

 It's undocumented API, and they sometime change it although not that
 much. Xcode 4 broke the plugin and I didn't put much effort into
 figuring out what was wrong. Feel free to fork and fix it if you
 want, the code is on Github.
 https://github.com/michelf/d-for-xcode/
I just realized, I have some unpushed changes on my computer that aren't on Github. I probably never pushed them because it didn't work well enough, but it might be closer to something that works. If someone want to sort things out, I pushed those to a separate branch "xcode-4-work".
I started trying to update d-for-xcode, and although the plugin is still incompatible with Xcode 6, at least D code displays nice in editor now and I can click to set line based breakpoints in debuggger. Actually a huge help because I was typing 'b thread.d:1040' like stuff otherwise. Your Xcode project looks like it has more that wasn't put in git, like dumping the Xcode API. Is that available? -- Dan
Jul 09 2015
parent reply Jacob Carlborg <doob me.com> writes:
On 2015-07-09 10:15, Dan Olson wrote:

 I started trying to update d-for-xcode, and although the plugin is still
 incompatible with Xcode 6
Xcode 7 should be the new target ;) -- /Jacob Carlborg
Jul 09 2015
parent reply Dan Olson <gorox comcast.net> writes:
Jacob Carlborg <doob me.com> writes:

 On 2015-07-09 10:15, Dan Olson wrote:

 I started trying to update d-for-xcode, and although the plugin is still
 incompatible with Xcode 6
Xcode 7 should be the new target ;)
It sometimes feels like running to catch a moving train, and stumbling just before jump on :-)
Jul 09 2015
parent Jacob Carlborg <doob me.com> writes:
On 2015-07-09 17:45, Dan Olson wrote:

 It sometimes feels like running to catch a moving train, and stumbling
 just before jump on :-)
Yeah, unfortunately. Hopefully there's not much changed between these version. Perhaps just bump field in the plugin indicating which version of Xcode it's compatible with. -- /Jacob Carlborg
Jul 09 2015
prev sibling next sibling parent "Idan Arye" <GenericNPC gmail.com> writes:
On Saturday, 18 April 2015 at 20:18:56 UTC, Dan Olson wrote:
 Yeah, I was hoping somone might have done the same for Xcode 6.
  I've
 never poked at how Xcode plugins works, maybe somehow it can be
 upgraded.  I have gotten the impression that the Xcode plugin 
 API
 changes often and is undocumented, making it hard to maintain 
 something
 non-Apple.
http://www.joelonsoftware.com/articles/fog0000000339.html
Apr 19 2015
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 2015-04-18 22:18, Dan Olson wrote:

 Another approach is to use different IDE that can supports iOS dev
 (download, debug).  Not sure what is available, but these folks setup
 Eclipse for Java iOS dev.
Xamarin [1] seems to have pretty good support for iOS development. They developing cross-platform mobile applications. Their IDE is based on (or the new) MonoDevelop, which a D plugin already exists for, Mono-D [2]. I've look at a couple of their talks and it looks really good. Although I still prefer to use Xcode. [1] http://xamarin.com/ [2] https://github.com/aBothe/Mono-D -- /Jacob Carlborg
Apr 19 2015