You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual result:
At step 4: grip does not find README
Expected result:
At step 4: grip should have found README, or the error message should clarify what file grip is trying to open.
Strace reveals grip is trying to find README.md and README.markdown, but it does not try to find README, so it can't find it. Therefore the error message is confusing:
$ strace grip 2>&1 | grep "(No such file or directory)"
newfstatat(AT_FDCWD, "./README.md", 0x7ffd5b241f90, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "./README.markdown", 0x7ffd5b241f90, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "./Readme.md", 0x7ffd5b241f90, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "./Readme.markdown", 0x7ffd5b241f90, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "./readme.md", 0x7ffd5b241f90, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "./readme.markdown", 0x7ffd5b241f90, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "./Home.md", 0x7ffd5b241f90, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "./Home.markdown", 0x7ffd5b241f90, 0) = -1 ENOENT (No such file or directory)
my versions:
$ grip --version
Grip 4.6.1
$ uname -a
Linux cedric 6.3.1-arch2-1 #1 SMP PREEMPT_DYNAMIC Wed, 10 May 2023 08:54:47 +0000 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered:
To reproduce:
$ pip install grip
$ nano ~/.bash_profile
$ cat
/.bash_profile/.local/binexport PATH=$PATH:
$ source ~/.bash_profile
$ git clone git://sigrok.org/pulseview
$ cd pulseview/
$ ls -l README
-rw-r--r-- 1 cedric cedric 3074 May 16 08:00 README
$ grip
Error: No README found at .
$ grip README
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
Press CTRL+C to quit
Actual result:
At step 4: grip does not find README
Expected result:
At step 4: grip should have found README, or the error message should clarify what file grip is trying to open.
Strace reveals grip is trying to find README.md and README.markdown, but it does not try to find README, so it can't find it. Therefore the error message is confusing:
$ strace grip 2>&1 | grep "(No such file or directory)"
newfstatat(AT_FDCWD, "./README.md", 0x7ffd5b241f90, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "./README.markdown", 0x7ffd5b241f90, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "./Readme.md", 0x7ffd5b241f90, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "./Readme.markdown", 0x7ffd5b241f90, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "./readme.md", 0x7ffd5b241f90, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "./readme.markdown", 0x7ffd5b241f90, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "./Home.md", 0x7ffd5b241f90, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "./Home.markdown", 0x7ffd5b241f90, 0) = -1 ENOENT (No such file or directory)
my versions:
$ grip --version
Grip 4.6.1
$ uname -a
Linux cedric 6.3.1-arch2-1 #1 SMP PREEMPT_DYNAMIC Wed, 10 May 2023 08:54:47 +0000 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: