Comments (5)
Make sure gomodifytags
is accessible from the terminal by executing gomodifytags --help
. If it is not, then you can try find it probably under $HOME/go/bin/gomodifytags
. If that's the case adding $HOME/go/bin
to your PATH should solve your issue.
from gopher.nvim.
Make sure
gomodifytags
is accessible from the terminal by executinggomodifytags --help
. If it is not, then you can try find it probably under$HOME/go/bin/gomodifytags
. If that's the case adding$HOME/go/bin
to your PATH should solve your issue.
I forgot to mention that. This is my gomodifytags -h
and echo $PATH
output:
~
❯ gomodifytags -h
Usage of gomodifytags:
-add-options string
Add the options per given key. i.e: json=omitempty,hcl=squash
-add-tags string
Adds tags for the comma separated list of keys.Keys can contain a static value, i,e: json:foo
-all
Select all structs to be processed
-clear-options
Clear all tag options
-clear-tags
Clear all tags
-field string
Field name to be processed
-file string
Filename to be parsed
-format string
Output format.By default it's the whole file. Options: [source, json] (default "source")
-line string
Line number of the field or a range of line. i.e: 4 or 4,8
-modified
read an archive of modified files from standard input
-offset int
Byte offset of the cursor position inside a struct.Can be anwhere from the comment until closing bracket
-override
Override current tags when adding tags
-quiet
Don't print result to stdout
-remove-options string
Remove the comma separated list of options from the given keys, i.e: json=omitempty,hcl=squash
-remove-tags string
Remove tags for the comma separated list of keys
-skip-unexported
Skip unexported fields
-sort
Sort sorts the tags in increasing order according to the key name
-struct string
Struct name to be processed
-template string
Format the given tag's value. i.e: "column:{field}", "field_name={field}"
-transform string
Transform adds a transform rule when adding tags. Current options: [snakecase, camelcase, lispcase, pascalcase, titlecase, keep] (default "snakecase")
-w Write results to (source) file
~
❯ echo $PATH
/Users/user_name/go/bin
from gopher.nvim.
Same Problem here. Using :GoTagAdd json
produces the same error. I checked but the gomodifytags
is not accessible from the terminal. I think the same problem is happening when using :GoTestsAll
, in this case the gotests
seems to be missing.
The setup I am using:
{
"olexsmir/gopher.nvim",
ft = "go",
config = function(_, opts)
require("gopher").setup(opts)
require("core.utils").load_mappings("gopher")
end,
build = function()
vim.cmd [[silent! GoInstallDeps]]
end,
},
Is there anything I am doing wrong? It seems that even when using :GoInstallDeps
there is no change.
Thank you for your help in advance :)
Edit: I am running macOS Ventura (13.4) on intel
from gopher.nvim.
@nomorechokedboy how did you resolve this?
from gopher.nvim.
@nomorechokedboy how did you resolve this?
I've decided to switch from MacOS to Linux (specifically, Ubuntu) since my new company uses Ubuntu instead of MacOS
from gopher.nvim.
Related Issues (20)
- [Feature] Add gotests templates arguments to configuration HOT 3
- Add support for gorename HOT 1
- GoTagAdd json struct not found HOT 2
- Error calling `GoTagAdd json` HOT 2
- How do you automatically remove dependency error after `:GoGet`/`:GoMod tidy` HOT 2
- Corner case for GoAddTags
- Add -transform option for :GoTag HOT 1
- `GoTagAdd json`: struct not found HOT 4
- Issue with GoTagAdd Function when Called on Multiple Structs HOT 2
- Override commands to add flags HOT 6
- [Question] How to change JSON tag from snake_case to camelCase in GoTagAdd? HOT 3
- Add possibility to add extra cmd tags into setup HOT 3
- Bug: GoTestAdd creates test for all functions containing its name.
- Error in GoTestAdd HOT 4
- install dependencies with mason.nvim
- Goimpl make tab show code completion list HOT 3
- Feature request: automatically generate implementations by error message + fetch correct identifier name. HOT 3
- Error calling GoTagAdd json HOT 2
- gomodifytags: executable not found HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gopher.nvim.