syscrusher / golang.tmbundle Goto Github PK
View Code? Open in Web Editor NEWThis project forked from alanquatermain/go-tmbundle
A TextMate bundle for the Go programming language
License: Other
This project forked from alanquatermain/go-tmbundle
A TextMate bundle for the Go programming language
License: Other
I think it's pretty obvious if you take a look. I'd be happy to dig into it myself, but don't understand how it works. Can someone point me to a tutorial or give me a crash course?
When complete one variant or without complete suggestions
Screenshots:
Broken after #28
When I format Go code, I get this error:
Failure running “Imports”.
env: ruby18: No such file or directory
Can't the code just specify ruby
? Why the dependency on 1.8?
Appears that gocode is still running after textmate exits. Also, I'd love to help with improving this plugin if there's any help needed 😄
Noticed these when monitoring log output from TextMate. There are two places where #storage_type
and #storage_modifier
are both included but neither of these repository items exist. Since they don't do anything they should be removed but wanted to bring it up to make sure they aren't intended to do something.
In example:
go run 1.go 2.go
go run *.go
That's very useful for multi-file packages.
Hi there, I've recently started getting this error when I attempt to run a go file in textmate 2.0-beta.6.7 / 2.0-beta.6.8
I've clone this repo in to ~/Library/Application Support/Avian/Bundles/golang.tmbundle
and as you can see in the output below it is attempting to run the go code using this plugin. Any thoughts on how to trouble-shoot this ?
Error message:
~/Library/Application Support/Avian/Bundles/golang.tmbundle/Support/gomate.rb:26:in `go': undefined method `length' for nil:NilClass (NoMethodError)
from Run:4
"edit command" source
#!/usr/bin/env ruby18
require "#{ENV['TM_BUNDLE_SUPPORT']}/gomate"
Go::go "run", :verb => "Running"
Let me know if there's anything else I can do to help.
I can't get this bundle to work. My go environment is set up properly, it works fine on the command line (using go version go1.5.2 darwin/amd64 from macports, GOROOT=/opt/local/lib/go, GOPATH=$HOME/Source/Go). I've installed all the tools via "go get" as found on the golang site and also refreshed them according to your README. After fiddling around with my problems I've also done a fresh install of TextMate (2.0-beta.8.5) and reinstalled the Go bundle with the preference pane.
My OS is 10.11.2 with all updates installed.
My Problems are:
I've tried to set all the TM_GO-Vars in the README, tried also to set only PATH and GOPATH or TM_GOPATH, and a lot of combinations. I've also double checked that only one "goimports" can be found and all tools work well if called directly on the shell prompt. I'm really stuck here.
The only thing that really works is "run". Is there any debug mode where I could find more information?
BTW, I've none of the TM_GO_DYNAMIC* vars set.
It just keep show me Unable to run “Fmt”.
I have add those variables to the settings. And add those to the system env file then run mate some.go
, still not working.
macOS sierra
textmate2
When I highlight Eligible
below:
if err := thing.Eligible(c); err != nil {
and press ^H for documentation, this error appears in a temporary popover:
2015/06/11 15:14:44 open /usr/local/Cellar/go/1.4.2/libexec/src/Evidence: no such file or directory
Is this feature only supposed to work for standard library packages? Can I not get documentation for custom packages, or types in packages (even standard ones)?
I've noticed in the past day or two that saving a file will appear to goimports-format it, as it removes imports, however those imports are actually needed to build. Not sure what's going on here, I would expect goimports to work the same whether it's hooked into the file-save feature or run manually through the bundle menu or keyboard shortcut.
When TM_GOPATH
is not set, the resulting gopath is :$GOPATH
. The leading colon seems to make go1.5 interpret this as a relative path and compilations end up with following errors:
go: GOPATH entry is relative; must be absolute path: "". Run 'go help gopath' for usage.
This can be verified by running go build from command line:
$ GOPATH=:/go go build
go: GOPATH entry is relative; must be absolute path: "".
Run 'go help gopath' for usage.
The issue was fixed by me and cherry-picked in cf4a250
The change was then reverted by cherry-pick of 2653890
Anyone else faces similar issue or having problems with fix proposed in cf4a250?
Hi there,
is it possible to change the code completion key bindings to be from the current Opt+Esc to Tab (or double tab) key ?
Is there any way to customise the key bindings?
The rune
alias has been serving us since 2011. It's time to let it sit amongst its storage.type.go
fellows.
If TM_GOFMT is set to the goimports
binary and if you have a file that uses a go-
prefixed package such as...
package main
import(
"github.com/armon/go-radix"
}
func main() {
_ := radix.New()
}
Saving the file will remove the go-radix
import leaving it broken. Running goimports
on it manually does not cause this issue.
OS X 10.11.5
TextMate version 2.0-beta.9
go-code lasted for 2016/05/18
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]
Where I press Opt+Esc, the logs from gocode -debug looks fine.
But the TM2 does not show any windows for any completion.
An error, tool tip "No completions found." showed.
Sorry for my Eng.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.