Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Push File does not work in WSL #17

Open
jacktose opened this issue Feb 22, 2022 · 4 comments
Open

Push File does not work in WSL #17

jacktose opened this issue Feb 22, 2022 · 4 comments

Comments

@jacktose
Copy link

If I open VS Code “in WSL” (with Remote - WSL), the Context Menu > Bitburner: Push File To The Game function has no effect. The file does not appear in game. If I open it “in Windows,” it works as advertised.

This is true whether the files are in the Windows or WSL filesystem.
I'm on Win 10 21H2, WSL2 with Ubuntu.

@jacktose
Copy link
Author

Is there any kind of debug logging I could check?

@jacktose
Copy link
Author

Per a reply in Discord, I tried "host": "0.0.0.0" in config.json. The log shows Starting http server on port 9990 - listening on 0.0.0.0, but the behavior described above does not change.

@rclsilver
Copy link

Hello,

With my PR (#21) you can define a remote hostname.

To work with your wsl, you have to define the result of the bash command echo $(hostname).local as hostname

@OneOfMany07
Copy link

@rclsilver Neat!

At first, I misread that as "my solution only works for names with .local at the end". But you were telling them what to run to print the value your solution needs.

Wouldn't the true DNS name (FQDN) be better? I mean, yeah it typically defaults to $(hostname).local. But it might differ...and I don't know off the top of my head the correct way to query that name in Linux.

It's annoying that text based names for computers are so complex still.

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

No branches or pull requests

3 participants