Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not install the quarto filter include-code-files using quarto add #2

Closed
shafayetShafee opened this issue Jan 25, 2023 · 8 comments · Fixed by #4
Closed

Can not install the quarto filter include-code-files using quarto add #2

shafayetShafee opened this issue Jan 25, 2023 · 8 comments · Fixed by #4

Comments

@shafayetShafee
Copy link

Hello, I am trying to install this quarto filter in my Windows machine by running the command,

quarto add b3/include-code-files

But I am getting the following error,

Quarto extensions may execute code when documents are rendered. If you do not
trust the authors of the extension, we recommend that you do not install or
use the extension.
 ? Do you trust the authors of this extension (Y/n) » Yes
[>] Downloading
(|) Unzippinginclude-code-files-main/include-code-files.lua: Can't create '\\\\?\\C:\\Users\\User\\AppData\\Local\\Temp\\quarto-session97849a7c\\d153801e\\0cb468cc\\archive\\include-code-files-main\\include-code-files.lua'
tar: Error exit delayed from previous errors.
[>] Unzipping
ERROR: Failed to unzip extension.
include-code-files-main/include-code-files.lua: Can't create '\\\\?\\C:\\Users\\User\\AppData\\Local\\Temp\\quarto-session97849a7c\\d153801e\\0cb468cc\\archive\\include-code-files-main\\include-code-files.lua'
tar: Error exit delayed from previous errors.

Quarto Version

$ quarto --version
1.2.235

and using Windows 10 x64 (build 19044)

Thanks.

@b3
Copy link
Owner

b3 commented Jan 25, 2023

I am not a Qarto user at all and won't be able to help you. I just wrote the pandoc lua code for the extension, @SamEdwardes wrote the glue needed by Qarto.

Maybe he could help you.

Anyway for what I see from your error it seems to me that Qarto is trying to download a lua file which it treats as an archive file.

@shafayetShafee
Copy link
Author

Thanks for reaching out. I have worked it out (sort of) by manually downloading the_extension folder.

@drriguz
Copy link

drriguz commented Feb 1, 2023

I got the same error when executing the command quarto add b3/include-code-files@quarto.

@drriguz
Copy link

drriguz commented Feb 2, 2023

Update: there's https://github.com/quarto-ext/include-code-files now

@SamEdwardes
Copy link
Collaborator

I will take a look at it this week.

However, now that the quarto core team is maintaining an extension that does the same thing we should probably recommend users use the extension from the core team instead of this one.

@b3
Copy link
Owner

b3 commented Feb 13, 2023

@SamEdwardes: That will simplify the management of the filter a lot: having a repository for the plain pandoc filter and another for the quarto extension (each with their specific issues).

You should maybe try to contact @jjallaire in order to include your examples in his repository, if that could be done we should remove them from here and make a notice to redirect quarto users to that quarto repository.

What do you think?

@SamEdwardes
Copy link
Collaborator

@b3 I completely agree. I "created" this quarto extension before there was an official one from the quarto dev team. Now that the quarto dev team has created and is supporting an extension there is no need for this quarto extension.

I will propose a PR to remove the quarto stuff from this repo.

@shafayetShafee
Copy link
Author

Since it is decided, I think I should close this issue now. Thanks all of you for looking into the problem 😊.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants