From the comments you've made, you appear to be a little unfamiliar with the Unix underpinnings of OS X. I'll explain those first, then I'll suggest something for you to try that may fix your problem.
Technically, files or directories whose name starts with .
are not "reserved for the system" as you put it; they're hidden. Now, it's true that Finder won't allow you to create files or directories whose name starts with .
, because Apple didn't want to have to field all the tech-support calls from people who didn't know about the hidden-files feature: "I named my file ... more important stuff for work
and now it's gone! Help!!!" But if you're in the Terminal app, then you can easily create files or directories with .
as their first letter: mkdir .foo
should work. You won't see it when you do ls
, but ls -a
(a
for "all") will show you all files, including hidden files. And you can also do cd .foo
and create files inside the hidden .foo
directory -- and while the .foo
folder won't show up in Finder, it will be perfectly accessible in the Terminal, and to any F# programs you might write.
So when you say that you cloned https://github.com/fsprojects/Paket but it failed to include the .github
and .paket
directories, I think you just don't know how to see them. You can't see them in the Finder (well, you can if you jump through a couple of hoops but I don't think it's worth the effort), but you can see them with ls -a
. Just open your terminal, run cd /Users/Username/Paket
, and then run ls -a
and I think you'll see that the .paket
and .github
directories were indeed created by your git clone
command.
So what you should probably try is this:
- Go to https://github.com/fsprojects/Paket/releases/latest
- Download the
paket.bootstrapper.exe
and paket.exe
files. Put them in /Users/Username/Downloads
(or wherever the default OS X Downloads directory is if it's different -- just as long as it's somewhere where you can find them easily).
- Open the Terminal app.
- Go to the directory where you've unpacked the Sublime Text 3 package. I.e., in the Terminal app, run
cd /Users/Username/Library/Application\ Support/Sublime\ Text\ 3/Packages/sublime-fsharp-package-master
.
- Run
ls -a
and see if there's a .paket
directory.
- If it does not exist, run
mkdir .paket
.
- Now do
cd .paket
so you're in the hidden .paket
directory under sublime-fsharp-package-master
.
- Now do
ls
and see if there's a paket.bootstrapper.exe
file.
- If it doesn't exist, then copy in the .exe files you downloaded earlier:
cp /Users/Username/Downloads/paket.bootstrapper.exe .
cp /Users/Username/Downloads/paket.exe .
- Important: Now do
cd ..
to go back up to the /Users/Username/Library/Application\ Support/Sublime\ Text\ 3/Packages/sublime-fsharp-package-master/
directory.
- Now instead of running
/Users/Username/Library/Application\ Support/Sublime\ Text\ 3/Packages/sublime-fsharp-package-master/build.sh install
, try running it as ./build.sh install
. (And also try ./build.sh Install
, since I'm pretty sure the capital I is necessary).
(BTW, If you're not familiar with the syntax that I used in steps 9, 10 and 11, where I used a single .
or two dots ..
in commands, those are a long-standing Unix idiom: .
means "the current directory", and ..
means "the parent directory".)
I just looked at the build.sh
script that you've been running, and it seems to assume that you've done a cd
into the package's base directory (the sublime-fsharp-package-master
directory) before running the script. So that could explain why it was failing: you were running it from a different directory, rather than doing a cd
first. Hence why I marked step 10 as important: I think that was the root cause of the problem.