Dave, thanks a lot, I'm gonna try it right away.

On the other topic, I'm not sure I completely understood what the problem
is. Couldn't we write an extension to Code Critics that ran on unloaded
code? In which ways would that break compatibility with other dialects?

I think this functionality would be really neat for projects that deal with
other smalltalk projects (like Squeaksource/Squeakhub), and as it's pretty
crucial to my project I'm willing and able to put my time into it. The
problem is I'm afraid my skills do not suffice to take on this project on my
own, so any guidelines on how to proceed or who to address would be of great
help :)

Bernat Romagosa.

2011/4/4 David T. Lewis <[email protected]>

> Bernat,
>
> OSProcess and CommandShell will work with a SqueakVM from
> http://www.squeakvm.org/unix/ so to solve your immediate problem
> you can use that VM.
>
> For background, a unix VM should include the OSProcess plugin, AIO plugin,
> and XDisplayControlPlugin. Cog VM's need some platform patches which
> may not yet have been integrated into the code base. With those patches
> in place, #forkSqueak will work on Cog, although the UI will not function
> for the forked image (but this is not a problem for many usages).
>
> Dave
>
>
> On Mon, Apr 04, 2011 at 06:35:20PM +0200, Mariano Martinez Peck wrote:
> > Sorry, I am useless then. I just cc'ed Dave to see if he can help.
> >
> > Cheers
> >
> > mariano
> >
> >
> > On Mon, Apr 4, 2011 at 5:02 PM, AxiNat <[email protected]
> >wrote:
> >
> > > Hi Mariano, thanks, but I had already checked that discussion. The
> bundle
> > > that Esteban provided didn't work, quoting Stef:
> > >
> > >
> > > Thanks a lot
> > > I copied in the resources folder of 5.7.4
> > > It crashes.
> > >
> > >
> > > Also, the thread was about it not working on MacOS (it made sense, it's
> an
> > > X11 control plugin), but I'm on Debian Linux. The only
> XDisplayControlPlugin
> > > I can find around is provided by the squeaksource pagage XDCP, but
> loading
> > > it fixes nothing either...
> > >
> > >
> > > 2011/4/4 Mariano Martinez Peck <[email protected]>
> > >
> > >>
> > >>
> http://forum.world.st/template/NamlServlet.jtp?macro=search_page&node=1294837&query=forkSqueak+requires+XDisplayControlPlugin
> > >>
> > >>
> > >> On Mon, Apr 4, 2011 at 4:34 PM, AxiNat <
> [email protected]>wrote:
> > >>
> > >>> Hi again,
> > >>>
> > >>> when trying Mariano's idea I get the following error:
> > >>>
> > >>> *forkSqueak requires XDisplayControlPlugin*
> > >>> *
> > >>> *
> > >>> *Select Proceed to continue, or close this window to cancel the
> > >>> operation.*
> > >>>
> > >>>
> > >>> Do I need to recompile the VM to add support for this plugin? If so,
> are
> > >>> there any guidelines around on how to do it?
> > >>>
> > >>> Thanks!
> > >>>
> > >>> Bernat.
> > >>>
> > >>> 2011/4/4 AxiNat <[email protected]>
> > >>>
> > >>>> Lukas, if that happened anytime soon it would make my life much
> easier
> > >>>> hehe
> > >>>>
> > >>>> Is there a way I could help to give it a boost?
> > >>>>
> > >>>> Mariano, the reason I cannot load the package is that it may contain
> > >>>> (either intentionally or not) harmful code. An .st file can contain
> > >>>> arbitrary code that is going to be executed at load time, so it'd be
> really
> > >>>> easy to hack the image: "Object compile: 'new'!", for instance ;)
> > >>>>
> > >>>> The solution you propose looks interesting, but I'm not sure I've
> > >>>> completely understood it. Do you mean to run a new image, send it
> the
> > >>>> project file to be filed in, have it run the critics on the loaded
> package,
> > >>>> and get the output back to the original image? If so, that's a
> solution I've
> > >>>> been thinking of, but it would spend too many resources. Even though
> I could
> > >>>> always use a very light image, if only 5 users were to be working on
> the app
> > >>>> at the same time I'm afraid the system would begin to suffer :(
> > >>>>
> > >>>> On a second thought, is there some smaller, simpler implementation
> of
> > >>>> the SmallLint package? I wouldn't need to run all the tests, just a
> couple
> > >>>> of them: Bugs, Intention Revealing, Miscelaneous and Unnecessary
> Code, and
> > >>>> actually not even all the tests in these categories.
> > >>>>
> > >>>> Thanks a lot, I'm all ears :)
> > >>>>
> > >>>> Bernat.
> > >>>>
> > >>>> 2011/4/4 Mariano Martinez Peck <[email protected]>
> > >>>>
> > >>>>> Is not enough loading the classes but not showing them in the
> browser ?
> > >>>>> or maybe not putting them in Smalltalk ?
> > >>>>>
> > >>>>> can you do kind of a fork (using OSProcess) of the proccess
>  running
> > >>>>> image which receives a .st file and in the new forked image you
> pass the .st
> > >>>>> in startup, do a file in and then run code-critics?
> > >>>>>
> > >>>>> I am curious why you cannot load them hehehehhe
> > >>>>>
> > >>>>>
> > >>>>> On Mon, Apr 4, 2011 at 11:41 AM, AxiNat <
> > >>>>> [email protected]> wrote:
> > >>>>>
> > >>>>>> Hi list,
> > >>>>>>
> > >>>>>> I have a pretty special need, which is to be able to run code
> critics
> > >>>>>> on projects that have not yet been loaded into the image. For
> example, I
> > >>>>>> need to browse an st file -or a squeaksource project- and before
> loading it
> > >>>>>> I want to run critics on it, would this be possible somehow?
> > >>>>>>
> > >>>>>> If it looks like something noone would need to do, I understand.
> It's
> > >>>>>> just that the project I'm working on is pretty particular... I've
> been
> > >>>>>> exploring other possibilities but I'm afraid this is one of the
> few left for
> > >>>>>> me to think of :(
> > >>>>>>
> > >>>>>> Thanks a lot in advance!
> > >>>>>>
> > >>>>>> Bernat Romagosa.
> > >>>>>>
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>> --
> > >>>>> Mariano
> > >>>>> http://marianopeck.wordpress.com
> > >>>>>
> > >>>>>
> > >>>>
> > >>>
> > >>
> > >>
> > >> --
> > >> Mariano
> > >> http://marianopeck.wordpress.com
> > >>
> > >>
> > >
> >
> >
> > --
> > Mariano
> > http://marianopeck.wordpress.com
>

Reply via email to