[Pharo-users] Modify catalog folder

2016-08-18 Thread Valentin Ryckewaert
Hello everyone, I would like to modify the destination folder of the files downloaded by the catalog (Today files go in Pharo-local), does someone know how I could do it please? I would like the files to go in FileLocator temp Valentin

Re: [Pharo-users] Problem with adding an instance variable to SmalltalkImage

2016-08-16 Thread Valentin Ryckewaert
It's on the last image of Pharo, did you try on it? 2016-08-16 15:19 GMT+02:00 Nicolai Hess : > > > 2016-08-16 15:11 GMT+02:00 Valentin Ryckewaert < > valentin.ryckewa...@gmail.com>: > >> Hello everyone, >> >> when I try to add the instance variable f

[Pharo-users] Problem with adding an instance variable to SmalltalkImage

2016-08-16 Thread Valentin Ryckewaert
Hello everyone, when I try to add the instance variable foo to SmalltalkImage I get a popup asking me "CompilerCLass is still used in code of class SmalltalkImage. Is it okay to move it to undeclared" It's the same for any instanceVariable Is it normal ? If it's normal should I answer yes or no ?

Re: [Pharo-users] Image not starting

2016-07-20 Thread Valentin Ryckewaert
It's working I integrated it, but I don't understand why it was making my image crash (It wasn't crashing few weeks ago) 2016-07-20 8:35 GMT+02:00 Valentin Ryckewaert : > I'll try this as soon as I'm at work thanks you :) > > 2016-07-19 21:59 GMT+02:00 Nicola

Re: [Pharo-users] Image not starting

2016-07-19 Thread Valentin Ryckewaert
les) > > Metacello new > smalltalkhubUser: 'Uryon' project: 'Coral'; > configuration: 'Coral'; > version: #development; > onConflictUseIncoming; > load. > PharoFilesOpener default unsetInformAboutReadOnlyChanges. > SmalltalkImage configureSys

Re: [Pharo-users] Image not starting

2016-07-18 Thread Valentin Ryckewaert
We tried to put it in a file, print in in stdout, put it as an display in the image 2016-07-18 21:48 GMT+02:00 Nicolai Hess : > > > 2016-07-18 14:36 GMT+02:00 Valentin Ryckewaert < > valentin.ryckewa...@gmail.com>: > >> Hello, >> >> with Pavel we trie

Re: [Pharo-users] Image not starting

2016-07-18 Thread Valentin Ryckewaert
; Hi Valentin, Ithink you can not print to stdout during shutdown and > restart. > It will end in a Loop of writing to stdout, throwing an exceptions because > it can not write and trying to log the error on stdout, throwing an error... > > Am 17.07.2016 18:36 schrieb "Valentin

Re: [Pharo-users] Image not starting

2016-07-17 Thread Valentin Ryckewaert
i will do it tomorrow. 2016-07-17 17:23 GMT+02:00 stepharo : > did you try to solution proposed? > > Stef > > Le 17/7/16 à 16:22, Valentin Ryckewaert a écrit : > > Hello Stef, > > no i'm still on it :( > I'm going to test every code I modified > > Va

Re: [Pharo-users] Image not starting

2016-07-17 Thread Valentin Ryckewaert
Hello Stef, no i'm still on it :( I'm going to test every code I modified Valentin 2016-07-17 15:23 GMT+02:00 stepharo : > HI valentin > > > did you solve your problem? > > > Stef > > Le 12/7/16 à 15:33, Valentin Ryckewaert a écrit : > > Hello everyon

[Pharo-users] Image not starting

2016-07-12 Thread Valentin Ryckewaert
Hello everyone, I'm currently working on the project file policy and I'm having a problem that I don't understand I import my code, configure my image as readOnly (Pharo won't try to write on changesFiles,source,image), set the folder of the image in readonly and try to open the image again a

Re: [Pharo-users] Coral?

2016-06-25 Thread Valentin Ryckewaert
n deployed and we should > be able to access > > lowlevel unix commands smoothly. > > > Stef > > Le 24/6/16 à 14:50, Yuriy Tymchuk a écrit : > > Hi, thanks. > > Is there any documentation left? Like what is the syntax and so on? > > Cheers.

