octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #62215] GUI / debug mode does not honor tmpdir


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #62215] GUI / debug mode does not honor tmpdir environment variable
Date: Thu, 24 Mar 2022 08:25:51 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?62215>

                 Summary: GUI / debug mode does not honor tmpdir environment
variable
                 Project: GNU Octave
            Submitted by: nrjank
            Submitted on: Thu 24 Mar 2022 08:25:49 AM EDT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: Nicholas Jaknkowski
        Originator Email: 
             Open/Closed: Open
                 Release: 6.4.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

first identified in bug #62105 when using the editor in debug mode. if  using
F9 to execute a code block an error is indicated pointing to the temporary
file created for executing the code.  However, despite tmpdir being set, the
temp file appears to be located in the system TEMP location. Unsure if this is
an issue with the GUI or with the debug mode, and if it affects more than
windows (verified on 6.4.0 on Windows 10).  This seems similiar to bug #55814,
where mkoctfile was ignoring tmpdir, but that was fixed a few versions ago.

to reproduce:


*create c:\octave\temp*

>> getenv('temp')
ans = C:\Users\<USERNAME_in8.3format>\AppData\Local\Temp

>> getenv('tmp')
ans = C:\Users\<USERNAME_in8.3format>\AppData\Local\Temp

>> setenv('tmpdir', 'c:\octave\temp')

>> tempdir
ans = c:\Octave\Temp\

>> edit mean

*set breakpoint at first line of code - line 94*

>> mean(1)
stopped in mean at line 94 [C:\Octave\octave-6.4.0-w64\
mingw64\share\octave\6.4.0\m\statistics\mean.m]
94:   if (nargin < 1 || nargin > 4)

*highilght uninitialized variable 'nd' on line 101, press F9*

debug> nd
error: 'nd' undefined near line 1, column 1
error: called from
    C:/Users/<USERNAME>/AppData/Local/Temp/octave/octave
_klgahA.m at line 1 column 1

debug> tempdir
ans = c:\octave\temp


(not sure what to tag category and item group as. feel free to correct.)





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62215>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]