dougm / go-projectile Goto Github PK
View Code? Open in Web Editor NEWGo language related add-ons for Projectile
Go language related add-ons for Projectile
could you please create a tag to use this package using melpa stable [1].
Thanks
[1] : http://stable.melpa.org/
About half of my projects don't use a global GOPATH, but use GOPATH=pwd
to contain everything in one directory.
go-projectile-set-gopath works OK for that purpose initially, but when switching from a buffer PROJ-ROOT1 (which has a main.go) to another buffer PROJ-ROOT2/main.go go-projectile-derive-gopath seems to fail.
The problem is that "rel" correctly ends up being "main.go", but since a main.go is also to be found in PROJ-ROOT1 (locate-file rel (split-string path path-separator t)) evaluated to "t" which causes GOPATH to be the old PROJ-ROOT1
I'm trying to improve my emacs go editing experience and I've hit a bit of a snag. I like this package, but when it goes to install tools, one of those tools is gocode. I see that it installs it from a fork of the original, but that fork is not maintained any longer (github.com/mdempsky/gocode). It doesn't work at all with modules, which is the recommended method in lieu of GOPATH. There's another fork that supports modules, https://github.com/stamblerre/gocode. Unfortunately, it is also unmaintained. It recommends using gopls
, which is what I'm using now and it works great. There are two places that I can see that use this tool.
Hi, I am total emacs newbie, I've started with spacemacs and have no clue how to enable this package in it.
Would anyone help?
Given that go get
is deprecated, we should change this line to use go install
instead:
go-projectile/go-projectile.el
Line 100 in ad4ca3b
oracle.el
used to define its own minor mode, but now it just modifies go-mode-map
when it is loaded. This causes errors in the go-projectile
go-mode-hook
.
Which broke my EXWM!
I think projectile-go-project-p
is a reasonable replacement.
The autoload
in go-projectile-tools-add-path
needs to be updated. Or maybe now that go-rename
is on melpa you could add that package as a dependency instead of setting up load-path
and autoload
yourself.
It would nice to be able to use go-projectfile
with something like gom
(https://github.com/mattn/gom).
Here is the output in *Messages*
:
Go tool gocode: go get github.com/nsf/gocode
Go tool golint: go get github.com/golang/lint/golint
if: package golang.org/x/tools/go/gcimporter: unrecognized import path "golang.org/x/tools/go/gcimporter"
package golang.org/x/tools/go/types: unrecognized import path "golang.org/x/tools/go/types"
I don't have a detailed report about this, but with the go-projectile package enabled, and active buffer was from a big project with thousands of files, most of Emacs lagged, as in bringing up a list of buffers via ido-switch-buffer
would take about 2-4 seconds compared to being instant when active buffer was from a smaller project.
The slow-down effected everything from projectile-find-file
to C-x k
(ido-kill-buffer
).
Don't know if it helps much, but my emacs config is available here: https://github.com/jimeh/.emacs.d
If there's anything else I can provide, just ask, takes seconds to install go-projectile again to get the behavior back :)
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.