-
-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving onedrive solution inline #1480
base: main
Are you sure you want to change the base?
Conversation
Thank you!Thank you for your pull request 😃 🤖 This automated message can help you check the rendered files in your submission for clarity. If you have any questions, please feel free to open an issue in {sandpaper}. If you have files that automatically render output (e.g. R Markdown), then you should check for the following:
Rendered Changes🔍 Inspect the changes: https://github.com/swcarpentry/shell-novice/compare/md-outputs..md-outputs-PR-1480 The following changes were observed in the rendered markdown documents:
What does this mean?If you have source files that require output and figures to be generated (e.g. R Markdown), then it is important to make sure the generated figures and output are reproducible. This output provides a way for you to inspect the output in a diff-friendly manner so that it's easy to see the changes that occur due to new software versions or randomisation. ⏱️ Updated at 2025-02-10 15:27:41 +0000 |
I might change the language for a learner to view (review) on their own, and me as a novice instructor. "rendered" What would I look for in "files" to help the learner identify what is happening inside their computer/institutional access? Maybe an example of weird institutional names instead of ideal text? At which level will the 'ls' command show me what you expect? I have tried to go up with '../' or is it '..' to go up and can't make sense of where I am. Thanks again for starting this! maybe it can cascade across LC and DC, too? |
@jas58 I rewrote the text a bit to try to address the issues you noted above. Please let me know if you see additional changes that should be made. |
Thanks for adding this. What has this been tested on? |
Maybe it would be helpful not to work in the Desktop directory, but instead create a directory under $HOME wherever that is. This is a larger change and could follow up this one. |
Thanks, Benson, We are trying to guide newer instructors (like me) or
novices reviewing the lesson on *how* to find home under Microsoft's new
OneDrive problem. How might you address that or write it out in case you
lost your voice during that part of the lesson?
…On Sat, Feb 8, 2025, 7:48 AM Benson Muite ***@***.***> wrote:
Maybe it would be helpful not to work in the Desktop directory, but
instead create a directory under $HOME wherever that is.
This is a larger change and could follow up this one.
—
Reply to this email directly, view it on GitHub
<#1480 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMT5MXZBBDOGSVQYOOUADNL2OYDMTAVCNFSM6AAAAABWR5RVYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBVG4YTKOBZGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The text is ok. Am wondering if it is possible to avoid the problem by putting the files somewhere else on the local machine rather than in cloud storage. Do not use One Drive, so am not able to test it out. Maybe something like rclone is better? |
No one wants to use OneDrive but many instructors are dealing with it
without clear guidance. These are novice machines often without admin
privilege and day 1 & 2 of their first workshop. I resist jumping to
complicated advance computer science fixes. I would rather identify a
teaching moment to empower the learner and the Macintosh attendees with
greater awareness of how and why to understand their device and
troubleshoot independently later , too. But I'll defer to Sarah.
…On Sat, Feb 8, 2025, 11:46 PM Benson Muite ***@***.***> wrote:
The text is ok. Am wondering if it is possible to avoid the problem by
putting the files somewhere else on the local machine rather than in cloud
storage. Do not use One Drive, so am not able to test it out.
Maybe something like rclone <https://rclone.org/> maybe better?
—
Reply to this email directly, view it on GitHub
<#1480 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMT5MX4VVPFPIFE7ZV7STE32O3TTJAVCNFSM6AAAAABWR5RVYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBWGA4DCNJVHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I agree with @bkmgit , best to suggest a solution that sidesteps the whole Onedrive issue. @jas58 can you please test If that works, maybe just add an instructor note and avoid a tangent that won't apply to most students.
|
Does the problem also occur on Windows Subsystem for Linux? It would be helpful to have this fixed upstream as well. Ideally, the problem is avoidable, but if not a discussion on remote storage is probably needed. Many people doing research would benefit from cloud backups of their data. Can test out other solutions, using a buggy implementation is not a long term solution, though temporary fixes ate useful to ensure the lesson can be used. |
Yes, replacing the GitBash install with WSL is under exploration for a long
term fix to the Git workshop as a whole, but that is very long term. I'm
trying to help instructors who've struggles for 14 months with this
Microsoft enforced "feature". :sad face
…On Sun, Feb 9, 2025, 10:29 PM Benson Muite ***@***.***> wrote:
Does the problem also occur on Windows Subsystem for Linux? It would be
helpful to have this fixed upstream as well.
Ideally, the problem is avoidable, but if not a discussion on remote
storage is probably needed. Many people doing research would benefit from
cloud backups of their data. Can test out other solutions, using a buggy
implementation is not a long term solution, though temporary fixes ate
useful to ensure the lesson can be used.
—
Reply to this email directly, view it on GitHub
<#1480 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMT5MX3W7JPCIGYXJNOA6QD2PATKFAVCNFSM6AAAAABWR5RVYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBWHA4TEOBWG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Putting the lesson data files in a different folder could be a long term solution. However, we might want to think carefully about it. In my experience, being able to navigate to your desktop (a location most users are very familiar with) is very useful and an important learning opportunity for learners that helps them connect that the locations they are seeing in the unix shell are the same locations they see in file explorer/finder. Perhaps this is related to my institution's adoption of one drive, but in the workshop I taught in Jan, more than half of the windows users had this One drive issue. It is possible to work around it by talking through it with learners as I described in this PR, and it helps learners know that onedrive is changing their file structure. I could move it to an inline instructor note as mentioned in the original issue if you prefer. Given @jas58 and my experience teaching with it I felt a callout could be useful for instructors. As a callout, it could still be skipped by instructors who don't feel it is needed but will be available for all instructors and for folks working through this lesson outside a workshop. Switching to WSL2 is a big change that I don't think we are ready for at the moment. When I've tried to use it instead of gitBash in past workshops, there were various installation issues that learners ran into, some of which required updating bios settings. gitbash has worked much better for us. |
I may come back to try and improve the language, but for now I'll leave a couple of comments based on my experience teaching this 3-4 times a year:
As an aside, I didn't realize about the syncing marks, which I'll remember for myself in the future. |
Thanks @ndporter! I'd really appreciate your review of the language and suggestions on how to address point number 3 in your list. |
Thanks, @ndporter @sstevens2 for the suggested language. @bkmgit @Adamtaranto I'm sorry I was short-tempered this past weekend. I hadn't realized the different experiences/histories between maintainers and instructors. Thank you for your work to keep the lessons clean and clear. |
Are there similar problems with msys2 or cygwin? Msys2 has an option to install Konsole as a terminal emulator, but as many people will likely also use git, being able to install git and use git from the terminal is useful. It would be good to figure out where the OneDrive problem comes from so it can be fixed. Do many people use the portable version of Git for Windows, or is this something most institutions will install for all learners? If WSL setup is problematic, can leave it as an option, but suggest something else as default. |
It appears Cygwin was used around 2013, then a switch to msysgit/gitbash occurred. Mysys2 probably has better path management, git and other linux tools can also be installed in it. Cygwin has more tools, but is bigger, not sure about differences in user experience at present. If there are multiple Desktop folders, and remote syncing probably adding an exercise/discussion on remote storage is needed. If we want most people to have a similar experience, may need to use something other than/in addition to OneDrive. Typically advise people not to use Desktop when using this lesson, a users home directory is better. Navigating to the Desktop is a useful skill. |
To clarify, am ok merging this, though would much prefer to use $HOME for the majority of the lesson and have an exercise discussing desktop and remote storage. Can do migration to using $HOME and merge this as a stop gap measure for the time being. If there are opinions based on recent experiences using other options for using linux tools on windows, it would be helpful to have these. Maintenance of gitforwindows is also a volunteer project, but if many users have trouble with how OneDrive is handled, it would be good to raise an issue upstream |
@sstevens2 @jas58 Can one of you please test If possible please test from GitBash shell and from a WSL session. We are reviewing the general lesson setup instructions and it will be useful to know how Onedrive affects the different options. |
Let me know if I'm missing replying to something. I'll try to cover a couple of things I noted from the convo above. I don't think this is related to gitbash/cygwin/etc. It is that in the windows file system One Drive moves the desktop folder into a subfolder of itself, instead of it being directly in the home folder. I suspect in WSL2 it won't be an issue since they are separate partitions with their own home folders (at least last I checked). I'm a bit hesitant to use the $HOME option at this point because it brings up system variables when learners are concentrating on learning how to use commands for the first time and how to navigate their file system. I can't test it as I don't have or want to have onedrive set up on my personal computer, and my primary work computer is a mac. I know the solution I proposed from helping many people through this issue in workshops. @jas58 I think the icon mentioned is in the file explorer but I can't check either. We can update the language to say the "icon in the file explorer" if that helps? I didn't write that text (I took it from the instructor notes) and it was a bit harder for me to evaluate as I've not looked at one drive in the file explorer much. |
In Git Bash, both commands just return the user home directory ( That directory contains both In WSL, both commands return Practically, it appears that WSL runs in So if we use WSL's home directory to solve the OneDrive issue, we basically have to teach people to treat WSL like a separate computer (and also get them to download the data into WSL, which Windows may not readily expose, especially if network neighborhood is turned off - as it is for my work computer). |
@ndporter Thanks for checking what WSL returns for $HOME. |
@jas58 Thanks. In gitbash may need to check |
This should solve issue #1398. I moved this to a callout as I think it is useful for many learners as well and then put part in an instructor note since it seemed more specific for helpers/instructors. Feedback appreciated!
@jas58 brought this up in the Midwest Carpentries Community call so I was motivated to get this issue worked on.