input
stringlengths
2
68
stderr
stringlengths
0
1.08k
expected
listlengths
1
4
source
stringclasses
2 values
note
stringlengths
27
285
java file.java
could not find or load main class
[ "java file" ]
nofaq
Deduped with the byte-near-identical testdata1 variant (stderr 'could not find or locate class').
java bcd.java
could not find or load main class
[ "java bcd" ]
nofaq
Deduped with the testdata1 variant.
java a.java
could not find or load main class
[ "java a" ]
nofaq
Deduped with the testdata1 variant.
apt-get abc
command not found
[ "sudo apt-get install abc" ]
nofaq
stderr is the dataset's compressed form; fix (add sudo + install) is derivable from the input alone.
apt-get qwerty
command not found
[ "sudo apt-get install qwerty" ]
nofaq
null
apt-get xyzz
command not found
[ "sudo apt-get install xyzz" ]
nofaq
null
cargo
[ "cargo build" ]
nofaq
Bare cargo is an incomplete command; 'cargo build' is the canonical default completion (same rule exists in thefuck).
cd files
-bash: cd: files: no such file or directory
[ "mkdir files; cd files" ]
nofaq
null
cd code
-bash: cd: code: no such file or dir
[ "mkdir code; cd code" ]
nofaq
null
cd xray
-bash: cd: xray: no such file or dir
[ "mkdir xray; cd xray" ]
nofaq
null
cd..
-bash: cd..: command not found
[ "cd .." ]
nofaq
Deduped with thefuck rule cd_parent (identical input and fix; thefuck's stderr lacks only the '-bash: ' prefix).
bash abcabc.sh
/etc/init.d/abcabc.sh: line 2: $'\r': command not found /etc/init.d/abcabc.sh:
[ "dos2unix abcabc.sh; bash abcabc.sh" ]
nofaq
null
bash cbad.sh
/etc/cbad.sh: line 13: $'\r': command not found /etc/cbad.sh
[ "dos2unix cbad.sh; bash cbad.sh" ]
nofaq
null
bash xyz.sh
/etc/etc/etc/xyz.sh: line 134: $'\r': command not found /etc/etc/etc/xyz.sh
[ "dos2unix xyz.sh; bash xyz.sh" ]
nofaq
null
./manage.py
-bash: ./manage.py: Permission denied
[ "chmod +x manage.py; ./manage.py", "python manage.py" ]
nofaq
This (input, stderr) pair appears in 2 separate benchmark groups with different fixes; all listed fixes are accepted.
./asdf.py
-bash: ./asdf.py: Permission denied
[ "chmod +x asdf.py; ./asdf.py", "python asdf.py" ]
nofaq
Both source fixes accepted.
./xyz.py
-bash: ./xyz.py: Permission denied
[ "chmod +x xyz.py; ./xyz.py", "python xyz.py" ]
nofaq
Both source fixes accepted.
./manage.py migrate myapp
django.db.utils.DatabaseError: table 'myapp_tablename' already exists
[ "./manage.py migrate myapp --fake" ]
nofaq
null
./manage.py migrate anapp1
django.db.utils.DatabaseError: table 'anapp1_tablename2' already exists
[ "./manage.py migrate anapp1 --fake" ]
nofaq
null
./manage.py migrate xyzapp11
django.db.utils.DatabaseError: table 'xyzapp11_tablename22' already exists
[ "./manage.py migrate xyzapp11 --fake" ]
nofaq
null
python manage.py migrate reserve
south.exceptions.GhostMigrations: ! These migrations are in the database but not on disk: <reserve: 0002_initial> ! with the south_migrationhistory table, or pass --delete-ghost-migrations
[ "python manage.py migrate reserve --delete-ghost-migrations" ]
nofaq
null
git commit file
error: pathspec 'application/libraries/file' did not match any file(s) known to git.
[ "git add file; git commit file" ]
nofaq
null
git commit afile1
error: pathspec 'application/libra/afile1' did not match any file(s) known to git.
[ "git add afile1; git commit afile1" ]
nofaq
null
git commit bfile12
error: pathspec 'application/libra2/bfile12' did not match any file(s) known to git.
[ "git add bfile12; git commit bfile12" ]
nofaq
null
git branch -d testing
error: The branch 'testing' is not fully merged. If you are sure you want to delete it, run 'git branch -D testing'.
[ "git branch -D testing" ]
nofaq
null
git branch -d featurebranch
error: The branch 'featurebranch' is not fully merged. If you are sure you want to delete it, run 'git branch -D featurebranch'.
[ "git branch -D featurebranch" ]
nofaq
null
git branch -d bugfix
error: The branch 'bugfix' is not fully merged. If you are sure you want to delete it, run 'git branch -D bugfix'.
[ "git branch -D bugfix" ]
nofaq
null
git branch list
[ "git branch --delete list; git branch" ]
nofaq
Classic mistake: 'git branch list' silently creates a branch named 'list'; fix deletes it and lists branches.
git branch somelist1
[ "git branch --delete somelist1; git branch" ]
nofaq
null
git branch abc
[ "git branch --delete abc; git branch" ]
nofaq
null
git pull
Updating 1..2 error: Your local changes to the following files would be overwritten by merge: foo2.txt Please, commit your changes or stash them before you can merge. Aborting
[ "git stash" ]
nofaq
Collapsed from three source variants differing only in the file named in stderr (foo2.txt/bar.txt/et.txt).
git add . -all
[ "git add . --all", "git add . -A" ]
nofaq
'git add . -A' added: -A is git's documented exact alias of --all.
git checkout gh-pages
error: Your local changes to the following files would be overwritten by checkout: somefile.txt, Please, commit your changes or stash them before you can switch branches.
[ "git checkout -f gh-pages", "git reset --hard; git checkout gh-pages" ]
nofaq
Both source fixes accepted (two benchmark groups for this error class).
git checkout proj
error: Your local changes to the following files would be overwritten by checkout: abc.java, Please, commit your changes or stash them before you can switch branches.
[ "git checkout -f proj", "git reset --hard; git checkout proj" ]
nofaq
Both source fixes accepted.
git checkout bravo
error: Your local changes to the following files would be overwritten by checkout: xyz.fs, Please, commit your changes or stash them before you can switch branches.
[ "git checkout -f bravo", "git reset --hard; git checkout bravo" ]
nofaq
Both source fixes accepted.
go run blabla
error: go run: no go files listed
[ "go run blabla.go" ]
nofaq
null
go run abcd
error: go run: no go files listed
[ "go run abcd.go" ]
nofaq
null
go run xyz
error: go run: no go files listed
[ "go run xyz.go" ]
nofaq
null
heroku luck
! `luck` is not a heroku command. ! Perhaps you meant `lock`. ! See `heroku help` for a list of available commands.
[ "heroku lock" ]
nofaq
null
heroku ad
! `ad` is not a heroku command. ! Perhaps you meant `da`. ! See `heroku help` for a list of available commands.
[ "heroku da" ]
nofaq
Synthetic paper variant; fix is read directly from the stderr suggestion.
heroku abc
! `abc` is not a heroku command. ! Perhaps you meant `cba`. ! See `heroku help` for a list of available commands.
[ "heroku cba" ]
nofaq
Synthetic paper variant; fix is read directly from the stderr suggestion.
lein ropl
'ropl' is not a task. See 'lein help'. Did you mean this? repl
[ "lein repl" ]
nofaq
null
lein od
'od' is not a task. See 'lein help'. Did you mean this? do
[ "lein do" ]
nofaq
null
lein bar
'bar' is not a task. See 'lein help'. Did you mean this? jar
[ "lein jar" ]
nofaq
null
cmd.sh
-bash: cmd.sh: command not found
[ "./cmd.sh" ]
nofaq
null
abcc.sh
-bash: abcc.sh: command not found
[ "./abcc.sh" ]
nofaq
null
scanner.sh
-bash: scanner.sh: command not found
[ "./scanner.sh" ]
nofaq
null
java foo.java
Error: Could not find or load main class foo.java
[ "java foo" ]
nofaq
null
java xyzz.java
Error: Could not find or load main class xyzz.java
[ "java xyzz" ]
nofaq
null
java abcdef.java
Error: Could not find or load main class abcdef.java
[ "java abcdef" ]
nofaq
null
javac foo
error: Class names, 'foo', are only accepted if annotation processing is explicitly requested 1 error
[ "javac foo.java" ]
nofaq
null
javac barr
error: Class names, 'barr', are only accepted if annotation processing is explicitly requested 1 error
[ "javac barr.java" ]
nofaq
null
javac yadda
error: Class names, 'yadda', are only accepted if annotation processing is explicitly requested 1 error
[ "javac yadda.java" ]
nofaq
null
manmkdir
-bash: manmkdir: command not found
[ "man mkdir" ]
nofaq
null
manstat
-bash: manstat: command not found
[ "man stat" ]
nofaq
null
mkdir a/b
mkdir: cannot create directory '/a' : no such file or directory
[ "mkdir -p a/b" ]
nofaq
null
mkdir bc/cd
mkdir: cannot create directory '/bc' : no such file or directory
[ "mkdir -p bc/cd" ]
nofaq
null
mkdir xy/yzz
mkdir: cannot create directory '/xy' : no such file or directory
[ "mkdir -p xy/yzz" ]
nofaq
null
mv a.txt dir/b.txt
cannot move 'a.txt' to 'dir/b.txt': Not a directory
[ "mkdir -p dir; mv a.txt dir/b.txt" ]
nofaq
null
mv xyz.fs 1abc/cd.fs
cannot move 'xyz.fs' to '1abc/cd.fs': Not a directory
[ "mkdir -p 1abc; mv xyz.fs 1abc/cd.fs" ]
nofaq
null
mv file.tar somestuff/bcd2.tar
cannot move 'file.tar' to 'somestuff/bcd2.tar': Not a directory
[ "mkdir -p somestuff; mv file.tar somestuff/bcd2.tar" ]
nofaq
null
open www.a.com
The file /Users/lorisdanto/www.a.com does not exist. Perhaps you meant 'http://www.a.com'?
[ "open http://www.a.com" ]
nofaq
null
open www.bcd.com
The file /Users/bob/www.bcd.com does not exist. Perhaps you meant 'http://www.bcd.com'?
[ "open http://www.bcd.com" ]
nofaq
null
open www.cdef.com
The file /Users/sumit/www.cde.com does not exist. Perhaps you meant 'http://www.cdef.com'?
[ "open http://www.cdef.com" ]
nofaq
Dataset typo: the path portion of stderr says www.cde.com, but the suggestion (which drives the fix) is consistent.
python blabla
python: can't open file 'blabla': [Errno 2] No such file or directory
[ "python blabla.py" ]
nofaq
null
python xyzz
python: can't open file 'xyzz': [Errno 2] No such file or directory
[ "python xyzz.py" ]
nofaq
null
python abc
python: can't open file 'abc': [Errno 2] No such file or directory
[ "python abc.py" ]
nofaq
null
rm blabla
rm: blabla: is a directory
[ "rm -rf blabla" ]
nofaq
null
rm xyzz
rm: xyzz: is a directory
[ "rm -rf xyzz" ]
nofaq
null
rm abc
rm: abc: is a directory
[ "rm -rf abc" ]
nofaq
null
pip instol
ERROR: unknown command ‘instol’ - maybe you meant ‘install’
[ "pip install" ]
nofaq
null
pip xyzz
ERROR: unknown command ‘xyzz’ - maybe you meant ‘zzyx’
[ "pip zzyx" ]
nofaq
Synthetic paper variant; fix is read directly from the stderr suggestion.
pip abc
ERROR: unknown command ‘abc’ - maybe you meant ‘cba’
[ "pip cba" ]
nofaq
Synthetic paper variant; fix is read directly from the stderr suggestion.
mknod blabla b 1 2
mknod: blabla: operation not permitted
[ "sudo mknod blabla b 1 2" ]
nofaq
null
mknod qwe b 1 2
mknod: qwe: operation not permitted
[ "sudo mknod qwe b 1 2" ]
nofaq
null
mknod xyzz b 1 2
mknod: xyzz: operation not permitted
[ "sudo mknod xyzz b 1 2" ]
nofaq
null
test.py
command not found
[ "py.test" ]
nofaq
null
vagrant blabla
VM must be running to open SSH connection. Run `vagrant up` to start the virtual machine.
[ "vagrant up" ]
nofaq
Placeholder subcommand (stands in for vagrant ssh); fix is read directly from the genuine stderr.
vagrant abcd
VM must be running to open SSH connection. Run `vagrant up` to start the virtual machine.
[ "vagrant up" ]
nofaq
null
vagrant xyz
VM must be running to open SSH connection. Run `vagrant up` to start the virtual machine.
[ "vagrant up" ]
nofaq
null
touch a/b.txt
touch: a/b.txt: no such file or dir
[ "mkdir -p a; touch a/b.txt" ]
nofaq
null
touch gamma/beta.jpg
touch: gamma/beta.jpg: no such file or dir
[ "mkdir -p gamma; touch gamma/beta.jpg" ]
nofaq
null
touch go/air.fs
touch: go/air.fs: no such file or dir
[ "mkdir -p go; touch go/air.fs" ]
nofaq
null
tsuru app-abcabcabc
You're not authenticated or your session has expired. Please use "login" command for authentication
[ "tsuru login" ]
nofaq
null
tsuru pool-xyzz
You're not authenticated or your session has expired. Please use "login" command for authentication
[ "tsuru login" ]
nofaq
null
tsuru prog-log
You're not authenticated or your session has expired. Please use "login" command for authentication
[ "tsuru login" ]
nofaq
null
git config --global core.excludefile .gitignore_global
.gitignore not updated
[ "git config --global core.excludesfile ~/.gitignore_global" ]
nofaq
stderr is a dataset paraphrase (git config fails silently here); the correction is the classic excludesfile key-name fix.
git branch -d remotes/origin/bugfix
failed to delete remote branch
[ "git push origin --delete bugfix" ]
nofaq
stderr is a dataset paraphrase; the correction is the canonical remote-branch-delete fix.
git branch -d remotes/origin/prog
failed to delete remote branch
[ "git push origin --delete prog" ]
nofaq
null
git branch -d remotes/origin/xyz
failed to delete remote branch
[ "git push origin --delete xyz" ]
nofaq
null
git branch -rd origin/bugfix
failed to delete remote branch
[ "git push origin --delete bugfix" ]
nofaq
null
git branch -rd origin/prog
failed to delete remote branch
[ "git push origin --delete prog" ]
nofaq
null
git branch -rd origin/xyz
failed to delete remote branch
[ "git push origin --delete xyz" ]
nofaq
null
git checkout $blahblah
fatal: git checkout: updating paths is incompatible with switching branches/forcing
[ "git checkout HEAD $blahblah" ]
nofaq
null
git checkout $abcd
fatal: git checkout: updating paths is incompatible with switching branches/forcing
[ "git checkout HEAD $abcd" ]
nofaq
null
git checkout $xyz
fatal: git checkout: updating paths is incompatible with switching branches/forcing
[ "git checkout HEAD $xyz" ]
nofaq
null
git pull origin master
error: Couldn't set ORIG_HEAD. fatal: Cannot update the ref 'ORIG_HEAD'.
[ "git gc --prune=now" ]
nofaq
null
git pull origin master
Your local changes to the following files would be overwritten by merge: user.v1234.suo
[ "git rm --cached user.v1234.suo", "git stash" ]
nofaq
'git stash' added as an accepted alternate: NoFAQ itself uses it as the fix for the same overwritten-by-merge error elsewhere.
git pull origin master
Your local changes to the following files would be overwritten by merge: user.abcd.suo
[ "git rm --cached user.abcd.suo", "git stash" ]
nofaq
'git stash' added as an accepted alternate (see sibling scenario).
git pull origin master
Your local changes to the following files would be overwritten by merge: user.xyz.suo
[ "git rm --cached user.xyz.suo", "git stash" ]
nofaq
'git stash' added as an accepted alternate (see sibling scenario).