Git Product home page Git Product logo

Comments (8)

oblitum avatar oblitum commented on May 21, 2024

Just to add, I'm debugging a bit now and the strange buffer output seems to come from this part of fmt.vim:

    if empty(errors)
        % | " Couldn't detect gofmt error format, output errors
    endif

from vim-go.

oblitum avatar oblitum commented on May 21, 2024

Ok the issue is being caused because the fmt.vim script is using "goimports" instead of g:go_goimports_bin to build the command for execution. This is an issue since ~/.vim-go is not in my $PATH.

from vim-go.

oblitum avatar oblitum commented on May 21, 2024

Replacing the instances of that string in the file with the bin variable solved the issue for me.

from vim-go.

fatih avatar fatih commented on May 21, 2024

You are right, it uses g:go_fmt_command instead of g:go_goimports_bin (which is actually being setted). Thanks for reporting, I'll push a fix asap.

from vim-go.

fatih avatar fatih commented on May 21, 2024

Can you revert your changes and just replace this on line 37-39:

if !exists("g:go_fmt_command")
    let g:go_fmt_command = g:go_goimports_bin
endif

from vim-go.

oblitum avatar oblitum commented on May 21, 2024

@fatih my previous change was just that, and the same for line 60.

from vim-go.

fatih avatar fatih commented on May 21, 2024

ok thanks @oblitum, pushing the fix now. Awesome catch 👍

from vim-go.

oblitum avatar oblitum commented on May 21, 2024

glad to help

from vim-go.

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.