How can I use a Quarto Extension that I created for myself? - rstudio

I just created a Quarto extension for myself, and now I was trying to see if I can use it in my other project. When I tried to install it from github, it gave me error:
ERROR: TypeError: Invalid URL
And then I downloaded the zip file from the github, and tried to install it from the local zip file. Then the error changed to
ERROR: Invalid extension
My Quarto version is
quarto::quarto_version()
[1] ‘1.0.37’
And the Rstudio version is
RStudio 2022.11.0-daily+115 "Elsbeth Geranium" Daily (6e803f1628196c4d86f939dd971d7887620f2d19, 2022-08-17) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.11.0-daily+115 Chrome/102.0.5005.167 Electron/19.0.10 Safari/537.36
What is the issue? I have created the _extension.yml file, the template.qmd file, and added all the resources in the _extensions folder. Am I missing anything?

Quarto expects the extension to be versioned and gets confused if it isn't. Try to add a tag to your repo, either via the GitHub release interface, or locally with
git tag v0.0.1
git push --tags
Note that the version should match the one given in _extension.yml. Also, using 0.0.0 as the version won't work.

I just solved it by making the github repo public. The issue was with the visibility of the extension on github.

Related

Converting safari web extension from git repo not successful

I'm trying to convert a chrome web extension to a safari extension.
My environment is a Big Sur VM with XCode 12.5.1.
When I clone the extension's git repo (https://github.com/toobeeh/skribbltypo) and try to convert it with "xcrun safari-web-extension-converter skribbltypo" (from the parent folder), it only spits out the error "Unable to parse manifest at file:///..." (the path points correctly to the repo folder where the manifest lies within).
Web research tells that the issue either may be the folder being a zip (I unsuccessfully tried many ways of downloading the repo as zip, unpacking it, unpacking a signed crx,...) or the path not being correct (I also dragged the folder to the terminal and the file:/// path is correct), with no success.
Does this have to do something with the VM i'm running?
I can't believe I've done it wrong in so many ways.
I'd be glad if someone could try the process.
Thanks in advance.

"open -h" unable to find headers

Ever since I installed the Xcode 6 beta, i'm no longer able to see any headers when I type open -h {header}. A typical interaction looks like:
$ open -h NSView
Unable to find header file matching NSView
$
I can find the headers, they're deep in the Xcode SDK bundles, which is fine, but open -h doesn't seem to be aware of this location. Anybody know how to fix this?
The open -h ... command looks in /System/Libraries/Frameworks/{FrameworkName.Framework}/Headers directory for any header files. Many Xcode-related framework header files (Foundation, CoreData, AppKit, etc.) somehow were removed after I installed the latest Xcode beta.
Manually running the latest Command Line Tools for Xcode installer restored the missing framework headers for me.
Figured it out... All you do is:
xcrun open -h $symbol
xcrun makes open work somehow

GitHub GUI for Windows: uses old version

I have Windows 8.1 on my laptop and I've installed Git. If I type git --version in Windows' command prompt, the result is git version 1.8.5.2.msysgit.0. I can commit and update all the stuff on the server, everything works fine.
At the same time, I'd like to have a GUI for that so I've installed GitHub for Windows. Unfortunately, it does not let me commit my changes as it report that there is an error as suggests opening a shell (also console-like, but looks different from usual Windows' cmd). If I type in that shell git --version I get git version 1.8.4.msysgit.0 so apparently the GUI app uses an older version of git than the one I need, although I have a needed version of Git installed on my computer.
I appreciate any hints on how to make the GUI app to use the new version of git. If any details are still needed, please tell me - I'll provide them asap. Thanks
You will find the git (embedded in G4W -- GitHub for Windows as SLaks mentions) in
%LOCALAPPDATA%\GitHub\Portable_Git_xxxxx\
(See "Can the credentials stored in Github for Windows be shared with the whole operating system?")
You can try and replace that folder by a portable Git, PortableGit-1.8.5.2-preview20131230.7z: once uncompressed, you can rename the folder with the same name 'Portable_Git_xxxxx' and see if that works.

SVN file (Piñata.png) with non-ANSI character shows as unversioned and missing

I have a file named Piñata.jpg.
On Win 8.1, using Tortoise SVN 1.7.12 I can commit and update this file without problems.
However, on OSX 10.8.5 using the svn command line client version 1.8.4, if I do an svn status the file shows as both ! (missing) and ? (unversioned).
Obviously it is not both of these at the same time.
If I delete the file and svn up it re-downloads the file and shows the same missing and unversioned.
I also tried removing/adding the file to the repo, via Windows, but the result on OSX is the same.
How do I get the file to be correctly recognized?
I tried what is recommended here but it made no difference.

I can't "go get" a dependency from github

I made a golang app on my machine that uses cron. On my machine, I
"go get github.com/robfig/cron"
to download and install dependency then in my app I
"import cron "github.com/rk/go-cron""
the app works fine and runs the way I want. I then upload it to the server where it's supposed to run and try to "go get github.com/robfig/cron" as I did on my machine, but then it gave me this
I downloaded and installed github but still the same result. I'm guessing the problem is with github on my server machine
I am new to golang and andy kind of help would be greatly appreciated. Thanks.
What you need to install is git. It is the version control system (VCS) used by GitHub.
The native GitHub application does not provide the command line tools used by Go.
Git can be found and downloaded at http://git-scm.com/downloads
Once installed, make sure you have the path to the Git cmd folder in your %PATH% environment variable.
You can check this by running the command: echo %PATH%
On a Windows installation, you might find it located here:
C:\Program Files (x86)\Git\cmd

Resources