coala / coala/docker-coala-base

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

Open
#256 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
21
Forks
28
PR merge metrics
No merged PRs in 30d

Description

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
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the documented coala command through the shown Docker alias, then inspect whether the host directory is mounted and visible at /app, including the src path. Done means the tutorial command finds src/main.c and produces its report or applies the requested saved changes in the macOS Docker environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, macos, shell
Domain
devops, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.