[REQ1] If you are having techincal issues developing:
When requesting help, please also include what steps, including which entry names [in brackets] in this FAQ, you have tried so far, including copies of the specific command lines you have run and their output.
[REQ2] If you have a question about your code or grading relating to a GitHub repo:
When requesting help, please include a link to your GitHub repo.
[SERVER] If you have issues connecting to the Khoury remote, issues using git when connected, issues installing the VS Code server, disk quota issues, issues related to "fork" when connected, etc., try running these commands periodically in a non-remote terminal:
Close any VS Code windows connected to the remote.
ssh [Khoury username]@login-students.khoury.northeastern.edu killall -9 -u [Khoury username]
ssh [Khoury username]@login-students.khoury.northeastern.edu rm -rf .cache .vscode .vscode-server
If you have tried other hosts (e.g. linux-071.khoury.northeastern.edu), you will probably need to run these commands on those hosts as well.
You may need to run them multiple times.
You will probably need to re-install the C/C++ extension on the remote after reconnecting.
You may need to set the intellisense caching to 0 on the remote again.
You will probably need to re-run these commands periodically (maybe every time you finish using VS Code) even if you are not having issues connecting to prevent them.
[CONNECT1] If you are not able to connect to the Khoury remote (or having other issues), you may be using too many processes or disk space on the server. Try these first:
Make sure you have turned off intellisense caching in the VS Code remote.
In the VS Code command pallete, run "Remote-SSH: kill VS Code Server on Host..." on login-students.khoury.northeastern.edu.
In the VS Code command pallete, run "Remote-SSH: uninstall VS Code Server from Host..." on login-students.khoury.northeastern.edu.
Then try to reconnect.
[CONNECT2] If you are still not able to connect to the Khoury remote (or having other issues):
Try running ssh [Khoury username]@login-students.khoury.northeastern.edu killall -9 -u [Khoury username] in a local terminal, then connecting.
Try removing the VS Code cache folder (ssh [Khoury username]@login-students.khoury.northeastern.edu rm -rf ~/.cache/vscode-cpptools/ipch) and reduce the intellisense cache size to 0 as in the setup instructions.
You could also try some of the suggestions listed here.
Refer to this page: FAQ: Khoury disk quota.
[CONNECT3] If you are still not able to connect to the Khoury remote:
If you are on campus or using the VPN, you can try to connect to one of linux-[071-085].khoury.northeastern.edu (e.g. linux-071.khoury.northeastern.edu) instead of login-students.khoury.northeastern.edu.
[CONNECT4] If when you try to connect, you get an error like "Connection Refused" (usually without asking for your username or password):
It's possible you have been blocked from logging in. Try again later.
[CONNECT5] If when you try to connect, you get an error like "/usr/bin/scl_source: fork: retry: Resource temporarily unavailable":
Possibly your .bash_profile and .bashrc files have multiple entries enbling the class toolset.
You can manaully edit the files to remove these repeated lines.
Or, you can remove the files themselves with:
Log in: ssh [Khoury username]@login-students.khoury.northeastern.edu
When logged in, remove the files: rm -f .bash_profile .bashrc
Then follow the development instructions to re-create them.
[PASSWORD] When I type my password in, nothing shows up.
The password characters won't show up as you type, although they are being entered.
[QUOTA] If you specifically get an error message related to disk quota:
[COMMIT] When trying to commit with git, it says there is no username or email:
Configure the username and/or email as: https://support.atlassian.com/bitbucket-cloud/docs/configure-your-dvcs-username-for-commits/
Run these commands in a VS Code terminal:
git config --global user.name "YOUR GITHUB USERNAME"
git config --global user.email "YOUR GITHUB EMAIL@example.com"
[TEAM] When trying to create a team on GitHub, it doesn't work:
Try using some different team names.
Try a team name with no spaces in it.
Try refreshing or waiting a bit and then try again.
[CPPDBG] When trying to debug or build on the remote, there is an error about cppdbg or not knowing how to make a target:
Try reinstalling the C/C++ extension on the remote.
[TURNIN-EMAIL] Is there any way to turn assignments in other than VS code? Can I email my code in?
It is possible to edit the files directly in the web page for a GitHub repo if necessary. We won't accept emailed files.
[MAKE] When running a task in VS Code using WSL, there is an error like "make : The term 'make' is not recognized as the name of a cmdlet, function, script file, or operable program." or "Python was not found...":
Make sure VS code is configured to use the "Bash on Ubuntu" terminal: https://code.visualstudio.com/docs/editor/integrated-terminal
[VALGRIND] On macOS, valgrind outputs memory leak errors related to objc_stringhash_t:
Edit your file /usr/local/Cellar/valgrind/HEAD-e0af3eb/lib/valgrind/default.supp and add this block to the end:
{
OSX1015:Leak02-objc-definite
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:class_setWeakIvarLayout
fun:class_setWeakIvarLayout
fun:_objc_atfork_parent
fun:property_copyAttributeList
fun:NXMapRemove
fun:_ZL16attachCategoriesP10objc_classPK21locstamped_category_tji
fun:_ZN10objc_class11mangledNameEv
fun:_ZN10objc_class11mangledNameEv
fun:_ZN10objc_class11mangledNameEv
fun:_ZN10objc_class11mangledNameEv
fun:_ZNK8objc_opt17objc_stringhash_t8getIndexEPKc
}