Replies: 9 comments 5 replies
-
@XebbyLIS from your screen shots, it looks like you got git, ruby, bundler, and jekyll installed. So first I would go into VS Code > Settings, search the settings for "persistent" then uncheck the option “Terminal > Integrated: Enable Persistent Sessions” and also choose "never" in the option "Terminal > Persistent Session Revive Process". One other check that might help debug, is to open a "Git Bash" terminal directly (i.e. not the one integrated in VS Code, just search "Git Bash" in your start menu). Check The other thing I noticed in your Terminal screenshots, it looks like your GitHub folder is in your Onedrive folder. That can also cause strange issues, as Onedrive tries to sync all the files that jekyll creates. It would be better to try to move your repositories (i.e. the folders in the "GitHub" folder directly on to your C drive rather than in Onedrive. Let us know how it goes, and maybe someone else with Windows 11 will chime in! |
Beta Was this translation helpful? Give feedback.
-
After more troubleshooting (Git bash and VS studio code gave me the same error again) I uninstalled and reinstalled Visual Studio Code. I don't know enough about computers to know if this was necessary, but I wanted to download it to the same C:\Program Files\ location because that's where Git and Ruby are installed. This time installed the VSCodeSetup instead of the default VSCodeUserSetup installer (if you try to install the VSCodeUserSetup installer in this location of C:\Program Files) This got more errors than last time. It only installed one gem. and when I check for the installation using jekyll -v I get the same error as before. I had to install the System Installer Version of VS Code. Even then, I get the same error- for whatever reason windows is searching for ruby and jekyll in C:\Users\hella\AppData\Local\Microsoft\WindowsApps\ruby and C:\Users\hella\AppData\Local\Microsoft\WindowsApps\jekyll the ruby folder does not exist in that location. Jekyll exists there but not as a file. I have tried searching in my files and verified that these are not blank folders labeled with ruby or jekyll- they do not exist on my PC. At this point I'm assuming i either need to download things into particular file paths even if they are likely to cause issues OR change how Git or VS Studio Code or something else is searching for the relevant files. Because it does not have the correct file path. I also noticed that Github Desktop does not let me choose where to install it- it just installs. I am going to be teaching other grad students how to install all of this to practice using Collection Builder. While i could install everything under my C:\Program Files\ area with specific file names for programs, but if a student does not have administrative access they won't be able to install the VSCode there, as they would be using the VSCodeUserSetup installer. Then again, I can't even get this to work, so I have no idea. I'm willing to try more troubleshooting, however I am out of the default options offered by the tutorials. I'm gonna try downloading ruby directly into the file location it keep referring to as well as building a folder labeled jekyll to see if that fixes these issues |
Beta Was this translation helpful? Give feedback.
-
I tried troubleshooting by creating and adding a ruby folder to C:\Users\hella\AppData\Local\Microsoft\WindowsApps I tried adding a jekyll folder as well but it was never filled with anything so i deleted it. More installation happened however I now have a new error when i type jekyll -v in Git bash or in VSCode [Bash] |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I finally got it to work after several hours of troubleshooting with chat GTP. Some errors also happened because I had to manually open every installer and file in Admin Mode (which is not enabled by default). One thing that exacerbated the issue was "a Ruby executable in a directory that's conflicting with your desired installation location." Chat GPT Log: |
Beta Was this translation helpful? Give feedback.
-
@XebbyLIS we're very glad you were able to figure this out! Sorry it was such a pain! I do think it had something to do with OneDrive and your getting started in the wrong directory. I don't know that I can add any more context or code-based advice. I'm going to talk to the rest of the team and have them look at this and then add something in the docs to help catch others who might be having issues. If you can highlight any sections in the docs that would have helped you, let us know. Otherwise, we'll put something in there and let you know what we did. Happy New Year! |
Beta Was this translation helpful? Give feedback.
-
Even doing all of this lead to eventual errors- it seems like git still searches for things in that one drive folder. The hardest part is that uninstalling and reinstalling everything doesn't change the fact that root file locations are set up somewhere else (i think that's the issue). Basically, if you unintentionally install things on One Drive, undoing the issue is hard. I'm going to attempt to reinstall everything once more by creating another "user" on my windows laptop. If that doesn't solve the problem i'm gonna reset my PC and then START by using the "uninstall windows bloatware" and "uninstall onedrive" options that exist on github. I think i understand why so many programmers have a linux system. |
Beta Was this translation helpful? Give feedback.
-
No luck, still having issues installing on a different username. Resetting my entire laptop and ensuring OneDrive was no longer installed did not fix the issues. I have sent an email requesting help. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm new to all of this. I have installed everything based on default settings and locations except when specified otherwise in the instructions for software.
I'm using Windows 11 and having issues with installing Jekyll. I had to uninstall and reinstall ruby twice for it to work, but at least when I run this command in Git Bash I get an answer:
$ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x64-mingw-ucrt]
Specifically, when i run this command in Git Bash, i get this error.
$ jekyll -v
/c/Users/hella/AppData/Local/Microsoft/WindowsApps/jekyll: line 6: /c/Users/hella/AppData/Local/Microsoft/WindowsApps/ruby: No such file or directory
I've tried uninstalling and reinstalling ruby, entering the commands on the windows command prompt, and searching but I have no idea where to continue troubleshooting. First image is what shows up when i open the terminal in VS Code
Beta Was this translation helpful? Give feedback.
All reactions