Hot answers tagged

15 votes

Gedit bottom panel terminal plugin missing

Another student, in whose appliance the gedit-plugins package was missing, found that the following two commands solved the problem: sudo apt-get install -o Dpkg::Options::="--force-overwrite" gedit-...
user avatar
8 votes

How do I open a Terminal window in gEdit?

The terminal in the bottom of the gedit window is termed as Embedded Terminal. To get it in gedit, Open gedit, click View, enable Bottom Panel. Now click Edit, go to Preferences, then Plugins. ...
user avatar
  • 3,316
4 votes
Accepted

Error: Gedit not opening on VirtualBox Ubuntu 14.04

The VirtualBox version of the appliance currently has an issue with the gedit install. Staff are aware of it and are working on a fix. In the meantime, run this: sudo apt-get update sudo apt-get ...
user avatar
  • 18.3k
3 votes

Small issues with the CS50 IDE text editor

Please read this, it may be the answer to your problems.
user avatar
  • 309
3 votes
Accepted

Gedit is not working on CS50 Appliance

Try executing the following commands in the terminal sudo apt-get update sudo apt-get install --reinstall gedit the password is "crimson" if you are asked for one.
user avatar
  • 17.3k
3 votes
Accepted

How to show line numbers in gedit

In gedit: Edit>Preferences>View Tab Ensure "Display line numbers" is checked.
user avatar
2 votes

Programs will run but can't be edited

It sounds like you are trying to open greedy in gedit. greedy is the executable file. If you want to edit the code, you must open greedy.c, make your changes, and then run make greedy to create the ...
user avatar
  • 18.3k
2 votes

Where can I get G-Edit?

All of the instructions for the appliance and other files are the first "assignment" in Problem Set 1 (which is found in Week 2).
user avatar
  • 18.3k
2 votes

where is the Debugger in Gedit for C

Well, a debugger, as its name suggests, helps you debug your program (i.e., figure out the problems in your code so that you can fix it). The debugger we use for debugging our C programs is named gdb. ...
user avatar
  • 17.3k
2 votes

What does this mean?

Your main declaration has curly braces around void. Those should be parentheses.
user avatar
2 votes
Accepted

How to make variable's value display on screen using printf?

That depends on the type of the variable: As a example forn an integer (int): int n = 25; printf("n is equal to %d\n", n); The %d is a placeholder for an integer, when the message inside the ...
user avatar
  • 1,359
1 vote

Why does this happen?

The command "make" seems to be lacking some flags, try compiling it on your own with the "-lcs50" flag to link the library, i.e. clang credit.c -o credit -lcs50 If you want "make" to behave like it ...
user avatar
1 vote
Accepted

same code works fine on codeblock but having problem on gedit

I don't know why it works in Codeblock, but the correct condition would be: i <= x && j >= 0 not i <= x, j >= 0 as you have. So your for loop should be: for (i = 0, j = x; i &...
user avatar
  • 7,326
1 vote
Accepted

how do i get rid of number lines in the compiler in week 4 like Davids walk throughs?

The line number display is a gedit preference. In the gedit menu, choose File > Preferences and then un-tick the first box that says:Display line numbers.
user avatar
  • 18.3k
1 vote
Accepted

gedit does not start

Restart the appliance and when it turns on, run sudo apt-get remove gedit and then sudo apt-get update sudo apt-get install gedit then do an update50
user avatar
  • 7,326
1 vote

gedit does not work on cs50 appliance

I had the same problem, I resolved it by reinstalling gedit... be sure to update your appliance before reinstall
user avatar
1 vote

gedit not working?

I got mine working using these commands sudo apt-get update and sudo apt-get install --reinstall gedit
user avatar
1 vote
Accepted

Memory leaks found in system programs

Is this a serious problem whenever I use these programs? Why might the programmers who wrote these programs ignore the advice about preventing memory leaks? Check out the top Google result for ...
user avatar
  • 2,136
1 vote

Using \t to make spaces in Mario

The "tab size" option in gedit only changes how tabs are displayed in the editor window. It has no effect on how the tab character \t gets displayed in the terminal window when you run the program. ...
user avatar
  • 2,136
1 vote

How do I open a Terminal window in gEdit?

Kellen - if you are downloading GEdit to use in conjuction with taking the course, you would be better off following the instructions for downloading and setting up the virtual appliance. David & ...
user avatar
  • 1,317
1 vote

Am I Likely to Get Compilation Errors If I used Applications Other than gedit?

You can still use gedit outside of the appliance. You can download it from here. If gedit is a bit too technical, another popular code editor to try is Sublime Text. If you really must choose between ...
user avatar
  • 2,625
1 vote

Am I Likely to Get Compilation Errors If I used Applications Other than gedit?

Well, Microsoft Word and Notepad are two different kinds of applications. Microsoft Word is a word processor while Notepad is a text editor as well as gedit. Yes, you can write programs using the ...
user avatar
  • 17.3k
1 vote

I get the error message "undefined reference to 'GetInt'" but I already put #include <cs50.h> at the beginning of my program

I run update50 on the terminal and the problem was resolved :D
user avatar
1 vote
Accepted

I get the error message "undefined reference to 'GetInt'" but I already put #include <cs50.h> at the beginning of my program

If you haven't already, run update50. There's a bug in the built-in-terminal in gedit that this fixes. Alternatively, use the standalone Terminal app rather than the one in gedit, as that works fine....
user avatar
  • 18.3k
1 vote
Accepted

What is the first bottom-right dropdown list in Gedit for, and how can I scroll down it?

Yes, the dropdown list in the lower-right corner of the Gedit interface displays and allows for changing the currently selected syntax highlighting option. The purpose of syntax highlighting is to ...
user avatar
1 vote

How can I access Gedit?

If using the CS50 appliance, you will see a shortcut is already added for gedit on the taskbar. If you directly want to open a code file, say example.c, open the terminal, navigate to its folder and ...
user avatar
  • 85
1 vote

sudo gedit /etc/hosts ERROR

You may want to read carefully instructions posted here, but only apply those "patches" if you feel confident messing around with config files. And always create backups first (as in cp file1 file1....
user avatar
  • 1,140
1 vote
Accepted

sudo gedit /etc/hosts ERROR

Per the pset, the GTK warning is a known bug in Linux fedora. Prof. Malan instructs students encountering this error to try restarting their appliance and try the sudo command again. I had the same ...
user avatar
  • 1,317

Only top scored, non community-wiki answers of a minimum length are eligible