Coder Social home page Coder Social logo

Comments (5)

eruizc-dev avatar eruizc-dev commented on July 18, 2024 2

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.

nomorechokedboy avatar nomorechokedboy commented on July 18, 2024

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.

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.

pixelskull avatar pixelskull commented on July 18, 2024

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.

jaadus avatar jaadus commented on July 18, 2024

@nomorechokedboy how did you resolve this?

from gopher.nvim.

nomorechokedboy avatar nomorechokedboy commented on July 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.