Fwd: ATS language binding for MonoDevelop

25 views
Skip to first unread message

Hongwei Xi

unread,
Oct 21, 2014, 2:17:16 PM10/21/14
to ats-lan...@googlegroups.com

---------- Forwarded message ----------
From: Hongwei Xi <hw...@bu.edu>
Date: Tue, Oct 21, 2014 at 2:16 PM
Subject: ATS language binding for MonoDevelop
To: Hongwei Xi <gmh...@gmail.com>


I changed the title of the dicussion.

On Tuesday, October 21, 2014 2:04:01 PM UTC-4, Kiwamu Okabe wrote:
Hi Artyom,

On Tue, Oct 21, 2014 at 10:47 PM, Artyom Shalkhakov
<artyom.s...@gmail.com> wrote:

            > I've uploaded the (early, barely working) ATS language binding for
            > MonoDevelop:
            >
            > https://github.com/ashalkhakov/ATS-Postiats-ide
            >
            > At this point, it can (only) highlight various ATS keywords -- it's
            > basically a stub. Hopefully it will become much better over time.

            It's a GREAT product!!!
            I can build it and use to edit ATS dats file.

            https://github.com/master-q/ATS-Postiats-ide/blob/feature/add-screenshot-on-readme/screenshots/screenshot_as_editor.png

            I have a question for the plugin.
            Where is a correct location for MonoDevelop.ATSBinding.dll?
            I selected MonoDevelop.ATSBinding/MonoDevelop.ATSBinding.sln, and build all.
            Then I got DLLs at the following PATH.

            > $ find . -name "*.dll"
            >  ./MonoDevelop.ATSBinding/bin/Debug/MonoDevelop.ATSBinding.dll
            >  ./MonoDevelop.ATSBinding/obj/Debug/MonoDevelop.ATSBinding.dll

            However, mdtool did not find the DLLs.

            > $ mdtool setup pack MonoDevelop.ATSBinding/MonoDevelop.ATSBinding.addin.xml
            > MonoDevelop Add-in Setup Utility
            > WARNING: [MonoDevelop.ATSBinding,0.0.1] Could not load some add-in assemblies: Could not find file
            "/home/kiwamu/src/ATS-Postiats-ide/MonoDevelop.ATSBinding/MonoDevelop.ATSBinding.dll".
            > Creating package MonoDevelop.ATSBinding_0.0.1.mpack
            > FATAL ERROR [2014-10-22 02:57:50Z]: System.IO.FileNotFoundException: Could not find file
            "/home/kiwamu/src/ATS-Postiats-ide/MonoDevelop.ATSBinding/MonoDevelop.ATSBinding.dll".

            Then, I copied the DLL.

            > $ cp MonoDevelop.ATSBinding/bin/Debug/MonoDevelop.ATSBinding.dll \
            >     MonoDevelop.ATSBinding/MonoDevelop.ATSBinding.dll
            > $ mdtool setup pack MonoDevelop.ATSBinding/MonoDevelop.ATSBinding.addin.xml
            > MonoDevelop Add-in Setup Utility
            > Creating package MonoDevelop.ATSBinding_0.0.1.mpack
            > $ file MonoDevelop.ATSBinding_0.0.1.mpack
            > MonoDevelop.ATSBinding_0.0.1.mpack: Zip archive data, at least v2.0 to extract

            Is it a correct build flow?

            Thank's!!!

            P.S.
            And also report it in Japanese. http://togetter.com/li/735137
            --
            Kiwamu Okabe at METASEPI DESIGN

gmhwxi

unread,
Oct 21, 2014, 11:08:35 PM10/21/14
to ats-lan...@googlegroups.com
Hi Kiwamu,

How did you get Mono-3 and MonoDevelop-5? You built them
from source on your own?


On Tuesday, October 21, 2014 2:17:16 PM UTC-4, gmhwxi wrote:
---------- Forwarded message ----------
From: Hongwei Xi <hwxi@...>
Date: Tue, Oct 21, 2014 at 2:16 PM
Subject: ATS language binding for MonoDevelop

Artyom Shalkhakov

unread,
Oct 21, 2014, 11:09:06 PM10/21/14
to ats-lan...@googlegroups.com
On Wednesday, October 22, 2014 12:17:16 AM UTC+6, gmhwxi wrote:

---------- Forwarded message ----------
From: Hongwei Xi <hw...@bu.edu>
Date: Tue, Oct 21, 2014 at 2:16 PM
Subject: ATS language binding for MonoDevelop
To: Hongwei Xi <gmh...@gmail.com>


I changed the title of the dicussion.


Thanks, Hongwei.
 
On Tuesday, October 21, 2014 2:04:01 PM UTC-4, Kiwamu Okabe wrote:
Hi Artyom,

