Closed mwwoda closed 2 years ago
Yes, it would. And... without your report, it's impossible to know what the problems with a specific OS, so thank you.
It is a strange problem as CommonApplicationData
means "any app can write here". Apparently, the OS developers decided that it should not be the case :(
Marking the issue as an enhancement to release the customization that would allow specifying the arbitrary root for the app data.
As for macOS support, ccs-script can be run on any OS supporting .NET 5+. But I can only test it on Linux (https://github.com/oleg-shilo/cs-script/wiki/CS-Script-on-Linux) and Win.
Can you please try this pre-release: https://github.com/oleg-shilo/cs-script/releases/tag/v4.4.2
I found that the only use-case when cs-script is using CommonApplicationData
based folders is to import the scripts. Meaning that ignoring the exception on EnsureDir
may be enough to address the problem. If not I will create a more comprehensive solution.
Let me know how did it go for you.
I just ran a small .cs file with simple printing and it worked!
Perfect. Then I will rerelease tmr as a full release. Thank you. Testing on Mac was always a difficult part for me
Done the build that you have tested is now fully released and published on choco
Hello, I'm not sure if cs-script is officialy supported on macOS, but I wanted to push my luck and I installed it via vs code as an extension. When trying to call
CS-Script: About
command I get the following errorA quick glance at the code and it looks like there is a problem with
Runtime.CustomCommandsDir.EnsureDir();
linein cscs/Program.cs
. It tries to create a directory underCommonApplicationData
which translates to/usr/share
path under macOS. This directory is protected by SIP, so I tried to disable that withcsrutil disable
. I still get the error when trying to manually create thecs-script
directory.It seems that since Catalina version it is not possible to store data in read-only system volume https://support.apple.com/en-gb/HT210650
Would it be possible to make
CustomCommandsDir
and other directories associated withCommonApplicationData
more configurable? Or move them to a different location?OS Version: macOS Monterey 12.2.1