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

quarto-preview.js missing in 1.4.557, 1.5.55 #53

Closed
1 task done
mfisher87 opened this issue Jul 30, 2024 · 9 comments · Fixed by #59
Closed
1 task done

quarto-preview.js missing in 1.4.557, 1.5.55 #53

mfisher87 opened this issue Jul 30, 2024 · 9 comments · Fixed by #59
Assignees
Labels
bug Something isn't working

Comments

@mfisher87
Copy link
Member

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

$ quarto preview
<...>
WARNING: No such file or directory (os error 2): readfile '/path/to/miniforge3/envs/envname/share/quarto/preview/quarto-preview.js'
$ ls -1 /path/to/miniforge3/envs/envname/share/quarto/preview/
jats/
quarto-preview.html

The .js file is present in 1.4.550; it was poor testing on my part for #50 I think. I was sure I'd tested preview 😕

Installed packages

n/a

Environment info

n/a
@mfisher87 mfisher87 added the bug Something isn't working label Jul 30, 2024
@mfisher87
Copy link
Member Author

It's back in 1.5 (#52)

@cderv
Copy link

cderv commented Jul 31, 2024

It should have been fixed for 1.4.557 following

Maybe this needs specific adaptation in here ?

This was due to specific dependencies problem in building the JS

@cderv
Copy link

cderv commented Jul 31, 2024

And for what it worth, I have it on windows...

❯ ls C:\Users\chris\miniconda3\envs\myenv\Library\share\quarto\preview\

    Directory: C:\Users\chris\miniconda3\envs\myenv\Library\share\quarto\preview

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          31/07/2024    11:07                jats
-a---          27/06/2024    19:01            543 quarto-preview.html
-a---          16/07/2024    18:12         447110 quarto-preview.js

Though somehow this install does not work for me, but that is probably another issue. (first time I try the conda package)

Do we get a new issue on other OS ? 🤔 I see no error on our latest v1.4 build for the web UI. So possibly a conda only thing

@cderv
Copy link

cderv commented Jul 31, 2024

@mfisher87 mfisher87 mentioned this issue Aug 1, 2024
5 tasks
@mfisher87 mfisher87 changed the title quarto-preview.js missing in 1.4.557 quarto-preview.js missing in 1.4.557, 1.5.55 Aug 1, 2024
@mfisher87
Copy link
Member Author

I'm really confused as well.

@mfisher87
Copy link
Member Author

mfisher87 commented Aug 2, 2024

I was able to reproduce this in a local build. I may have been looking at the wrong build output when I suggested that it wasn't reproducing locally. No other news :)

@cderv
Copy link

cderv commented Aug 12, 2024

Do I understand correctly it is missing in latest stable 1.5 too when build for conda ?

Is it missing on windows ? Or in all builds ?

Maybe there is a copy issue - the file being built correctly but not copied to what creates the conda forge bundle 🤔

@mfisher87
Copy link
Member Author

Thanks for helping look in to this! I'd love to be able to spend more time on this, but $DAY_JOB is taking a lot out of me and my time for open source contributions (volunteer and funded) has been much less than I'd like.

Do I understand correctly it is missing in latest stable 1.5 too when build for conda ?

Correct, but not 1.4.550.

Is it missing on windows ? Or in all builds ?

This still needs to be answered. I was able to confirm the Linux impact by downloading and unzipping tarballs from here: https://anaconda.org/conda-forge/quarto/files We should be able to do the same for the Mac/Win builds.

Maybe there is a copy issue - the file being built correctly but not copied to what creates the conda forge bundle 🤔

This sounds plausible! The logs show the preview build occurring. 🤔

@mfisher87
Copy link
Member Author

Restored a patch we used to hackily force the build of the preview script. I thought it was no longer needed, and removed it without testing thoroughly enough.

I apologize, but my time has been fairly limited and I don't yet understand why the upstream change didn't cause the script to be built the way I expected. Any help with this would be greatly appreciated so we can drop this patch.

@cderv cderv self-assigned this Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants