render with Quarto Error

I agree but I can't figure which one. I don't have a windows server to try - I'll see if I can find one in case it is related.

Looking for the quarto path

PS C:\Program Files\RStudio\bin\quarto\bin> .\quarto.cmd --paths
The system cannot find the path specified.
C:\Program Files\RStudio\bin\quarto\bin\
C:\Program Files\RStudio\bin\quarto\bin\..\share
PS C:\Program Files\RStudio\bin\quarto\bin>

it seems to me this is working fine.

I don't think this comes from Quarto. I think you may have a path in your PATH environment variable that is not a valid path, or does not exists. You should check all the value in your PATH environment variable.

I found the error mentioned in here

You are correct. I put a question on SO, because the site you referenced didn't seem to work, and found a bad path. There was one related to my RTools, so I was hoping I could also get that working by fixing it.

I still don't have the the "quarto" option and it looks like render just used rmarkdown.

Now it looks OK
https://stackoverflow.com/users/712649/mathias-r-jessen

PS C:\Program Files\Quarto\bin> $env:Path -split ';'|?{$_ -and -not($_|Test-Path)}
PS C:\Program Files\Quarto\bin>
PS C:\Program Files\Quarto\bin> foreach($path in ((gci -path env:\path | select -exp Value).split(";"))){ if(Test-Path
path){ write-host "True - $path" -ForegroundColor Green } else { write-host "False - $path" -ForegroundColor Red  }}
True - C:\Program Files (x86)\Common Files\Oracle\Java\javapath
True - C:\Python27\
True - C:\Python27\Scripts
True - C:\Oracle\app\client\product\12.2.0\client_1
True - C:\Oracle\app\client\product\12.2.0\client_1\bin
True - C:\Program Files\Microsoft MPI\Bin\
True - C:\Windows\system32
True - C:\Windows
True - C:\Windows\System32\Wbem
True - C:\Windows\System32\WindowsPowerShell\v1.0\
True - C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\
True - C:\Program Files\Microsoft SQL Server\130\DTS\Binn\
True - C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\
True - C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\
True - C:\Program Files\Microsoft SQL Server\130\Tools\Binn\
True - C:\Program Files\dotnet\
True - C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\
True - C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\
True - C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\
True - C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\
True - C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\
True - C:\Program Files (x86)\Wolfram Research\WolframScript\
True - C:\Program Files\Git\cmd
True - C:\Program Files\nodejs\
True - C:\Program Files (x86)\dotnet\
True - C:\Program Files\Wolfram Research\WolframScript\
True - C:\Program Files\Azure Data Studio\bin
True - C:\Program Files\Microsoft VS Code\bin
True - C:\Users\hnelson3\AppData\Local\Programs\Azure Data Studio\bin
True - C:\Program Files\Azure Data Studio\bin
True - C:\Users\hnelson3\AppData\Local\Programs\Microsoft VS Code Insiders\bin
True - C:\Users\hnelson3\AppData\Roaming\TinyTeX\bin\win32
Test-Path : Cannot bind argument to parameter 'Path' because it is an empty string.
At line:1 char:88
+ ... v:\path | select -exp Value).split(";"))){ if(Test-Path $path){ write ...
+                                                             ~~~~~
    + CategoryInfo          : InvalidData: (:) [Test-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.Test
   PathCommand

PS C:\Program Files\Quarto\bin> $env:Path -split ';'|?{$_ -and -not($_|Test-Path)}
PS C:\Program Files\Quarto\bin> .\quarto.cmd --paths
The system cannot find the path specified.
C:\Program Files\Quarto\bin\
C:\Program Files\Quarto\bin\..\share
PS C:\Program Files\Quarto\bin> ./quarto.cmd --version
The system cannot find the path specified.
0.9.315
PS C:\Program Files\Quarto\bin> .\quarto.cmd
The system cannot find the path specified.
PS C:\Program Files\Quarto\bin>

It seems to still throw the warning. Did you remove an empty or invalid Path element ?

I really don't know what is happening. I believe this could be something in your environment. I don't think we had any other report of this by someone else. Quarto within RStudio is working fine - I still cannot reproduce this.

Thanks for all you help. I learned a lot even though the problem is not solved. I did find two obsolete entries in my path system variable. That seemed to have the most promise. I thing somewhere there is a control file that is pointing the path to the wrong place. I need to think about where that might be happening.

2 Likes

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.