Closed brianmsm closed 1 year ago
Can you share the full contents of a single .qmd file that reproduce the issue? (a git repository is fine.)
It happens with any qmd file. For example.
---
title: "Untitled"
format: html
---
```{r}
mtcars
It is running before neofetch and at the end it adds some strange numbers:
Sorry, I truly don't understand what you're describing here. I think you have some incompatible shell settings in your fancy prompt that doesn't play nicely with VS Code's expectations. Can you try this on a clean shell?
I understand, I will expand the description.
In garuda linux and some other linux distributions (Xerolinux for example) they bring the terminal configured so that as soon as it is opened and you are in an interactive session, it shows a message (like the one I put in screenshot).
In the case of garuda, it uses fish by default and in the last lines of its configuration file ~/.config/fish/config.fish
, it indicates:
## Run fastfetch if session is interactive
if status --is-interactive && type -q fastfetch
fastfetch --load-config dr460nized
end
What I understand what happens is that when quarto sends the command to fish, when a new instance is always opened, the code enters before the execution of fastfetch
. I don't know if it is possible to add some configuration associated to a delay in the command sending.
I don't know if it is possible to add some configuration associated to a delay in the command sending.
This is something that you will need to resolve in your configuration, either of VS Code or of your shell (edit: ~/.config/fish/config.fish
). I imagine you'll need to test if you're inside VS Code and either not execute fastfetch or do something else. This isn't really a quarto bug.
@cscheid I understand. This worked for me, I put it in case someone else is faced with this situation.
In settings.json
in vscode set:
{
"terminal.integrated.env.linux": {
"FROM_VSCODE": "true"
}
}
And in ~/.config/fish/config.fish
in the last lines indicate:
## Run fastfetch if session is interactive and not started from VSCode
if status --is-interactive && type -q fastfetch
if not set -q FROM_VSCODE
fastfetch --load-config dr460nized
end
end
Although the command appeared before the prompt anyway, this time it worked and was executed:
Bug description
Render from vs code generates error when copying command to terminal
In any .qmd file that you click on "Render", a new terminal instance is created and the command is not copied properly:
Render from vs code generates error when copying command to terminal
In any
.qmd
file that you click on "Render", a new terminal instance is created and the command is not copied properly.I imagine the reason may be that in Garuda Linux, the terminal is pre-configured to display
neofetch
whenever it is opened, and the command is trying to run before neofetch is executed or displayed.Steps to reproduce
This happens in any
.qmd
fileYour environment
Quarto check output