thecocce / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

internal interpretor is caching the old file and not updating the project output as per the file changes #370

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open the attached project
2. Select "main.py" and run the project once (Ctrl + F9). [outputs are obvious]
3. Now, select "module1.py"
4. Do changes in any of the function. (I did changes in function Add "retVal = 
int1 + int2" to "retVal = int1 * int2".
5. Select "main.py" again and re-run the project (Ctrl + F9). Interpreter will 
show the output as per the previous code.
6. Now close the window and re-open the project. Run it again and the output 
will be according to the new code. 

What is the expected output? What do you see instead?
- Interpreter should use the new source and display the updated output.

What version of the product are you using? On what operating system?
- 1.9.9.7

Please provide any additional information below.

- If with the updated code, I close and re-open the IDE the new code gets 
compiled and can see the updated values.

Original issue reported on code.google.com by raviprak...@gmail.com on 19 Jun 2010 at 1:36

Attachments:

GoogleCodeExporter commented 9 years ago
I also noticed this behaviour and suggest to install the rpyc package. It 
allows you to use a remote python engine which can be reseted via <Ctr+F2>. Use 
<Ctr+F2> <Ctrl+F9> every time you changed something in your module and 
everything will be fine. Sounds a bit cumbersome but I got used to it very 
quickly and so will you :)

Original comment by sebavo...@googlemail.com on 28 Jun 2010 at 11:18

GoogleCodeExporter commented 9 years ago

Original comment by pyscripter on 9 Aug 2010 at 2:15