Yay!

Finally, the latest Mono-D is available on the Beta channel again – I really hope that there won’t be further fatal bugs due to switching to MonoDevelop 2.9!

[Edit:] Parsing the cache and other post-startup things seem to take up to half a ridiculous minute – gotta take care about that :/ (has been fixed!)
[Edit2:] Formatting seemed disabled so far – due to the newly introduced IndentStyle.Virtual flag (fixed, too!)

14 Comments

  • May 1, 2012 - 3:59 pm | Permalink

    I have a program in GTK-D, which is compiled like this: dmd main.d `pkg-config –cflags –libs gtkd`
    When I put the `pgk-…..” string in the project’s linker arguments, I get “wrong string format” error (or something like that). I also tried in “libraries”.

    Also, is there an option to create a makefile from an existing D project in monodevelop?

    Thank you

    • alex
      May 1, 2012 - 5:20 pm | Permalink

      why aren’t you surrounding those extended arguments with ” instead of `? Or is this another ability of dmd I never heard of before?

      Regarding makefiles: No it’s not possible yet.

      • May 1, 2012 - 7:28 pm | Permalink

        I can’t because dmd thinks I’m talking about a D source file. I get an error about missing gtkd.d…

        If I am correct, the strings in the “linker options” field or any other fields are checked before dmd is run?

        • alex
          May 1, 2012 - 8:12 pm | Permalink

          Well in this case.. have you set the gtk include path?

          None of the options you can enter in any options pages are checked – so you must have a full awareness of what are you typing in there :)

          • May 1, 2012 - 9:13 pm | Permalink

            I haven’t, but doesn’t make sense because I also didn’t when compiling from the command like. I think that dmd main.d `pkg-config –cflags –libs gtkd` takes care of the import stuff. I set it though for autocompletion to work.

            The problem seems to be:
            Error: unrecognized switch ‘–cflags’
            Error: unrecognized switch ‘–libs’

            The generated “compiler string” is:
            /usr/bin/dmd -gc -debug “gtkd_test.d” -I”/usr/include/x86_64-linux-gnu/dmd/druntime/import” -I”/usr/include/x86_64-linux-gnu/dmd/phobos” -I”/usr/include/x86_64-linux-gnu/dmd/gtkd” -odobj/Debug -of”/home/minas/Projects/D/GTKD/GTKD_Test/GTKD_Test/bin/Debug/GTKD_Test” `pkg-config –cflags –libs gtkd`

            Do you see a problem here?

            Thank you.

            • alex
              May 1, 2012 - 9:22 pm | Permalink

              If “pkg-config” shall be passed to the linker, why not write -Lpkg-config ?

          • May 1, 2012 - 9:15 pm | Permalink

            Also, after the error message:

            ——-
            Build successful.
            Build failed. Input string was not in the correct format

            ???

            Note that it is –cflags(two – characters)

            • alex
              May 1, 2012 - 9:21 pm | Permalink

              What about renaming the library file to libgtkd.a? – I recently heard that all kinds of shared/static libs under linux must include a “lib” prefix – dunno if it’s correct but that might help.

            • May 2, 2012 - 5:51 pm | Permalink

              I knew that, but `pkg-config –cflags –libs gtkd` provides a better solution :)
              Anyway, I’ll see what I can do.

              By the way, is there a way to contribute to the development of the plugin? I would like to help you.

            • alex
              May 2, 2012 - 5:58 pm | Permalink

              Ways are open to send me pull requests :) – or if you want to contribute even further stuff, I of course can grant you push rights @ https://github.com/aBothe/Mono-D

              Concerning makefiles: I’m currently experimenting with how to write efficient makefiles – could you provide me some kind of sample makefile which I could take as ‘template’ for mono-d so there will be a makefile generation utility?
              I think it’d be the best if you join #d.mono-d for discussing further details, if you want :)

    • alex
      May 3, 2012 - 10:04 pm | Permalink

      Yes, you can create a makefile now – http://mono-d.alexanderbothe.com/?p=449

  • April 27, 2012 - 9:14 pm | Permalink

    I sincerely appreciate you efforts, Alex.

    As much as I love D, It’s not as practical a language as C# or Java without proper dev tools, and your project seems to be single handedly closing that gap. MonoD still has bugs, crashes, and, due to D’s awesome yet complex meta-programming abilities, code *completion* isn’t *fully* supported yet, nor is debugging. But overall the feature set that MonoD sports today is enough to make using D a productive experience.

    I’m sure at times this project looks like a mountain of work that you’ve only just began to climb, and it is (considering all the awesome features you talked about adding). I’d just like to assure you again, that your work here does not go unappreciated.

    I’d buy you a drink if I could.

    • alex
      April 28, 2012 - 12:45 am | Permalink

      Ha I could be an asshole now and tell you hey go donate me some €$ to my paypal acc now ;)

      But ok, thanks therefore! Feedback is better than everything and absolutely essential!

    • Martin
      April 28, 2012 - 12:46 am | Permalink

      Amen. One of the reasons I couldn’t be assed programming in D was because of the lack of a decent IDE, and I’m guessing many others had the same issue. Until Mono-D came out, of course. It’s just incredibly nice.

  • Leave a Reply

    Your email address will not be published. Required fields are marked *


    six − = 2

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>