< Back to IRCAM Forum

Can’t save Lisp Editor’New Buffer

Hello everyone, dear OMers.

I am writing because I am trying my first experiments writing Lisp code in the OpenMusic Lisp Editor, but as soon as I give the order to save the file, two error screens open in sequence - which I report in the attachment.
I hope I have provided everything possible to be able to quickly shed light on my issue.
Best wishes for a good continuation to everyone!

neo

Second error

Dear Neo,

First of all i assume you are using the latest OM version?
Then can you try to save your file in your home instead saving it at the root of your HD. It could be (and most probably) you don’t have write permission…

Keep me informed

Best
K

Dear Mr. Haddad,

First of all thank you very much for your quick reply. Yes, I apologize for not specifying it, I am using the latest version of OpenMusic (7.6). The computer I am working on is a MacBook Pro with Apple M1 Chip, while the operating system is macOS Monterey.

The problem is that I am not finding a way to change the save location, because as soon as the navigation window opens, the error window also opens, which imposes itself and as soon as I click on “ok”, the first error screen (attached screen n.1) and also the pop-up window for saving disappear. So I am automatically taken back to OM which presents me with the second error screen (attached screen n.2).

Can I change the save location in advance?
In fact it seems strange to me that that destination is set, since every time I save something in OM it automatically sets itself towards the out-files folder.

Thanks again in advance for the time granted and for the professionalism in your work.

Kind regards,

neo

Second error Small

Dear Neo,

Yes apparently it is not exactly a bug but an Apple issue. I will look into it.
Meanwhile, can you use another editor to just save the file, then open it back in OM?
Tell me if this works for you. Since i dont have Monterey (but it is not related) and I have Xcode installed i cannot have the exact behavior than you have.

Will let you know about this issue.

Thank you for reporting.
BEst
K

Googling,

Maybe also try to allow full disk access to OM Like in this case here (see method 3):

Dear Mr. Haddad,

Thank you for the effort in trying to solve this strange problem. I tried method 3 of the link you reported, but the problem persists. Also trying to load .lisp files written in LispWorks into the Lisp Editor of OM the problem persists, re-proposing the error screen presented in the first attachment of the previous answer.
Of course, it is not a problem that is particularly invalidating my work, but I would like to understand why it occurs.

Best regards and have a good weekend.

neo

p.s. I found that, maybe can help.

https://developer.apple.com/forums/thread/725747?page=1#746407022

Dear neo,

This happens dfue to apple’s notorization process and files. And yes i am aware of this file (not the same sa here) and i beleive indeed it needs an addition. So i will try to contact Apple Support for that.
Best
K

1 Like

Dear Mr. Haddad,

I thank you sincerely for your dedication. So I will remain waiting; in the unlikely event - unlikely because of my limited expertise in the matter - that I manage to obtain news on it, I will let you know.

Warmest regards and good continuation.

Dear Neo,

No worries. I think i got this one. Give me sometime to test, and i will create a beta version for you to test ASAP.

Best
K

1 Like

Dear Neo,

Here is a testing beta version hoping the issue is resolved. Please can you test it. (no need to remove the 7.6 version, both could be installed along):

Keep me informed.

Best
K

Dear Mr. Haddad,

I thank you very much for this further attempt, unfortunately the problem is persisting in the same way as before.
I apologize for the delay in responding.

A warm greeting and see you soon,

neo

Dear Neo,

Sorry to learn this. I will try then to find a machine with Monterey and test it. It is most probably related to your OS. I tested on my machine sequoia M1 and Intel. and this works.
Very strange…
Is there a possibility for you to update your system to the latest one?

Best
K

Dear Mr. Haddad,

Sorry for my late reply. I still can’t update my operating system (I probably will be able to do it soon, hopefully in mid-July), and I still haven’t found anything new to try to better understand the problem posed in this topic.

In any case, I’m attaching (and I apologize for not having thought of it before) the message that appears in the Listener after I closed the error screens that I reported in the previous messages, maybe it can be of help.

Best regards and thanks again for everything!

neo

OM > "ERROR: Argument nil is not of type PATHNAME, STRING, or FILE-STREAM.

Call to om-lisp::om-error-handler
Call to invoke-debugger
Call to error
Call to merge-pathnames
Call to open
Call to stream::external-format-open
Call to open
Call to (method om-lisp::save-as-text-file (om-text-editor))
Call to (method om-lisp::save-text-file (om-text-editor))
Call to capi::internal-funcall-using-callback-type
Call to capi::execute-callback
Call to capi::execute-callback-1
Call to capi:execute-with-interface
Call to (subfunction capi-cocoa-library::|%FOREIGN-CALLABLE/CAPI_COCOA_LIBRARY MENU_REPRESENTATION ObjC instance method _CAPIMenuItemSelected:| (fli:define-foreign-callable “CAPI_COCOA_LIBRARY MENU_REPRESENTATION ObjC instance method _CAPIMenuItemSelected:”))
Call to objc::|invoke (SUPER-FUNCTION ((POINTER (STRUCT OBJC-SUPER)) SEL OBJC-OBJECT-POINTER) OBJC-C+±BOOL)|
Call to (subfunction 2 objc::make-invoke-function)
Call to objc::invoke-into*
Call to objc:invoke-into
Call to (subfunction capi-cocoa-library::|%FOREIGN-CALLABLE/CAPI_COCOA_LIBRARY MENU_REPRESENTATION ObjC instance method performKeyEquivalent:| (fli:define-foreign-callable “CAPI_COCOA_LIBRARY MENU_REPRESENTATION ObjC instance method performKeyEquivalent:”))
Call to objc::|invoke (FUNCTION (OBJC-OBJECT-POINTER SEL) VOID)|
Call to (subfunction 2 objc::make-invoke-function)
Call to objc::invoke-into*
Call to capi-cocoa-library::run-cocoa-event-loop
Call to mp::process-sg-function
Call to mp::run-main-process-once
Call to mp::multiprocessing-main-loop
Call to mp::shared-initialize-multiprocessing
"

Dear Neo,

First, do you have some libraries loaded?
Second do you have any anti-virus program running?

If not , it seems that your OS is preventing the file to be written on the HD. Maybe try to see in system security check files and permission.

Sorry about that. On my machine i cannot replicate this problem and the listener feedback you’ve sent just says that om couldn’t access the path to your HD.

Keep me informed.

Best
K

Dear Mr. Haddad,

First: Yes, I have some OM libraries loaded in my workspace.

Second: No, I haven’t any anti-virus program running on my Mac.

I think I checked the permissions and gave OM full disk access, as the link you sent me earlier explained, but nothing seems to change.

I’ll keep working on it, thanks again for everything.

Have a nice rest of your day,

neo

Can you try to do so without any library loaded?

Dear Mr. Haddad,

I tried to create a new WorkSpace without libraries and the result is the same. I tried now on a MacBook Air (of another person) with M1 chip and MacOS Sequoia 15.2 and I had no problems in saving the .lisp file written in the OM editor.

I hope that once I have updated the operating system I will not have these problems anymore.

Thanks again for the heroic effort, in the meantime I continue to try everything.

Best regards,

neo

Dear neo,

Unfortunately, i think it is related to the OS version. Maybe an old LispWorks bug concerning Monterey.

Thank you for your feedback.
Best
Karim

Dear Mr. Haddad,

I was able to advance the upgrade of my system to Sequoia and I can finally say that everything is solved: no problem in saving or loading .lisp files.

Thanks for all the support these days.

Good continuation.

neo

1 Like