#688 Pydev debug tries to access R/O dir

1.3.15
closed-fixed
debugger (210)
5
2008-04-28
2008-04-23
Radim Kubacki
No

Every time when I run my python code I see an exception logged to console because pydev tries write launching data into a folder that is part of installation and thus R/O. This is similar to 1947974. Generally it is bad idea to write anything into install dir.

/opt/eclipse-ext/pydev/eclipse/plugins/org.python.pydev_1.3.15/PySrc/pydev_sitecustomize/encoding_config (Permission denied)
java.io.FileNotFoundException: /opt/eclipse-ext/pydev/eclipse/plugins/org.python.pydev_1.3.15/PySrc/pydev_sitecustomize/encoding_config (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at org.python.pydev.core.REF.writeStrToFile(REF.java:263)
at org.python.pydev.debug.ui.launching.PythonRunner.createEncodingFileForLaunch(PythonRunner.java:266)
at org.python.pydev.debug.ui.launching.PythonRunner.createProcess(PythonRunner.java:213)
at org.python.pydev.debug.ui.launching.PythonRunner.doIt(PythonRunner.java:183)
at org.python.pydev.debug.ui.launching.PythonRunner.run(PythonRunner.java:101)
at org.python.pydev.debug.ui.launching.AbstractLaunchConfigurationDelegate.launch(AbstractLaunchConfigurationDelegate.java:91)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:764)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:614)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:827)
at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1030)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Discussion

  • Fabio Zadrozny
    Fabio Zadrozny
    2008-04-28

    • status: open --> closed-fixed
     
  • Fabio Zadrozny
    Fabio Zadrozny
    2008-04-28

    Logged In: YES
    user_id=617340
    Originator: NO

    Fixed for 1.3.16 (console encoding passed as environment variable)