# Is this bug in main.go?

**URL:** https://forum.syncthing.net/t/is-this-bug-in-main-go/6005
**Category:** Development
**Created:** [November 3, 2015, 5:51pm UTC](https://forum.syncthing.net/t/is-this-bug-in-main-go/6005 "2015-11-03T17:51:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sunylat](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/s/e495f1/32.png) [@sunylat](https://forum.syncthing.net/u/sunylat)
#### Post date: [November 3, 2015, 5:51pm UTC](https://forum.syncthing.net/t/is-this-bug-in-main-go/6005/1 "2015-11-03T17:51:50Z")

</div>

in “main.go”,code below:

```
	protocol.PingTimeout = time.Duration(opts.PingTimeoutS) * time.Second
	protocol.PingIdleTime = time.Duration(opts.PingIdleTimeS) * time.Second

```

error : Description Resource Path Location Type undefined: protocol.PingTimeout main.go /MyGoDemo/src/syncthing/cmd/syncthing line 571 Go Problem

this error show in Eclipse

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [November 3, 2015, 6:05pm UTC](https://forum.syncthing.net/t/is-this-bug-in-main-go/6005/2 "2015-11-03T18:05:20Z")

</div>

You’re building code that is out of sync with reality somehow. Can you describe what you’re doing and with what version of the code?

---

<div class="post-metadata">

### Author: ![sunylat](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/s/e495f1/32.png) [@sunylat](https://forum.syncthing.net/u/sunylat)
#### Post date: [November 4, 2015, 5:10am UTC](https://forum.syncthing.net/t/is-this-bug-in-main-go/6005/3 "2015-11-04T05:10:06Z")

</div>

hi Borg: I use the sycnthing “syncthing-source-v0.11.26”! I fix all the syncthing’s depend package,but at last ,those code show error,when i comment those code ,i can build the syncthing in Eclipse and debug it ,then i think those code may be bug!!

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [November 4, 2015, 8:13am UTC](https://forum.syncthing.net/t/is-this-bug-in-main-go/6005/4 "2015-11-04T08:13:29Z")

</div>

If you build using syncthings provides build script. In the root of the repo run `go run build.go` and I think it will build fine.

All dependencies and their right versions are in the Godeps directory, so you need to make sure that your system libraries are at the same version as the ones in Godeps directory, or do `godep restore` if you have Godep installed.

Also you might want to do a `go run build.go clean`

---

<div class="post-metadata">

### Author: ![sunylat](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/s/e495f1/32.png) [@sunylat](https://forum.syncthing.net/u/sunylat)
#### Post date: [November 6, 2015, 9:08am UTC](https://forum.syncthing.net/t/is-this-bug-in-main-go/6005/5 "2015-11-06T09:08:36Z")

</div>

sorry everybody: This isn’t bug , is my mistake，i have success build、debug the syncthing in the Eclipse！！ now i didn’t know why cause that question , if i know i will post the reason !!
