Problems/Suggestions with Pharo IDE

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

Problems/Suggestions with Pharo IDE

Clément Dumazy
Hello,

I'm a French student who have learned Pharo for 2 months during a university course.
As this was the first time I use Pharo IDE and the first time I program in Pharo, my teacher suggested me to send a mail on the mailing list if I encounter problems.

I encountered some problems/suggestions with using the IDE :
  • As I crashed the IDE several times, is there a way to automatically save the image every 5 minutes (or every other frequency) to avoid the loss of my work ?
  • I can't copy/paste from Google Chrome (on ubuntu 14.04) while I could copy/paste from other software like Gedit or Firefox.
  • Last problem that I have seen, is that I couldn't use Pharo on my windows 10 Computer. I have downloaded the last version (windows version) on pharo.org and when I try to execute it (without and with administrator mode), I have a pop-up who appear. I made a screenshot of this pop-up and put it in attachment to this mail.
I hope that I have posted this mail in the good mailing list.
Thanks for reading,

Clement

ProblemWithPharoIDEOnWindows10.png (25K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Problems/Suggestions with Pharo IDE

SergeStinckwich
On Sat, Mar 12, 2016 at 10:42 AM, Clément Dumazy
<[hidden email]> wrote:
> Hello,

Hi Clement,
Welcome in the Pharo community !

> I'm a French student who have learned Pharo for 2 months during a university
> course.
> As this was the first time I use Pharo IDE and the first time I program in
> Pharo, my teacher suggested me to send a mail on the mailing list if I
> encounter problems.
>
> I encountered some problems/suggestions with using the IDE :
>
> As I crashed the IDE several times, is there a way to automatically save the
> image every 5 minutes (or every other frequency) to avoid the loss of my
> work ?

This is almost impossible to lose code in Pharo ! Your code
modifications are logged in the changes file.
Please have a look to this video that explain how to recover changes
when you crash you image:
https://www.youtube.com/watch?v=hFvsvOsvqwo

--
Serge Stinckwich
UCBN & UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://www.doesnotunderstand.org/

Reply | Threaded
Open this post in threaded view
|

Re: Problems/Suggestions with Pharo IDE

Clément Dumazy
Thank you Serge !
That will help me very well.

2016-03-12 11:59 GMT+01:00 Serge Stinckwich <[hidden email]>:
On Sat, Mar 12, 2016 at 10:42 AM, Clément Dumazy
<[hidden email]> wrote:
> Hello,

Hi Clement,
Welcome in the Pharo community !

> I'm a French student who have learned Pharo for 2 months during a university
> course.
> As this was the first time I use Pharo IDE and the first time I program in
> Pharo, my teacher suggested me to send a mail on the mailing list if I
> encounter problems.
>
> I encountered some problems/suggestions with using the IDE :
>
> As I crashed the IDE several times, is there a way to automatically save the
> image every 5 minutes (or every other frequency) to avoid the loss of my
> work ?

This is almost impossible to lose code in Pharo ! Your code
modifications are logged in the changes file.
Please have a look to this video that explain how to recover changes
when you crash you image:
https://www.youtube.com/watch?v=hFvsvOsvqwo

--
Serge Stinckwich
UCBN & UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://www.doesnotunderstand.org/


Reply | Threaded
Open this post in threaded view
|

Re: Problems/Suggestions with Pharo IDE

Ben Coman
In reply to this post by Clément Dumazy
On Sat, Mar 12, 2016 at 5:42 PM, Clément Dumazy
<[hidden email]> wrote:
> Hello,
>
> I'm a French student who have learned Pharo for 2 months during a university
> course. As this was the first time I use Pharo IDE and the first time I program in
> Pharo, my teacher suggested me to send a mail on the mailing list if I
> encounter problems.

Nice to hear from someone new to Pharo taking the time to let us know
how to improve. I hope you have a long and prosperous experience with
Pharo.

> As I crashed the IDE several times, is there a way to automatically save the
> image every 5 minutes (or every other frequency) to avoid the loss of my
> work ?

Could I just clarify if this was a "crash" where the Image exited, or
a "lockup" where the Image froze.  Since the code you develop and
execute runs in the same thread as the IDE, an error in you code that
(for example) loops forever will block the UI from operating.  Do you
know about the system escape keypress [Alt .] "alt-period" for
breaking out of such a situation?

> I can't copy/paste from Google Chrome (on ubuntu 14.04) while I could
> copy/paste from other software like Gedit or Firefox.

I'm on Debian 8 Jessie which uses MATE Desktop Environment 1.8.1.  Its
similar vintage to 14.04 but I don't know what desktop it uses?

I just downloaded the latest build 50636 and tested against Chrome.  I
had no problem copying text from a random web page into a playground
in Pharo.  But I may have a different VM.  Could you post the exact
links you downloaded, and also the VM and Image shown by World menu >
System > System Reporter.  Here is mine...

Image
-----
/home/ben/.local/share/Pharo/images/Pharo 5.0 (beta)-50636/Pharo 5.0
(beta)-50636.image
Pharo5.0
Latest update: #50636
Unnamed

Virtual Machine
---------------
/home/ben/.local/share/Pharo/VMs/spur/pharo-vm/pharo
CoInterpreter VMMaker.oscog-eem.1630 uuid:
2ed025ea-f400-4440-8e8b-5aa46d06c9ab Jan 14 2016
StackToRegisterMappingCogit VMMaker.oscog-eem.1630 uuid:
2ed025ea-f400-4440-8e8b-5aa46d06c9ab Jan 14 2016
https://github.com/estebanlm/pharo-vm.git Commit:
21ec004cce7d26010c18d357c805a0e1a4ffe376 Date: 2016-01-14 11:42:33
+0100 By: Esteban Lorenzano <[hidden email]> Jenkins build #498


> Last problem that I have seen, is that I couldn't use Pharo on my windows 10
> Computer. I have downloaded the last version (windows version) on pharo.org
> and when I try to execute it (without and with administrator mode), I have a
> pop-up who appear. I made a screenshot of this pop-up and put it in
> attachment to this mail.

Could you provide the exact links you downloaded from?

> I hope that I have posted this mail in the good mailing list.

Yep, you found the right spot.
cheers -ben

Reply | Threaded
Open this post in threaded view
|

Re: Problems/Suggestions with Pharo IDE

Julien Delplanque
In reply to this post by Clément Dumazy
Hi Clement,

On 12/03/16 10:42, Clément Dumazy wrote:
>     - I can't copy/paste from Google Chrome (on ubuntu 14.04) while I could
>     copy/paste from other software like Gedit or Firefox.
>
I had the same problem. There is a little trick to resolve this: [1]
(second message).

Sadly, there are still webpages where copy/paste from it to Pharo does
not work :(.

Julien

Links:
[1]:
http://forum.world.st/Problem-with-Copy-and-Paste-on-Google-Chrome-in-Ubuntu-td4854203.html

Reply | Threaded
Open this post in threaded view
|

Re: Problems/Suggestions with Pharo IDE

Clément Dumazy
Thank you Julien.
Your solution works very well !

2016-03-12 13:23 GMT+01:00 Julien Delplanque <[hidden email]>:
Hi Clement,

On 12/03/16 10:42, Clément Dumazy wrote:
    - I can't copy/paste from Google Chrome (on ubuntu 14.04) while I could
    copy/paste from other software like Gedit or Firefox.

I had the same problem. There is a little trick to resolve this: [1] (second message).

Sadly, there are still webpages where copy/paste from it to Pharo does not work :(.

Julien

Links:
[1]: http://forum.world.st/Problem-with-Copy-and-Paste-on-Google-Chrome-in-Ubuntu-td4854203.html


Reply | Threaded
Open this post in threaded view
|

Re: Problems/Suggestions with Pharo IDE

Clément Dumazy
In reply to this post by Ben Coman


2016-03-12 13:19 GMT+01:00 Ben Coman <[hidden email]>:
On Sat, Mar 12, 2016 at 5:42 PM, Clément Dumazy
<[hidden email]> wrote:
> Hello,
>
> I'm a French student who have learned Pharo for 2 months during a university
> course. As this was the first time I use Pharo IDE and the first time I program in
> Pharo, my teacher suggested me to send a mail on the mailing list if I
> encounter problems.

Nice to hear from someone new to Pharo taking the time to let us know
how to improve. I hope you have a long and prosperous experience with
Pharo.

> As I crashed the IDE several times, is there a way to automatically save the
> image every 5 minutes (or every other frequency) to avoid the loss of my
> work ?

Could I just clarify if this was a "crash" where the Image exited, or
a "lockup" where the Image froze.  Since the code you develop and
execute runs in the same thread as the IDE, an error in you code that
(for example) loops forever will block the UI from operating.  Do you
know about the system escape keypress [Alt .] "alt-period" for
breaking out of such a situation?


I didn't know this. Thank you it will help me next times !
 
> I can't copy/paste from Google Chrome (on ubuntu 14.04) while I could
> copy/paste from other software like Gedit or Firefox.

I'm on Debian 8 Jessie which uses MATE Desktop Environment 1.8.1.  Its
similar vintage to 14.04 but I don't know what desktop it uses?

I just downloaded the latest build 50636 and tested against Chrome.  I
had no problem copying text from a random web page into a playground
in Pharo.  But I may have a different VM.  Could you post the exact
links you downloaded, and also the VM and Image shown by World menu >
System > System Reporter.  Here is mine...

Image
-----
/home/ben/.local/share/Pharo/images/Pharo 5.0 (beta)-50636/Pharo 5.0
(beta)-50636.image
Pharo5.0
Latest update: #50636
Unnamed

Virtual Machine
---------------
/home/ben/.local/share/Pharo/VMs/spur/pharo-vm/pharo
CoInterpreter VMMaker.oscog-eem.1630 uuid:
2ed025ea-f400-4440-8e8b-5aa46d06c9ab Jan 14 2016
StackToRegisterMappingCogit VMMaker.oscog-eem.1630 uuid:
2ed025ea-f400-4440-8e8b-5aa46d06c9ab Jan 14 2016
https://github.com/estebanlm/pharo-vm.git Commit:
21ec004cce7d26010c18d357c805a0e1a4ffe376 Date: 2016-01-14 11:42:33
+0100 By: Esteban Lorenzano <[hidden email]> Jenkins build #498


Julien help me for this problem with the option : --textenc utf8

This is what I obtain : 

Image
-----
/home/clement/Softwares/pharo4.0/shared/Pharo4.0.image
Pharo4.0
Latest update: #40626
Unnamed

Virtual Machine
---------------
/home/clement/Softwares/pharo4.0/bin/pharo
NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 May 15 2014
NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 May 15 2014
https://github.com/pharo-project/pharo-vm.git Commit: ed4a4f59208968a21d82fd2406f75c2c4de558b2 Date: 2014-05-15 18:23:04 +0200 By: Esteban Lorenzano <[hidden email]> Jenkins build #14826

Unix built on May 15 2014 18:29:39 Compiler: 4.6.3
VMMaker versionString https://github.com/pharo-project/pharo-vm.git Commit: ed4a4f59208968a21d82fd2406f75c2c4de558b2 Date: 2014-05-15 18:23:04 +0200 By: Esteban Lorenzano <[hidden email]> Jenkins build #14826
NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 May 15 2014
NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 May 15 2014


 

> Last problem that I have seen, is that I couldn't use Pharo on my windows 10
> Computer. I have downloaded the last version (windows version) on pharo.org
> and when I try to execute it (without and with administrator mode), I have a
> pop-up who appear. I made a screenshot of this pop-up and put it in
> attachment to this mail.

Could you provide the exact links you downloaded from?


I download it on this page : http://pharo.org/download

 
> I hope that I have posted this mail in the good mailing list.

Yep, you found the right spot.
cheers -ben


Thank you for your answer,
Cheers,
Clément
Reply | Threaded
Open this post in threaded view
|

Re: Problems/Suggestions with Pharo IDE

philippeback
In reply to this post by Julien Delplanque
Still, this should be part of the scripts as mentioned in my comment at the end of the mentioned link.

Phil

On Sat, Mar 12, 2016 at 1:23 PM, Julien Delplanque <[hidden email]> wrote:
Hi Clement,

On 12/03/16 10:42, Clément Dumazy wrote:
    - I can't copy/paste from Google Chrome (on ubuntu 14.04) while I could
    copy/paste from other software like Gedit or Firefox.

I had the same problem. There is a little trick to resolve this: [1] (second message).

Sadly, there are still webpages where copy/paste from it to Pharo does not work :(.

Julien

Links:
[1]: http://forum.world.st/Problem-with-Copy-and-Paste-on-Google-Chrome-in-Ubuntu-td4854203.html



Reply | Threaded
Open this post in threaded view
|

Re: Problems/Suggestions with Pharo IDE

hernanmd
In reply to this post by Clément Dumazy
Welcome Clément,

2016-03-12 6:42 GMT-03:00 Clément Dumazy <[hidden email]>:
Hello,

I'm a French student who have learned Pharo for 2 months during a university course.
As this was the first time I use Pharo IDE and the first time I program in Pharo, my teacher suggested me to send a mail on the mailing list if I encounter problems.

I encountered some problems/suggestions with using the IDE :
  • As I crashed the IDE several times, is there a way to automatically save the image every 5 minutes (or every other frequency) to avoid the loss of my work ?

[ [ true ] whileTrue: [
    (Delay forSeconds: 300) wait.
    Smalltalk snapshot: true andQuit: false
    ] ] forkAt: Processor userInterruptPriority.

You can access the Process Browser to stop the process.


Cheers,

Hernán
Reply | Threaded
Open this post in threaded view
|

Re: Problems/Suggestions with Pharo IDE

Sven Van Caekenberghe-2

> On 12 Mar 2016, at 21:09, Hernán Morales Durand <[hidden email]> wrote:
>
> Welcome Clément,
>
> 2016-03-12 6:42 GMT-03:00 Clément Dumazy <[hidden email]>:
> Hello,
>
> I'm a French student who have learned Pharo for 2 months during a university course.
> As this was the first time I use Pharo IDE and the first time I program in Pharo, my teacher suggested me to send a mail on the mailing list if I encounter problems.
>
> I encountered some problems/suggestions with using the IDE :
> • As I crashed the IDE several times, is there a way to automatically save the image every 5 minutes (or every other frequency) to avoid the loss of my work ?
>
> [ [ true ] whileTrue: [
>     (Delay forSeconds: 300) wait.
>     Smalltalk snapshot: true andQuit: false
>     ] ] forkAt: Processor userInterruptPriority.
>
> You can access the Process Browser to stop the process.

This is not such a good idea, it would/could do more harm than it helps. Especially for a beginner. Just my opinion.

> Cheers,
>
> Hernán