Relations with source code

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Relations with source code

Uko2
Hi everyone.

I wander if there is any place I can read about the philosophy about how Moose is linked with a source code. I know that there are source anchors, and sourced entities. But as far as I can see, my entities do not have any anchors.

Right now I’m thinking that it would be cool to be able to browse a source code of any sourced entity that you have, but I’m not sure how this can be implemented.

Cheers,
Uko
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Relations with source code

Fabrizio Perin-3
Hi,
did you check if the root folder of your moose model is correct? It
should point to the root where your source code is.

Cheers,
Fabrizio

2014-04-09 16:45 GMT+02:00 Yuriy Tymchuk <[hidden email]>:

> Hi everyone.
>
> I wander if there is any place I can read about the philosophy about how Moose is linked with a source code. I know that there are source anchors, and sourced entities. But as far as I can see, my entities do not have any anchors.
>
> Right now I'm thinking that it would be cool to be able to browse a source code of any sourced entity that you have, but I'm not sure how this can be implemented.
>
> Cheers,
> Uko
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Relations with source code

Uko2
For now I’m working with smalltalk only :)

Uko

On 09 Apr 2014, at 17:05, Fabrizio Perin <[hidden email]> wrote:

> Hi,
> did you check if the root folder of your moose model is correct? It
> should point to the root where your source code is.
>
> Cheers,
> Fabrizio
>
> 2014-04-09 16:45 GMT+02:00 Yuriy Tymchuk <[hidden email]>:
>> Hi everyone.
>>
>> I wander if there is any place I can read about the philosophy about how Moose is linked with a source code. I know that there are source anchors, and sourced entities. But as far as I can see, my entities do not have any anchors.
>>
>> Right now I'm thinking that it would be cool to be able to browse a source code of any sourced entity that you have, but I'm not sure how this can be implemented.
>>
>> Cheers,
>> Uko
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Relations with source code

Goubier Thierry
In reply to this post by Uko2


Le 09/04/2014 16:45, Yuriy Tymchuk a écrit :
> Hi everyone.
>
> I wander if there is any place I can read about the philosophy about how Moose is linked with a source code. I know that there are source anchors, and sourced entities. But as far as I can see, my entities do not have any anchors.
>
> Right now I’m thinking that it would be cool to be able to browse a source code of any sourced entity that you have, but I’m not sure how this can be implemented.

This is the sort of things I do and its very cool :), especially
combined with Roassal.

Thierry
--
Thierry Goubier
CEA list
Laboratoire des Fondations des Systèmes Temps Réel Embarqués
91191 Gif sur Yvette Cedex
France
Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Relations with source code

Anne Etien
In reply to this post by Uko2

Le 9 avr. 2014 à 16:45, Yuriy Tymchuk a écrit :

> Hi everyone.
>
> I wander if there is any place I can read about the philosophy about how Moose is linked with a source code. I know that there are source anchors, and sourced entities. But as far as I can see, my entities do not have any anchors.
>
> Right now I’m thinking that it would be cool to be able to browse a source code of any sourced entity that you have, but I’m not sure how this can be implemented.

I may be wrong, but if you get a FAST representation of your source code, you can have what you want.

Anne

>
> Cheers,
> Uko
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Relations with source code

Uko2
In reply to this post by Goubier Thierry

On 09 Apr 2014, at 17:50, Goubier Thierry <[hidden email]> wrote:

>
>
> Le 09/04/2014 16:45, Yuriy Tymchuk a écrit :
>> Hi everyone.
>>
>> I wander if there is any place I can read about the philosophy about how Moose is linked with a source code. I know that there are source anchors, and sourced entities. But as far as I can see, my entities do not have any anchors.
>>
>> Right now I’m thinking that it would be cool to be able to browse a source code of any sourced entity that you have, but I’m not sure how this can be implemented.
>
> This is the sort of things I do and its very cool :), especially combined with Roassal.

How do you do it?

>
> Thierry
> --
> Thierry Goubier
> CEA list
> Laboratoire des Fondations des Systèmes Temps Réel Embarqués
> 91191 Gif sur Yvette Cedex
> France
> Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Relations with source code

Uko2
In reply to this post by Anne Etien
On 09 Apr 2014, at 18:00, Anne Etien <[hidden email]> wrote:

