haystackeditor / haystack-editor

Other
894 stars 35 forks source link

wget --no-config in RHEL 7 fails as well as other copy config install issues #2

Open datzsoasis opened 2 months ago

datzsoasis commented 2 months ago

Does this issue occur when all extensions are disabled?: Yes

Hiya, Its possible the answer to this is that RHEL 7 OS is simply too old- but its what I have to use at work. Filing just incase a quick fix is doable.

I have been using Visual studio code 1.92.2 to connect via ssh to a linux machine. Yesterday I learned of haystack and wanted to try it out. I installed it and when asked I allowed haystack to copy over my settings from VS Code. When trying to connect with ssh just as before, I get the following error: "Could not establish a connection to "other machine": Failed to download VS Code Server (XHR failed).

This was fixed by forgetting the old host connection, and simply manually retyping my user@XXX. Then I could connect again. Note: I also could not install/uninstall extensions in the haystack editor until I went to F1->searched proxy-> used proxy support for extensions : off.

Now that I was able to connect to my linux machine, I tried to 'Open Folder' and create my workspace. However the terminal would try a # of times to run the wget --no-config option which would fail as we seem to have some older version of wget cmd.

This was temporarily/hackily fixed on my end by creating my own wget script in bin that intercepts and does nothing with the wget command. Then haystack is able to quit failing (could not establish connection to "XXX") and open the workspace folder. It appears I can use haystack now.

Steps to Reproduce:

  1. download haystack
  2. install it
  3. when asked if you should copy settings from vs code choose yes
  4. click bottom left blue icon to connect to another pc
  5. chose connect to host , select your host
  6. once connected File-->Open Folder and chose a folder
  7. Notice bottom right message of trying to connect to server timeout messages
  8. Wait ~60sec notice popup error "Could not establish connection to "XXX"
AkshaySG14 commented 2 months ago

I think this is a bug with copying the VS Code extension over. Does re-installing SSH in Haystack work?

sjdrc commented 2 months ago

I've got the same issue but when connecting to a dev container on remote ssh.

  1. Download and run haystack AppImage
  2. Install Remote Development and Dev Containers extensions
  3. Connect to my remote ssh host (this works)
  4. Command Palette > Rebuild and Reopen in container
  5. Error
[11:12:32.255] > Downloading with wget
[11:12:33.125] > wget download failed
> https://d2dv27o1k99orf.cloudfront.net/server/cc102f3a62bd35f39ed059b99c5cce90e50a16e2/haystack-cli-alpine-x64.tar.gz: 2024-09-27 09:12:32 ERROR 403: Forbidden

Trying to download a file that does not exist.