DeltaEscher / editra

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

Unable to edit additional files from command line after startup #441

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. From command prompt issue command: Editra foo &
2. From command prompt issue command: Editra bar
3.

What is the expected output? What do you see instead?
Expected: foo and bar in separate tabs of Editra window
Observed: foo in tab, Editra test version flash screen (disappears as
expected), NO tab for bar.

IMPORTANT!!! Please answer these questions for any and ALL bug reports

What version of the product are you using? On what operating system?
Editra 5.25, SUSE linux

What method of install was your version installed with (Binary/Source)?
Source (2009/12/16)

If from source: What version of python and wxPython are you using?
python-base-2.6.0-2.22.1
python-wxGTK-2.8.9.2-0.pm.1

Please provide any additional information below.
Tried command: Editra foo bar
Results: both files opened in Editra window.

Tried command: Editra foo
Results: file foo appears in first tab of Editra window (expected result)
From open Editra window, select "File", "Open", select file bar
Results: file bar appears in second tab of Editra window. (expected result)

Original issue reported on code.google.com by psher...@ameritech.net on 16 Dec 2009 at 3:13

GoogleCodeExporter commented 8 years ago
Hi,

If you have the Editra Log window open (View->Shelf->Editra Log) in your open
instance of Editra are any errors/warnings shown when you try to open the 
second file
from the command line?

Also check for errors printed to the console when trying 'Editra -dd bar' after 
the
first instance is already running.

I am guessing a possible IPC issue here as I can't reproduce on my mac and 
there have
been issues with editra's ipc server on linux before.

Thanks for the report,

Cody

Original comment by CodyPrec...@gmail.com on 16 Dec 2009 at 5:33

GoogleCodeExporter commented 8 years ago
Nothing special seen in the Editra log window. I've attached the log file from
starting Editra with the -dd option.

Phil

Original comment by psher...@ameritech.net on 17 Dec 2009 at 3:53

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks, I don't see anything special in there either.

One more test:

1) Open PyShell Plugin
2) enter the following commands (one line at a time)
import profiler
key = profiler.Profile_Get('SESSION_KEY')
print key
import ed_ipc
print ed_ipc.SendCommand(ed_ipc.IPCCommand(), key)
3) This should cause a new window to be opened, if it doesn't please send me 
the text
for the two print statements from the pyshell window.

Thanks,

Cody

Original comment by CodyPrec...@gmail.com on 17 Dec 2009 at 8:00

GoogleCodeExporter commented 8 years ago
Followed instructions  - no window opened. Python plugin results follow:

Python 2.6 (r26:66714, Feb  3 2009, 20:52:03) 
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Startup script executed: /etc/pythonstart
import profiler
key = profiler.Profile_Get('SESSION_KEY')
print key
Philip ShermanwUjzT4X1mUE=
import ed_ipc
print ed_ipc.SendCommand(ed_ipc.IPCCommand(), key)
Traceback (most recent call last):
  File "<input>", line 1, in <module>
AttributeError: 'module' object has no attribute 

Original comment by psher...@ameritech.net on 17 Dec 2009 at 10:21

GoogleCodeExporter commented 8 years ago
Hi,

This was quite useful I have an idea of what may be going on (even though some 
text
from the end appears to be missing).

Look in your installation directory under Editra/src/syntax

Is there a file called xml.py there? There have been issues with that old file 
not
getting uninstalled recently that caused conflicts.

I would suggest trying to remove your installation directory and installing 
again I
think some files might be in conflict ($python_lib/site-packages/Editra).

Thanks,

Cody

Original comment by CodyPrec...@gmail.com on 17 Dec 2009 at 10:58

GoogleCodeExporter commented 8 years ago
Deleted installation directory and reinstalled. Same problem. I'm re-attaching 
the
python stuff you requested. I may have missed the last line before.

Python 2.6 (r26:66714, Feb  3 2009, 20:52:03) 
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Startup script executed: /etc/pythonstart
import profiler
key = profiler.Profile_Get('SESSION_KEY')
print key
Philip ShermanLxdJIglVwx8=
import ed_ipc
print ed_ipc.SendCommand(ed_ipc.IPCCommand(), key)
Traceback (most recent call last):
  File "<input>", line 1, in <module>
AttributeError: 'module' object has no attribute 'SendCommand'

Original comment by psher...@ameritech.net on 18 Dec 2009 at 10:03

GoogleCodeExporter commented 8 years ago
Ah,

I'm sorry I made a typo in the commands to run.

Should have been SendCommands (with the s at the end)

print ed_ipc.SendCommands(ed_ipc.IPCCommand(), key)

Original comment by CodyPrec...@gmail.com on 18 Dec 2009 at 10:11

GoogleCodeExporter commented 8 years ago
Latest run results:
Python 2.6 (r26:66714, Feb  3 2009, 20:52:03) 
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Startup script executed: /etc/pythonstart
import profiler
key = profiler.Profile_Get('SESSION_KEY')
print key
Philip ShermanzGXf4DdfcPc=
import ed_ipc
print ed_ipc.SendCommands(ed_ipc.IPCCommand(), key)
True

Original comment by psher...@ameritech.net on 21 Dec 2009 at 1:50

GoogleCodeExporter commented 8 years ago
Hi,

The above output all looks correct, did it cause a new window to be opened?

Does this issue still persist in the latest release (0.5.32)?

Thanks,

Cody

Original comment by CodyPrec...@gmail.com on 30 Dec 2009 at 5:02

GoogleCodeExporter commented 8 years ago
I cannot reproduce this issue and have not received a reply so I am going to 
close
this for now. If the issue still exists in the current release please feel free 
to
reopen this issue.

Original comment by CodyPrec...@gmail.com on 30 Mar 2010 at 3:11