On Tue, Oct 21, 2014 at 10:47 PM, Artyom Shalkhakov
<artyom.s...@gmail.com> wrote:

            > I've uploaded the (early, barely working) ATS language binding for
            > MonoDevelop:
            >
            > https://github.com/ashalkhakov/ATS-Postiats-ide
            >
            > At this point, it can (only) highlight various ATS keywords -- it's
            > basically a stub. Hopefully it will become much better over time.

            It's a GREAT product!!!
            I can build it and use to edit ATS dats file.

            https://github.com/master-q/ATS-Postiats-ide/blob/feature/add-screenshot-on-readme/screenshots/screenshot_as_editor.png

            I have a question for the plugin.
            Where is a correct location for MonoDevelop.ATSBinding.dll?
            I selected MonoDevelop.ATSBinding/MonoDevelop.ATSBinding.sln, and build all.
            Then I got DLLs at the following PATH.


Well, I think I've documented the setup correctly (in README.txt). There are two steps:

1. build (via MD), and pack (via mdtool command-line utility)
2. plug into MD
 
            > $ find . -name "*.dll"
            >  ./MonoDevelop.ATSBinding/bin/Debug/MonoDevelop.ATSBinding.dll

This is the correct location. This directory (/MonoDevelop.ATSBinding.addin.xml) needs to be supplied to mdtool setup pack, which creates a plugin package.
 
            >  ./MonoDevelop.ATSBinding/obj/Debug/MonoDevelop.ATSBinding.dll

            However, mdtool did not find the DLLs.

            > $ mdtool setup pack MonoDevelop.ATSBinding/MonoDevelop.ATSBinding.addin.xml

Yeah, it should be:

$ mdtool setup pack MonoDevelop.ATSBinding/bin/Debug/MonoDevelop.ATSBinding.addin.xml

I'm new to this stuff.
 
            > MonoDevelop Add-in Setup Utility
            > WARNING: [MonoDevelop.ATSBinding,0.0.1] Could not load some add-in assemblies: Could not find file
            "/home/kiwamu/src/ATS-Postiats-ide/MonoDevelop.ATSBinding/MonoDevelop.ATSBinding.dll".
            > Creating package MonoDevelop.ATSBinding_0.0.1.mpack
            > FATAL ERROR [2014-10-22 02:57:50Z]: System.IO.FileNotFoundException: Could not find file
            "/home/kiwamu/src/ATS-Postiats-ide/MonoDevelop.ATSBinding/MonoDevelop.ATSBinding.dll".

            Then, I copied the DLL.

            > $ cp MonoDevelop.ATSBinding/bin/Debug/MonoDevelop.ATSBinding.dll \
            >     MonoDevelop.ATSBinding/MonoDevelop.ATSBinding.dll
            > $ mdtool setup pack MonoDevelop.ATSBinding/MonoDevelop.ATSBinding.addin.xml
            > MonoDevelop Add-in Setup Utility
            > Creating package MonoDevelop.ATSBinding_0.0.1.mpack
            > $ file MonoDevelop.ATSBinding_0.0.1.mpack
            > MonoDevelop.ATSBinding_0.0.1.mpack: Zip archive data, at least v2.0 to extract

            Is it a correct build flow?


Well, somebody (Sylvain Nahas?) remarked in MD wiki that it is possible to symlink bin/Debug directory in some other directory that is scanned by MD at startup for plugins. Then it wouldn't be necessary to install the plugin by hand. That didn't work for me, so I resorted to building a package and installing it by hand.
 
            Thank's!!!


You are welcome!
 

Kiwamu Okabe

unread,
Oct 22, 2014, 1:15:18 AM10/22/14
to ats-lang-users
Hi Hongwei,

On Wed, Oct 22, 2014 at 12:08 PM, gmhwxi <gmh...@gmail.com> wrote:
> How did you get Mono-3 and MonoDevelop-5? You built them
> from source on your own?

I just type "apt-get install monodevelop" on Debian sid.

> $ uname -a
> Linux casper 3.16-2-amd64 #1 SMP Debian 3.16.3-2 (2014-09-20) x86_64 GNU/Linux
> $ apt-cache show monodevelop|grep "^Version"
> Version: 5.5.0.227-1
> $ mono --version|grep "version"
> Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-7)

Thank's,

Artyom Shalkhakov

unread,
Oct 22, 2014, 3:04:02 AM10/22/14
to ats-lan...@googlegroups.com, kiw...@debian.or.jp
Hi Hongwei, Kiwamu,

I managed to compile a parallel Mono environment and MonoDevelop from sources, but it's very hard to do (usually it fails for me).

Thankfully, the Mono project started publishing Linux binary packages:

http://www.mono-project.com/download/#download-lin

I've installed the Wheezy packages as described there. Things seem to work fine.
 
Reply all
Reply to author
Forward
0 new messages