docker-coala-base icon indicating copy to clipboard operation
docker-coala-base copied to clipboard

Coala in docker on mac failed code analysis due to file access issue

Open eqj619 opened this issue 4 years ago • 0 comments

Problem Coala in docker failed code analysis due to file access issue.

I try to execute coala in docker container following by coala tutorial. However, coala did not indicate report and not modify source code as description at this tutorial. http://docs.coala.io/en/latest/Users/Tutorial.html note: I tried to give “Full Disk Access” to “docker” by Security & Privacy at macOS control panel. but, this problem did not resolve, yet.

Execution Result:

$ git clone https://github.com/coala/coala-tutorial
$ cd ./coala-tutorial
$ coala --files=src/\*.c --bears=SpaceConsistencyBear --save
Please enter a value for the setting "use_spaces" (True if spaces are to be used instead of tabs.) needed by SpaceConsistencyBear for section "cli": 
True
Executing section cli...
[WARNING][21:43:36] No files matching '/app/src/*.c' were found.

Version information:

$ tail -n 2 ~/.zshrc
alias coala="docker run -ti --name coaladoc -v $(pwd):/app --workdir=/app coala/base coala"

$ coala --version                                                                  
0.12.0.dev99999999999999

$ sw_vers                                                                          
ProductName:	Mac OS X
ProductVersion:	10.15.6
BuildVersion:	19G2021

$ docker --version                                                                 
Docker version 19.03.12, build 48a66213fe

permission:

$ cd coala-tutorial 
$ ll                                                                                                                                      
total 16
-rw-r--r--  1 eijioga  staff  166 Sep  2 11:54 Makefile
-rw-r--r--  1 eijioga  staff   92 Sep  2 11:54 README.md
drwxr-xr-x@ 4 eijioga  staff  128 Sep  2 13:10 bears/
drwxr-xr-x@ 4 eijioga  staff  128 Sep 15 09:20 src/

$ cd src                                                                                                                                  
$ ll                                                                                                                                                 
total 16
-rw-r--r--  1 eijioga  staff  134 Sep  2 11:54 add.py
-rw-r--r--  1 eijioga  staff  153 Sep  2 11:54 main.c

eqj619 avatar Sep 15 '20 21:09 eqj619