On 08/28/2012 01:09 AM, kuba.fra wrote:
> Public bug reported:
>
> When saving footprint to my new footprints library (*.mod) on linux I've
> received following error:
>
> IO_ERROR: Unable to rename tempfile '/tmp/EMDR_LightFootAdLpsC' to to library file 'EMDR_LightFoot.mod'
> from /build/buildd/kicad-0.0.201208262046+3684~10~lucid1/kicad/pcbnew/legacy_plugin.cpp : Save() : line 4128
>
> At first I've checked access permissions to /tmp directory and my
> project directory.
>
> Then I've checked this part of code and there is a function:
>
> if( wxRename( tempFileName, m_lib_name ) )
> {
> THROW_IO_ERROR( wxString::Format(
> _( "Unable to rename tempfile '%s' to to library file '%s'" ),
> tempFileName.GetData(),
> m_lib_name.GetData() ) );
> }
>
> The function wxRename returns different results on Windows, MacOs and
> Linux.
Please tell me how you know this last statement, such as a documentation reference or
source code line. I run linux and am not seeing your error for example.
On 08/28/2012 01:09 AM, kuba.fra wrote: LightFootAdLpsC ' to to library file 'EMDR_LightFoot .mod' buildd/ kicad-0. 0.201208262046+ 3684~10~ lucid1/ kicad/pcbnew/ legacy_ plugin. cpp : Save() : line 4128 GetData( ), GetData( ) ) );
> Public bug reported:
>
> When saving footprint to my new footprints library (*.mod) on linux I've
> received following error:
>
> IO_ERROR: Unable to rename tempfile '/tmp/EMDR_
> from /build/
>
> At first I've checked access permissions to /tmp directory and my
> project directory.
>
> Then I've checked this part of code and there is a function:
>
> if( wxRename( tempFileName, m_lib_name ) )
> {
> THROW_IO_ERROR( wxString::Format(
> _( "Unable to rename tempfile '%s' to to library file '%s'" ),
> tempFileName.
> m_lib_name.
> }
>
> The function wxRename returns different results on Windows, MacOs and
> Linux.
Please tell me how you know this last statement, such as a documentation reference or
source code line. I run linux and am not seeing your error for example.
> docs.wxwidgets. org/stable/ wx_filefunction s.html# wxrenamefile
> Consider this function: wxRenameFile
> http://
UI functions are not allowed in a plugin, and wxRemoveFile() puts up a dialog under some
circumstances.
Can you please verify that wxRenameFile will never puts up a dialog function under any
circumstances. This means checking the source code to wx.