Re: [Pharo-users] Coral?

2016-06-24 Thread Valentin Ryckewaert
Hi, if there is any documentation I didn't see it sorry :( The syntax may change in the future) :) 2016-06-24 14:50 GMT+02:00 Yuriy Tymchuk : > Hi, thanks. > > Is there any documentation left? Like what is the syntax and so on? > > Cheers. > Uko > > On 24 Jun 2016,

Re: [Pharo-users] Coral?

2016-06-24 Thread Valentin Ryckewaert
Hello, I'm the trainee responsible of it, i'm currently working on it by searching the points of interaction between Pharo and his files(changeslog etc...) to block them. You can find my work on Metacello new smalltalkhubUser: 'Uryon' project: 'FilePolicy'; configuration: 'Coral'; version: #develo

[Pharo-users] Metacello

2016-06-23 Thread Valentin Ryckewaert
Hello everyone, I'm currently using Metacello to download my project on a new image very regularly and i'm having some trouble with this message : You are about to load new versions of the following packages that have unsaved changes in the image: System-SessionManager If you continue, you will

Re: [Pharo-users] How can an image know it is running headless?

2016-06-23 Thread Valentin Ryckewaert
Sven is right, is Headless works well :) 2016-06-23 0:25 GMT+02:00 Sven Van Caekenberghe : > SmalltalkImage>>#isHeadless ? > > > On 22 Jun 2016, at 23:57, Johan Fabry wrote: > > > > Hi all, > > > > I would like to know how to know if the image is running in headless > mode. Is there an expressio

[Pharo-users] File Policy

2016-06-22 Thread Valentin Ryckewaert
Hello everyone, i'm currently working on making Pharo able to manage if it writes on his files.I created a class which can define it, then I'm already able, for example, to define if Pharo writes on pharo.changes or not. The meaning of this is to make Pharo able to execute a script but without b

Re: [Pharo-users] Changes file without

2016-06-01 Thread Valentin Ryckewaert
Hello, Here is a script to make the exception happend Go where you want the folder to be created and copy paste this: mkdir testPharo cd testPharo mkdir files cd files echo Transcript show:'test' >test.st cd .. mkdir curl cd curl curl get.pharo.org/50+vm | bash cd .. sudo chmod -R -w curl curl/p

[Pharo-users] Changes file without

2016-05-31 Thread Valentin Ryckewaert
Hello everyone, I'm trying to execute a script from a .st file on a image whose changes file isn't writable. When i do this, I'm getting a bug with primSize... It looks like get size of the file need write access ? The exception : Primitive failed: primitive #primsize: in MultiByteFileStream Does

[Pharo-users] FileSystem Symlink and Environment variables

