question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lando commands fail silently when run from a code-server terminal

See original GitHub issue

OS/Web Information

  • Web Browser: Edge, Safari (iOS)
  • Local OS: Windows, iPadOS
  • Remote OS: Windows 10
  • Remote Architecture: WSL2 running Ubuntu 20.04, ZSH (same issue with Bash)
  • code-server --version: 3.9.3 fe2dc2deb08e378069891b622bb62ad1d261d1b1

Problem description

For reasons I don’t understand, a single specific terminal command won’t run (silently fails) when executed under code-server’s terminal. This does not happen in the ‘normal’ terminal and does not happen in VS Code’s terminal. They are all using exactly the same system (confirmed but entering a command in one, then cycling back through the history in another and confirmed the same commands are executed).

Steps to Reproduce

  1. Install Lando
  2. Run lando version in any terminal (except the terminal of code server) and confirm there is output
  3. Open code server and enter lando version in the terminal and confirm there is no output

Expected

Terminal should output:

$ lando version
$ v3.1.2

Actual

There is no output after running the command:

$ lando version

An exit code of 4 is shown if $? is entered afterwards

Logs

I ran:

code-server --log debug and entered the command in the terminal.

1. The most recent files from ~/.local/share/code-server/coder-logs - **There are two files here (stderr, stdout), both empty.**
2. The browser console. **Attached in logs.zip below**
3. The browser network tab. **Attached in logs.zip below**

logs.zip

Screenshot

lando version in the WSL2 terminal: image

lando version in the code-server terminal: image

Notes

This issue can be reproduced in VS Code: No, the issue does not happen in VS Code.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
tanccommented, May 8, 2021

I’ve updated the issue on the Lando side, lets see what the maintainers think over there. A very curious issue!

1reaction
tanccommented, May 8, 2021

Yes I don’t think it’s lando code itself… I’m just trying different tags to see if any don’t work. I suspect its something about the way its packaged and installed but no idea why that would be an issue at this point.

Confirmed, running off different tags from the source (and doing a yarn install to be sure) doesn’t seem to make any difference, the tagged version is correctly displayed in code-server’s terminal.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lando commands fail silently when run from a code-server terminal
For reasons I don't understand, a single specific terminal command won't run (silently fails) when executed under code-server's terminal.
Read more >
Lando CLI Usage, How Do I Use It?
Lando is a CLI driven tool by default, here are all the out of the box commands it runs.
Read more >
how to install express in console Code Example
zsh compinit: insecure directories, run compaudit for list. ... FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command....
Read more >
Untitled
Sushmita mitra singapore, Guarulhos terminal 3, Kuwaiti dinar to usd converter, ... Had to pump gas pedal to start car, Lizard look alike...
Read more >
Untitled
Acid rain the growlers lyrics, Episode 185 running man guest, P5g-mx, ... Meghnath laxman fight in ramayan video, Silent running hamster wheel, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found