Issue 231. Once there is a fix, it would be great if the VisualWorks version would also get updated.

Ciao,
Ricky


On Nov 24, 2009, at 6:06 PM, Simon Denier wrote:


On 24 nov. 2009, at 12:30, Richard Wettel wrote:

Hi Simon,

I have recently had some problems with this issue, possibly caused by the same situation.
I work with Moose in VisualWorks and parse my models with inFusion 7.2.5.
My problem was that I parsed my system in MacOSX and then wanted to use the source browsing in Windows. Apparently, inFusion exports the sourceAnchor with the OS-specific separator, and in Moose the path to the source code file is built by adding (using OS-specific separators) to the sourceAnchor in the model. Since I parsed the system under MacOSX, the sourceAnchor separator was /, and then tried to access the source code from Windows, and what Moose did was to concatenate two strings: src\ModelName\ (containing the Unix separator) with /org/foo/bar (containing the Windows separator), which leads to an invalid filename (in Windows it lead to src\ModelName\orgfoobar...).

The right solution would be to make Moose>>browseSource parse again the sourceAnchor and replace the alien-OS separators with the right one before building the filename for non-Smalltalk entities.

Indeed, that's a good catch and the problem exists on all Moose. Can you open an issue in the bug tracker?
I guess that the File library has something to deal with this issue.


As for my issue, it's just this little convention unknown to me until now. Sources for external models should be place in a subfolder of the current directory, namely:
src/<name of your model>/

Maybe a small dialog could help in case the fileanchor does not find the source file.



Cheers,
Ricky


 
On Nov 23, 2009, at 10:50 PM, Simon Denier wrote:


OK I'm tired. I send it to the wrong mailing list.

Begin forwarded message:

From: Simon Denier <simon.denier@inria.fr>
Date: 23 novembre 2009 18:17:50 UTC-03:00
Cc: Simon Denier <simon.denier@inria.fr>
Subject: SourceAnchor / browse Source

Hi there

Does somebody manager to browse the source code of, let's say, a Java project imported by infusion (for example). It does not work in my image. I'm trying to figure out why.

--
Simon




--
 Simon



<ATT00001..txt>

_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
 Simon



<ATT00001..txt>