View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015612ParaView(No Category)public2015-07-31 09:582015-11-10 09:54
ReporterJoachim Pouderoux 
Assigned ToSchuyler Kylstra 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Versiongit-master 
Target Version5.1Fixed in Version5.0 
Summary0015612: Pasting text in Python Shell does nothing
DescriptionIt seems like pasting a line (or multiple lines) in the ParaView Python Shell window does not execute the script when you press Return, unless you press one more char by hand (a space for instance) before pressing Return.
TagsNo tags attached.
ProjectSandia
Topic Name
Typeincorrect functionality
Attached Files

 Relationships
related to 0014388closedCory Quammen Paste multiple lines into the python shell is broken. 

  Notes
(0035133)
Schuyler Kylstra (developer)
2015-09-02 16:18

I was unable to reproduce this problem. Can you provide more information about your system/ ways to reproduce the bug?
(0035150)
Joachim Pouderoux (developer)
2015-09-03 04:19
edited on: 2015-09-03 04:20

Let's type "foobar()" in a text editor. Copy this string and paste it in the ParaView's Python shell window: the text is correctly pasted but if you press 'return' it will not blame you that the function does not exist because the line was just not executed.
Now paste the line again, press 'space' then 'return': now it blames you.
Tested on Windows & Linux with 4.3.1 and git master.

(0035203)
Schuyler Kylstra (developer)
2015-09-10 16:27

how are you pasting the text? There's a history of problems when pasting using the middle mouse button. I've tested on linux but again was unable to reproduce the bug.
(0035204)
Cory Quammen (developer)
2015-09-10 16:28

Joachim,

I also am not able to reproduce this problem on linux or Windows.

Can you try this on current master? I addressed related bug 14388 recently.

Maybe it's a localization issue? Do you have your system set to a French keyboard, for example?
(0035205)
Joachim Pouderoux (developer)
2015-09-10 16:44

Will try with master tomorrow but on Windows with 4.3.1 here is what I have:
CTRL-V seems to work, pasting "blah()" throws a python error. But using right-click/Paste does no work: no error is printed.
(0035206)
Joachim Pouderoux (developer)
2015-09-10 16:44

And by the way, I do have a french keyboard for sure :)
(0035207)
Cory Quammen (developer)
2015-09-10 16:46

Ah. Right-click, paste from the context does not work for me on 4.3.1. I doubt the fix for 14388 fixes it, but if you could check that out, that would be useful.
(0035208)
Cory Quammen (developer)
2015-09-10 16:51

Also, confirmed that pasting from the context menu does not work on linux.
(0035209)
Schuyler Kylstra (developer)
2015-09-10 16:55

Right-click paste does not work on current master.
(0035228)
Schuyler Kylstra (developer)
2015-09-17 15:25

https://gitlab.kitware.com/paraview/paraview/merge_requests/375 [^]
(0035426)
Alan Scott (manager)
2015-11-04 21:35

I just tried the three ways of pasting that I know of, all three work correctly.

Copy from Windows, the text listed in bug 14388, pasted into Windows, master, OGL2, local server. The three ways were:

* Right click/ Paste.
* Middle mouse button.
* <CTRL>-V

All work.

Alan



by the way, text is as follows:

try: paraview.simple
except: from paraview.simple import *

Sphere1 = Sphere()

RenderView1 = GetRenderView()
DataRepresentation1 = Show()
DataRepresentation1.ScaleFactor = 0.1
DataRepresentation1.SelectionPointFieldDataArrayName = 'Normals'
DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5000076295109483]

RenderView1.CameraPosition = [0.0, 0.0, 3.2903743041222895]
RenderView1.CameraClippingRange = [2.2624705610810665, 4.592229918684124]
RenderView1.CameraParallelScale = 0.8516115354228021

Render()

 Issue History
Date Modified Username Field Change
2015-07-31 09:58 Joachim Pouderoux New Issue
2015-07-31 09:59 Joachim Pouderoux Assigned To => Joachim Pouderoux
2015-07-31 10:16 Joachim Pouderoux Assigned To Joachim Pouderoux =>
2015-07-31 10:18 Joachim Pouderoux Summary Paste test in Python Shell does nothing => Paste text in Python Shell does nothing
2015-07-31 10:18 Joachim Pouderoux Description Updated
2015-07-31 10:19 Joachim Pouderoux Summary Paste text in Python Shell does nothing => Pasting text in Python Shell does nothing
2015-08-31 16:26 Utkarsh Ayachit Assigned To => Schuyler Kylstra
2015-08-31 16:26 Utkarsh Ayachit Project TBD => Sandia
2015-08-31 16:26 Utkarsh Ayachit Target Version => 4.4
2015-09-02 16:18 Schuyler Kylstra Note Added: 0035133
2015-09-03 04:19 Joachim Pouderoux Note Added: 0035150
2015-09-03 04:20 Joachim Pouderoux Note Edited: 0035150
2015-09-03 14:16 Schuyler Kylstra Status backlog => active development
2015-09-10 16:27 Cory Quammen Relationship added related to 0014388
2015-09-10 16:27 Schuyler Kylstra Note Added: 0035203
2015-09-10 16:28 Cory Quammen Note Added: 0035204
2015-09-10 16:44 Joachim Pouderoux Note Added: 0035205
2015-09-10 16:44 Joachim Pouderoux Note Added: 0035206
2015-09-10 16:46 Cory Quammen Note Added: 0035207
2015-09-10 16:51 Cory Quammen Note Added: 0035208
2015-09-10 16:55 Schuyler Kylstra Note Added: 0035209
2015-09-11 16:43 Utkarsh Ayachit Target Version 4.4 => 5.1
2015-09-17 15:23 Schuyler Kylstra Status active development => gatekeeper review
2015-09-17 15:23 Schuyler Kylstra Resolution open => fixed
2015-09-17 15:25 Schuyler Kylstra Note Added: 0035228
2015-11-04 21:35 Alan Scott Note Added: 0035426
2015-11-05 09:27 Utkarsh Ayachit Status gatekeeper review => customer review
2015-11-05 09:28 Utkarsh Ayachit Status customer review => closed
2015-11-05 09:28 Utkarsh Ayachit Fixed in Version => git-master
2015-11-10 09:54 Utkarsh Ayachit Fixed in Version git-master => 5.0


Copyright © 2000 - 2018 MantisBT Team