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

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

[Octave-bug-tracker] [bug #62515] error: ignoring const execution_except


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #62515] error: ignoring const execution_exception& while preparing to exit
Date: Sat, 2 Jul 2022 07:14:00 -0400 (EDT)

Update of bug #62515 (project octave):

                Category:                    None => Interpreter            
              Item Group:                    None => Segfault, Bus Error, etc.

    _______________________________________________________

Follow-up Comment #9:

The first comment wasn't specific to which platform it applies. The later
comments hint that this is an issue on Mac OS X (or whatever that OS is called
currently).

IIUC, XDG_CONFIG_HOME and XDG_DATA_HOME aren't set (at least by default) on
that platform. The fallbacks that Octave is using in that case don't seem to
match Apple's recommendations:
https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html#//apple_ref/doc/uid/TP40010672-CH10-SW1

We currently use XDG_DATA_HOME to store the history. We use XDG_CONFIG_HOME
for things like `.octaverc` or the GUI settings.
If I understand Apples recommendations correctly, better fallbacks for both
for that platform would be "~/Library/Application Support".
However, I've never actually worked with that OS. So, please let me know if
different fallbacks would be better.

I'm attaching a tentative patch that uses that fallback on that platform.
IIUC, that would fix the issue on Mac OS X.

An "actual" fix for all platforms might involve creating those directories
recursively (not sure how to do that in a cross-platform compatible way) if
they don't exist. (Maybe we should do that when those paths are requested?)
That is assuming that the original report is also caused by a missing
directory...

(file #53389)

    _______________________________________________________

Additional Item Attachment:

File name: bug62515-XDG-fallback-on-mac.patch Size:2 KB
   
<https://file.savannah.gnu.org/file/bug62515-XDG-fallback-on-mac.patch?file_id=53389>



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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