2016-05-25 Thread Valentin Ryckewaert
Hello everyone, I would like to know more about what lacks to FileSystem today ? Especially for symbolic links, I didn't find something to read the real path of the symlink (readlink) and to create a symbolic link, does it exists and I didn't find it? I tried to use isSymlink on my machine (linux

Re: [Pharo-users] Get a String during the execution

2016-05-18 Thread Valentin Ryckewaert
in, > > You should check the World>>#openModal: message. > > I think this is what you are looking for. :-) > > Regards, > > Julien > > > On 18/05/16 14:08, Valentin Ryckewaert wrote: > >> Hi ! >> >> I'm trying to make a method able to ask t

[Pharo-users] Get a String during the execution

2016-05-18 Thread Valentin Ryckewaert
Hi ! I'm trying to make a method able to ask the user to write something which will be used in the method. During my method execution, a pop up appear on the screen, the user write anything 'test' for exemple, and then the method continue using this string. The code looks like this: MyClass>>dost

Re: [Pharo-users] OrderedCollection get all lines

2016-05-11 Thread Valentin Ryckewaert
Thanks you again Sven, it will work with that, but there is nothing on Streams? 2016-05-11 16:19 GMT+02:00 Sven Van Caekenberghe : > Did you see #lines and #linesDo: ? > > > On 11 May 2016, at 16:15, Valentin Ryckewaert < > valentin.ryckewa...@gmail.com> wrote: > > &

[Pharo-users] OrderedCollection get all lines

2016-05-11 Thread Valentin Ryckewaert
Hi, I would like to reproduce the grep command in Pharo. To do it I wanted to get the content of a stream and transform it to an OrderedCollection (to use matchesRegex: on it). First of all, is there an easier way to do it? In a second time, is there a method to get the content of a Stream as an

[Pharo-users] Temporary files

2016-05-11 Thread Valentin Ryckewaert
Hello everyone, I would like to use a temporary file for a project and I didn't find an existing method. I'm asking my self if it's a better idea to use ffi or OSSubProcess (or something already build for it) to build a method able to create this tmp file. Someone could help me please? PS : Shoul

Re: [Pharo-users] VTermOutPutDriver

2016-04-29 Thread Valentin Ryckewaert
do you prefer? 2016-04-27 13:08 GMT+02:00 Valentin Ryckewaert < valentin.ryckewa...@gmail.com>: > I found the problem, it's just that the dictionnary which make correspond > bold to the code needed didn't have the bold (and other stuffs I suppose) > I'm trying to fix

Re: [Pharo-users] VTermOutPutDriver

2016-04-27 Thread Valentin Ryckewaert
d. > > Phil > > > > On Wed, Apr 27, 2016 at 10:41 AM, Blondeau Vincent < > vincent.blond...@worldline.com> wrote: > > > > Hi, > > > > > > > > Termcap methods seems not implemented and used by the output driver (see > initialize).. Maybe you should imple

[Pharo-users] VTermOutPutDriver

2016-04-27 Thread Valentin Ryckewaert
Hi everyone, i'm reading VTermOutPutDriver and I tried to use the example of the documentation: | out | out := VTermOutputDriver stdout. out << 'normal text'. out lf. 'red text' do: [ :c | out color256: Color red. out << c ]. out lf. 'bold text' do: [ :c | out bold. out << c ]. out clear. out lf.

Re: [Pharo-users] ensureCreateFile

2016-04-26 Thread Valentin Ryckewaert
I sent a new slice, check it and say me if it's ok for you :) 2016-04-26 11:51 GMT+02:00 Sven Van Caekenberghe : > > > On 26 Apr 2016, at 11:49, Cyril Ferlicot Delbecque < > cyril.ferli...@gmail.com> wrote: > > > > > > > > On 26/04/2016 11:31, Vale

Re: [Pharo-users] ensureCreateFile

2016-04-26 Thread Valentin Ryckewaert
I used this because here it's the folder which doesn't exist so I didn't know if FileDoesNotExist were a good idea, here it's as you want. 2016-04-26 11:24 GMT+02:00 Cyril Ferlicot Delbecque < cyril.ferli...@gmail.com>: > > > On 26/04/2016 10:34, Valentin R

Re: [Pharo-users] ensureCreateFile

2016-04-26 Thread Valentin Ryckewaert
Hi, https://pharo.fogbugz.com/f/cases/18084/FileReference-EnsureCreateFile the issue report I just corrected it in the slice Peter, sorry for my mistake. 2016-04-26 10:34 GMT+02:00 Valentin Ryckewaert < valentin.ryckewa...@gmail.com>: > Hi ! > > I made this if it's ok for

Re: [Pharo-users] ensureCreateFile

2016-04-26 Thread Valentin Ryckewaert
ined if they exist.If the parents folder does not exist create it" ^ self resolve ensureCreateDirectory 2016-04-26 10:34 GMT+02:00 Valentin Ryckewaert < valentin.ryckewa...@gmail.com>: > Hi ! > > I made this if it's ok for you i'll post it on fogbugs : > > Abstr

Re: [Pharo-users] ModificationTime

2016-04-25 Thread Valentin Ryckewaert
Wasn't sure so didn't tell this ! I send an issue 2016-04-25 11:05 GMT+02:00 Esteban Lorenzano : > should be modification time of file… clearly, that method comment is crap > :) > > Esteban > > > On 25 Apr 2016, at 11:01, Valentin Ryckewaert < > valentin.ry

[Pharo-users] ModificationTime

2016-04-25 Thread Valentin Ryckewaert
Hi everyone, I don't understand what is the meaning of this method, could someone help me about it plz? modificationTime: aResolvable "Resolve the argument, and answer true if the result refers to a directory, false if it refers to a file or doesn't exist." ^ store modificationTime: (self resolv

