# File viewer - line coverage

**URL:** <https://community.codecov.com/t/file-viewer-line-coverage/3355>\
**Category:** Support\
**Created:** [November 23, 2021, 2:04pm UTC](https://community.codecov.com/t/file-viewer-line-coverage/3355 "2021-11-23T14:04:32Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![scippio](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/scippio/32/2221_2.png) [@scippio](https://community.codecov.com/u/scippio)\
**Post date:** [November 23, 2021, 2:04pm UTC](https://community.codecov.com/t/file-viewer-line-coverage/3355/1 "2021-11-23T14:04:33Z")

</div>

Hi all,  
I upload my code from BB to codecov in pipelines by:

```auto
- go get -t -v ./...
- go test -race -coverprofile=coverage.txt -covermode=atomic ./pkg... ./cmd/...
- bash <(curl -s https://codecov.io/bash)

```

Eveything looks good but in file viewer I always see “There was a problem getting the source code from your provider. Unable to show line by line coverage.” only.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [November 23, 2021, 3:22pm UTC](https://community.codecov.com/t/file-viewer-line-coverage/3355/2 "2021-11-23T15:22:21Z")

</div>

@scippio

1. Can you fill out the template provided when opening up a topic? It helps us to debug issues and decrease back and forth trying to get information.
2. We are deprecating the `bash` uploader in favor of our [new uploader](https://docs.codecov.com/docs/codecov-uploader)
3. You may need to set a [team bot](https://docs.codecov.com/docs/team-bot) if you have a private repository.

---

<div class="post-metadata">

**Author:** ![scippio](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/scippio/32/2221_2.png) [@scippio](https://community.codecov.com/u/scippio)\
**Post date:** [November 23, 2021, 4:30pm UTC](https://community.codecov.com/t/file-viewer-line-coverage/3355/3 "2021-11-23T16:30:56Z")

</div>

Hi Tom,  
thanks for answer. I changed uploader from bash to newer And add codecov.yml with my username on BB. I’m logged to codecov and all persmissions to this user was granted.

### Description

In file viewer I always see “There was a problem getting the source code from your provider. Unable to show line by line coverage.” only.

### CI/CD URL

private repository on [https://bitbucket.org/converting-traffic-splitter/converting-traffic-splitter](https://bitbucket.org/converting-traffic-splitter/converting-traffic-splitter)

### Codecov Output

```auto
`[2021-11-23T16:17:32.930Z] ['info'] => Project root located at: /opt/atlassian/pipelines/agent/build`
`[2021-11-23T16:17:32.931Z] ['info'] -> Token found by arguments`
`[2021-11-23T16:17:32.938Z] ['info'] Searching for coverage files...`
`[2021-11-23T16:17:32.971Z] ['info'] => Found 2 possible coverage files:`
` coverage.txt`
` coverage/lcov.info`
`[2021-11-23T16:17:32.971Z] ['info'] Processing /opt/atlassian/pipelines/agent/build/coverage.txt...`
`[2021-11-23T16:17:32.973Z] ['info'] Processing /opt/atlassian/pipelines/agent/build/coverage/lcov.info...`
`[2021-11-23T16:17:32.979Z] ['info'] Detected Bitbucket as the CI provider.`
`[2021-11-23T16:17:32.979Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.1.13&token= ******* &branch=master&build=791&build_url=&commit=edd0e737b8062e736378d5e38592777d1c4cd716&job=791&pr=&service=bitbucket&slug=converting-traffic-splitter%2Fconverting-traffic-splitter&name=&tag=&flags=&parent=`
`[2021-11-23T16:17:33.110Z] ['info'] Uploading...`
`[2021-11-23T16:17:33.323Z] ['info'] {"status":"success","resultURL":"https://codecov.io/bitbucket/converting-traffic-splitter/converting-traffic-splitter/commit/edd0e737b8062e736378d5e38592777d1c4cd716"}`

```

### Expected Results

File coverage view.

### Actual Results

In file viewer I always see “There was a problem getting the source code from your provider. Unable to show line by line coverage.” only.

### Additional Information

I updated codecov upload script + added codecov.yml with bot name (My account on BB = my bot username)

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [November 23, 2021, 6:35pm UTC](https://community.codecov.com/t/file-viewer-line-coverage/3355/4 "2021-11-23T18:35:43Z")

</div>

@scippio can you re-run CI with the new codecov.yml? I’m not seeing it being populated on that previous commit. We ingest the codecov.yml config at time of upload, not afterwards.

---

<div class="post-metadata">

**Author:** ![scippio](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/scippio/32/2221_2.png) [@scippio](https://community.codecov.com/u/scippio)\
**Post date:** [November 23, 2021, 7:19pm UTC](https://community.codecov.com/t/file-viewer-line-coverage/3355/5 "2021-11-23T19:19:53Z")

</div>

I already done it… but everything is same.

- btw… I don’t know if it related but this link does not work:  

- I see “Unable to find commit in Bitbucket” … on some commits there:  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/b/bcde92cdb4545c2d1a93b6b1a52070d510b935a0.png)

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [November 23, 2021, 7:36pm UTC](https://community.codecov.com/t/file-viewer-line-coverage/3355/6 "2021-11-23T19:36:13Z")

</div>

@scippio I’m not seeing the `bot` getting set. Can you post the `codecov.yml` and confirm that the file is on the same branch as your commits?

---

<div class="post-metadata">

**Author:** ![scippio](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/scippio/32/2221_2.png) [@scippio](https://community.codecov.com/u/scippio)\
**Post date:** [November 23, 2021, 7:42pm UTC](https://community.codecov.com/t/file-viewer-line-coverage/3355/7 "2021-11-23T19:42:42Z")

</div>

ofcourse:  
it’s in the root in the same (master) branch:  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/4/46fc39c0af89ce775fafb47c5887897b270d948d.png)  
with this content:

```auto
codecov:
  bot: scippio

```

I added `cat` command for you into pipeline:

```auto
cat ./codecov.yml
+ cat ./codecov.yml
codecov:
  bot: scippio
./codecov -t ${CODECOV_TOKEN}
+ ./codecov -t ${CODECOV_TOKEN}
[2021-11-23T19:41:27.680Z] ['info'] 
     _____ _
    / ____ | | |
   | | _____ | | ______  _______
   | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |__/ (_| (_) \ V /
    \ _____\___ / \ __,_|\___ |\ ___\___ / \_/
  Codecov report uploader 0.1.13
[2021-11-23T19:41:27.689Z] ['info'] => Project root located at: /opt/atlassian/pipelines/agent/build
[2021-11-23T19:41:27.690Z] ['info'] -> Token found by arguments
[2021-11-23T19:41:27.697Z] ['info'] Searching for coverage files...
[2021-11-23T19:41:27.728Z] ['info'] => Found 2 possible coverage files:
  coverage.txt
  coverage/lcov.info
[2021-11-23T19:41:27.729Z] ['info'] Processing /opt/atlassian/pipelines/agent/build/coverage.txt...
[2021-11-23T19:41:27.730Z] ['info'] Processing /opt/atlassian/pipelines/agent/build/coverage/lcov.info...
[2021-11-23T19:41:27.736Z] ['info'] Detected Bitbucket as the CI provider.
[2021-11-23T19:41:27.737Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.1.13&token= ******* &branch=master&build=793&build_url=&commit=44bd7e28231111e925cb935d81c9c0c883aa9353&job=793&pr=&service=bitbucket&slug=converting-traffic-splitter%2Fconverting-traffic-splitter&name=&tag=&flags=&parent=

```

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [November 30, 2021, 6:43am UTC](https://community.codecov.com/t/file-viewer-line-coverage/3355/8 "2021-11-30T06:43:12Z")

</div>

@scippio ok, we made a small fix that should get us back on track. Can you push a new commit and see if you still cannot view the files?

---

<div class="post-metadata">

**Author:** ![scippio](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/scippio/32/2221_2.png) [@scippio](https://community.codecov.com/u/scippio)\
**Post date:** [November 30, 2021, 6:22pm UTC](https://community.codecov.com/t/file-viewer-line-coverage/3355/9 "2021-11-30T18:22:31Z")

</div>

@tom sorry, but everything is still same after commit… (maybe RECENT COMMITS list looks ok now…)

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [December 30, 2021, 3:08pm UTC](https://community.codecov.com/t/file-viewer-line-coverage/3355/10 "2021-12-30T15:08:40Z")

</div>

@scippio sorry for the delay here. This ended being a deeper bug than we anticipated. We deployed a fix, do you see a difference now?

---

<div class="post-metadata">

**Author:** ![scippio](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/scippio/32/2221_2.png) [@scippio](https://community.codecov.com/u/scippio)\
**Post date:** [December 31, 2021, 4:05pm UTC](https://community.codecov.com/t/file-viewer-line-coverage/3355/11 "2021-12-31T16:05:14Z")

</div>

It works! (even without new push/commit) Thank you (and happy new year 😄 )