>
> Le 9 avr. 2014 à 16:45, Yuriy Tymchuk a écrit :
>
>> Hi everyone.
>>
>> I wander if there is any place I can read about the philosophy about how Moose is linked with a source code. I know that there are source anchors, and sourced entities. But as far as I can see, my entities do not have any anchors.
>>
>> Right now I’m thinking that it would be cool to be able to browse a source code of any sourced entity that you have, but I’m not sure how this can be implemented.
>
> I may be wrong, but if you get a FAST representation of your source code, you can have what you want.

Right now I’m not using FAST.
And anyway FAST is not storing the code the way it is (it may, but that’s why I’m asking about how to use source anchors)

Uko

>
> Anne
>
>>
>> Cheers,
>> Uko
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Relations with source code

Goubier Thierry
In reply to this post by Uko2
Well,

usually, if you have something parsing source code, it stores somewhere the range in the file and the file for each element. From that information, you can control a text pane by opening the file and selecting the right range.

If you draw a representation of your elements with Roassal, then you add, in the interaction of the visualisation, the code which plays with the text pane.

Thierry

________________________________________
De : [hidden email] [[hidden email]] de la part de Yuriy Tymchuk [[hidden email]]
Envoyé : mercredi 9 avril 2014 18:25
À : Moose-related development
Objet : [Moose-dev] Re: Relations with source code

On 09 Apr 2014, at 17:50, Goubier Thierry <[hidden email]> wrote:

>
>
> Le 09/04/2014 16:45, Yuriy Tymchuk a écrit :
>> Hi everyone.
>>
>> I wander if there is any place I can read about the philosophy about how Moose is linked with a source code. I know that there are source anchors, and sourced entities. But as far as I can see, my entities do not have any anchors.
>>
>> Right now I’m thinking that it would be cool to be able to browse a source code of any sourced entity that you have, but I’m not sure how this can be implemented.
>
> This is the sort of things I do and its very cool :), especially combined with Roassal.

How do you do it?

>
> Thierry
> --
> Thierry Goubier
> CEA list
> Laboratoire des Fondations des Systèmes Temps Réel Embarqués
> 91191 Gif sur Yvette Cedex
> France
> Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Relations with source code

Tudor Girba-2
In reply to this post by Uko2
Hi Yuriy,

Unfortunately, we do not use the source anchor for Pharo code. As far as I know (I do not have access right now) we have an issue open for it. It would be great to extend the Pharo importer to create anchors.

Look at FAMIXSourcedEntity>>sourceText as a starting point.


Cheers,
Doru

--
www.tudorgirba.com

"Every thing has its own flow."

> On 09.04.2014, at 18:08, Yuriy Tymchuk <[hidden email]> wrote:
>
> For now I’m working with smalltalk only :)
>
> Uko
>
>> On 09 Apr 2014, at 17:05, Fabrizio Perin <[hidden email]> wrote:
>>
>> Hi,
>> did you check if the root folder of your moose model is correct? It
>> should point to the root where your source code is.
>>
>> Cheers,
>> Fabrizio
>>
>> 2014-04-09 16:45 GMT+02:00 Yuriy Tymchuk <[hidden email]>:
>>> Hi everyone.
>>>
>>> I wander if there is any place I can read about the philosophy about how Moose is linked with a source code. I know that there are source anchors, and sourced entities. But as far as I can see, my entities do not have any anchors.
>>>
>>> Right now I'm thinking that it would be cool to be able to browse a source code of any sourced entity that you have, but I'm not sure how this can be implemented.
>>>
>>> Cheers,
>>> Uko
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Relations with source code

Stéphane Ducasse
In reply to this post by Uko2
Yuriy

the problem is what to store?
if you have a model on classes loaded in the system you can refer to them.
Now if you have model about classes that are not loaded in memory it is not clear what we should do
        - saving the code of the model in a certain way
        - computing the source anchors according to this physical representation?

Stef

> For now I’m working with smalltalk only :)
>
> Uko
>
> On 09 Apr 2014, at 17:05, Fabrizio Perin <[hidden email]> wrote:
>
>> Hi,
>> did you check if the root folder of your moose model is correct? It
>> should point to the root where your source code is.
>>
>> Cheers,
>> Fabrizio
>>
>> 2014-04-09 16:45 GMT+02:00 Yuriy Tymchuk <[hidden email]>:
>>> Hi everyone.
>>>
>>> I wander if there is any place I can read about the philosophy about how Moose is linked with a source code. I know that there are source anchors, and sourced entities. But as far as I can see, my entities do not have any anchors.
>>>
>>> Right now I'm thinking that it would be cool to be able to browse a source code of any sourced entity that you have, but I'm not sure how this can be implemented.
>>>
>>> Cheers,
>>> Uko
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev