Today I’m updating Java and and installing dependencies for a project related to Blank Page. Right now I’m waiting for
cloud-firestore-emulator-v1.16.1.jar... to download it’s 66 MB but it’s crawling. I don’t know how many files are left. There may be plenty more files like this, and it will take for ever.
It’s downloading though my unlimited data plan from Movistar, which gives you a full speed daily quota which I already burned through, and will then will throttle you to 1 Mb/s. It’s slow but it has advanced 10% since I last checked. There’s progress.
That’s the story of life: we want things to be immediate, because we don’t know how to simply look at the screen and exist. What is it about calmly observing a progress bar which is so difficult? Why do I have to come open a document and start writing, instead of having a meditation in front of that progress bar? Would it teach me anything? I’ll do it five minutes and then come back to write about the experience, I will take a screenshot to share with the reader:
I know, I will report back not after five minutes, it will be after the file is downloaded.
More downloads, oh, it’s done! Let us continue.
2pm—I’ve tried to write “nom” damn autocorrect! I’ll bypass it: “EN PEE EN”, darn, I’ll disable this nonsense. Oh yeah disabling this was long overdue, started with Bug Sur. Can I write it?
npm oh yes thank God! I’m free of the stupid correction demon.
Back to terminal,
Fatal error occurred:
Emulator UI has exited with code: 1,
stopping all running emulators
Well, that’s so useful, let’s see if chat GPT can help me:
It appears that there has been a fatal error while running the Firebase Emulator UI. The error message suggests that the emulator UI has exited with code 1, which has stopped all running emulators.
To resolve this issue, you can try the following steps:
Check if there are any typos or syntax errors in your code, as this can cause the Emulator UI to crash.
Restart the Firebase Emulator and try running it again.
Try updating your Firebase CLI and Emulator to the latest version to ensure that you have the latest bug fixes.
Reinstall the Firebase Emulator if none of the above steps work.
If you are still encountering issues after trying these steps, you may need to consult the Firebase Support team for further assistance.
Let me remove all the bullshit and see what we’re left with:
There’s an error. You can try this to resolve it:
- Check your code
Argh everything is freshly installed, I’ll probably have more success with Google. Just let me try running it again to see if I catch anything…
npm run build && firebase emulators:start
firebase emulators:start will make this quicker.
Oh there’s a log!
ui: Emulator UI logging to ui-debug.log
Let’s check it:
SyntaxError: Unexpected string...
What on earth…
Cleared and then another error. Oh my…
I restarted my computer and then dedicated 1h to yard work, but I will not mix topics. Let’s continue… Same error after restart, let’s Google it, here’s something useful:
firebase emulators:start --debug
Now let’s see where it crashes…
“` /Users/duopixel/.cache/firebase/emulators/ui-v1.11.4/server/server.js:3 contentType$3.format = format$2; ^
ReferenceError: contentType$3 is not defined
Ugh, something is wrong in /.cache/firebase. As it’s a cache I could simply clear it out, but let’s find the proper way….
npm cache clean -force
npm run dev
Still doesn’t work. It’s not npm’s cache, I’ll just go ahead and delete the cache, then
npm run dev again.
Oh man I’m back where I started! But I actually understand what went wrong, I had an old version of Java installed when this was downloading, this time it should work. Let’s see, it’s at 22% done.
Gah I came to find it’s a bug with Firebase, this is ridiculous. Downgrade? Oh man, I don’t have any options left. Let’s try…
brew install node@16
Error: homebrew-core is a shallow clone. To `brew update` first run:
git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" fetch --unshallow`
I tried the git command. It’s taking forever to download. This is absurd and it has worn down my patience. I will work on something else. Until tomorrow.
Now I will continue working with more pleasant work in the foreground, while I download the pieces of software that need to be put in place for me to simply run a firebase function emulator. I’ll be impartial about whatever error comes back. I’m re-installing brew in order to acquire node 16 which in turn will fix all of my problems, existential angst included. Brew uninstall all my spiritual problems, I understand the best state is the empty state, to know deep inside that you know nothing, that—at the rate at which things are changing—that we must be willing to let go of everything we know, because we only know limits.
Let us not indulge in metaphysical problems at this moment. We must be practical. Do I have the space to be creative at this time? I have things downloading in the background, I’ll be interrupted. I have 35 minutes for Xcode command line tools to download, I’ll use them for writing about metaphysical stuff.
George Boole thought spiritually:
The Calculus of Logic
The universe of conceivable objects is represented by 1 or unity. This I assume as the primary and subject conception. All subordinate conceptions of class are understood to be formed from it by limitation.
“Has he made the all the gods into One God. Verily, this is a curious thing!” [Surah Sad 38:5]
The Tao Te ching:
The Tao begot one.
One begot two.
Two begot three.
And three begot the ten thousand things.
The ten thousand things carry yin and embrace yang.
They achieve harmony by combining these forces.
You will notice that everything eventually reduces to yes or no. Yes, the shades of gray exist, a palette of color explodes from lightness and darkness. Here’s Goethe:
“Light and darkness, brightness and obscurity, or if a more general expression is preferred, light and its absence, are necessary to the production of color… Color itself is a degree of darkness.”
—Goethe’s Theory of Colour
We are ultimately oneness. My soul has no sex. If I woke up in the body of a woman, I’d be unfazed. Ok, I admit I’d be like “oh interesting I have boobs and a vagina”, and then I’d probably touch myself to see how it feels like. But of course this thought comes from the testosterone driven biological brute that is behind the keyboard.
Command line tools downloaded! I’m installing at this moment. Just to recap: this is a dependence of Brew so that I can install node 16, so that I can get Firebase Functions Emulator to work correctly. Sigh. Another long progress bar.
I’m starting to feel guilty: I’ve been sitting too many hours doing nothing but installing and resintalling crap on my computer all day. At least I’m a little bit closer to my goal, Homebrew is finally downloading, I feel like in times of old modems and troublesome downloads. I’ll put my eyes away from the screen, while Homebrew finishes downloading.
It seems I downloaded it and then unshallowed the git repo. Took ages. Now I’m finally installing node 16. Here is a screenshot of my current set-up:
It still takes me ages to publish a screenshot, in a perfect world I’d have an integration with TinyPNG and etc etc, but then… What if I bring my own api keys? Ah, now we’re talking. You enable features by providing an API key.
Now waiting for node 16 to finish installing, seems to be coming along. I came across this writing by Charles S. Peirce:
A clear idea is defined as one which is so apprehended that it will be recognized wherever it is met with, and so that no other will be mistaken for it. If it fails of this clearness, it is said to be obscure.
—Charles S. Peirce, How to Make Our Ideas Clear
Node 16 installed but refuses to make itself default, now I’ll have to see how to do this… NVM. Oh man, I just want to have some fun. It’s 9pm already and I’ve been installing shit all day. I give up.
When it’s clear you won’t enjoy, delegate! Once last quote by Khalil Gibran, dear reader, and I will conclude this work log:
Work is love made visible.
And if you cannot work with love but only with distaste, it is better that you should leave your work and sit at the gate of the temple and take alms of those who work with joy.
For if you bake bread with indifference, you bake a bitter bread that feeds but half man’s hunger.
And if you grudge the crushing of the grapes, your grudge distils a poison in the wine.
And if you sing though as angels, and love not the singing, you muffle man’s ears to the voices of the day and the voices of the night.
In the morning I woke up and resolved it. Without the frustration, I knew I didn’t need nvm, I could just export the path to node 16 in my
bash_profile. Then I figured out I had
n installed. I installed node 16 in
n and that did the trick.
Then I ran into more trouble, but I’ll stop updating about this nightmare.