Re: [Pharo-users] ensureCreateFile

2016-04-22 Thread Valentin Ryckewaert
will > suddenly start creating folders, that's a unintentional side effect. > If you need it for your convenience, then it's dead-easy to implement > without breaking existing stuff. > > > On Thu, Apr 21, 2016 at 10:35 AM, Denis Kudriashov > wrote: > >

Re: [Pharo-users] ensureCreateFile

2016-04-21 Thread Valentin Ryckewaert
ory > "Create if necessary a folder and file for the receiver." > > self parent ensureCreateDirectory. > self ensureCreateFile > > > Peter > > On Wed, Apr 20, 2016 at 6:16 PM, Denis Kudriashov > wrote: > >> I would call error >> >> 2016-

[Pharo-users] ensureCreateFile

2016-04-20 Thread Valentin Ryckewaert
Hi, I would like to have your opinion about what you want ensureCreateFile to do. According to me ensureCreateFile should do the same thing as ensureCreateDirectory + create the file in the last directory given but in its implementation if the parents of this file doesn't exist we get an Exception

[Pharo-users] [Pharo-Users] Symbolic links

2016-04-20 Thread Valentin Ryckewaert
Hello everyone, does someone know a way to get the real path of a symlink? I explain: -I have a file '/home/aPath/test.txt' -I have a symlink '/home/aPath/link' pointing on test.txt I would like to see if the symlink really point on the file and may be, get the real path of it, is there a way to

[Pharo-users] [Pharo-Users] Unzip a file

2016-04-19 Thread Valentin Ryckewaert
Hi, I'm trying to unzip a file I did this : GZipReadStream unzip:'aPath/myZip.zip' to: 'aPath/test' asFileReference It's not working and I don't really understand the doc of the method, why does unzip want as first argument the name of the file only? Valentin

Re: [Pharo-users] Rename a file

2016-04-18 Thread Valentin Ryckewaert
gt; And for example: > > (FileLocator vmDirectory / 'testdir/file.txt') writeStream << 'Test' > > will succeed, if the directory /testdir/ exists (it does not > try to create a file called "testdir/file.txt", but really just "file.txt").

Re: [Pharo-users] Rename a file

2016-04-18 Thread Valentin Ryckewaert
acts over that. Asking for an interpretation > of the sub parts is a step too far (even if it would be handy). > > > On 18 Apr 2016, at 10:56, Valentin Ryckewaert < > valentin.ryckewa...@gmail.com> wrote: > > > > I'm on Linux > > > > Is i

Re: [Pharo-users] Rename a file

2016-04-18 Thread Valentin Ryckewaert
I'm on Linux Is it wanted that root / 'a' / 'foo.txt' is different than root / '.foo.txt' ? I find that strange 2016-04-18 10:52 GMT+02:00 Cyril Ferlicot Delbecque < cyril.ferli...@gmail.com>: > > > On 18/04/2016 10:44, Valentin Ryckewaert wrot

Re: [Pharo-users] Rename a file

2016-04-18 Thread Valentin Ryckewaert
Using your method (A string asFileReference) it works thanks ! But if you use FileSystem root / I get the "same" object but it's still not working. Did I make a mistake somewhere? 2016-04-18 10:38 GMT+02:00 Sven Van Caekenberghe : > Hi Valentin, > > > On 18 A

[Pharo-users] Rename a file

2016-04-18 Thread Valentin Ryckewaert
Hi everyone, I'm trying to rename files with this code but it doesn't work, pharo is saying me "PrimitiveFailed" I tried lots of things and I'm not finding how I can rename this file, someone has an idea please? | myFile | myFile := FileSystem root / 'aPath/cat.jpg'. myFile renameTo:'cats.jpg' V

[Pharo-users] Pharo-users Question about the symbols

2016-04-07 Thread Valentin Ryckewaert
Hello everyone, i'm learning Pharo and i'm having difficulties to understand the symbols, what are they? How are they different of the ByteString ? Why are they usefull ? Why should I put #string where I can put 'string' ? Thanks in advance for your answer. Valentin Ryckewaert