Coder Social home page Coder Social logo

telescope-makefile's People

Contributors

alaz-oz avatar de-passage avatar sopa0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

telescope-makefile's Issues

Throws exception when loading extension

I import this extenstions alongside my other extensions using LazyVim:

return {
  {
    "nvim-telescope/telescope.nvim",
    dependencies = {
      "sopa0/telescope-makefile",
      "LinArcX/telescope-ports.nvim",
      "axkirillov/telescope-changed-files",
      "LinArcX/telescope-env.nvim",
      "nvim-lua/plenary.nvim",
      "debugloop/telescope-undo.nvim",

      {
        "AckslD/nvim-neoclip.lua",
        dependencies = {
          -- you'll need at least one of these
          -- {'nvim-telescope/telescope.nvim'},
          -- { "ibhagwan/fzf-lua" },
        },
        config = function()
          require("neoclip").setup()
        end,
      },

      {
        "nvim-telescope/telescope-live-grep-args.nvim",
        version = "^1.0.0",
        build = "make",
      },

      {
        "nvim-telescope/telescope-media-files.nvim",
        dependencies = {
          "nvim-lua/popup.nvim",
        },
      },
    },
    [...]
}

And then inside lazy.lua, I do load it like everything else:

require("telescope").load_extension("changed_files")
require("telescope").load_extension("undo")
require("telescope").load_extension("live_grep_args")
require("telescope").load_extension("harpoon")
require("telescope").load_extension("env")
require("telescope").load_extension("media_files")
require("telescope").load_extension("neoclip")
require("telescope").load_extension("make")

And whenever I open neovim, i receive this error + it can't find the command Telescope make:

Error detected while processing /Users/foo/.config/nvim/init.lua:
E5113: Error while calling lua chunk: ...m/lazy/telescope.nvim/lua/telescope/_extensions/init.lua:10: 'make' extension doesn't exist or isn't installed: ...zy/telescope-makefile/lua/tel
escope/_extensions/make.lua:6: module 'toggleterm.terminal' not found:
        no field package.preload['toggleterm.terminal']
cache_loader: module toggleterm.terminal not found
cache_loader_lib: module toggleterm.terminal not found
        no file './toggleterm/terminal.lua'
        no file '/opt/homebrew/share/luajit-2.1.0-beta3/toggleterm/terminal.lua'
        no file '/usr/local/share/lua/5.1/toggleterm/terminal.lua'
        no file '/usr/local/share/lua/5.1/toggleterm/terminal/init.lua'
        no file '/opt/homebrew/share/lua/5.1/toggleterm/terminal.lua'
        no file '/opt/homebrew/share/lua/5.1/toggleterm/terminal/init.lua'
        no file './toggleterm/terminal.so'
        no file '/usr/local/lib/lua/5.1/toggleterm/terminal.so'
        no file '/opt/homebrew/lib/lua/5.1/toggleterm/terminal.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './toggleterm.so'
        no file '/usr/local/lib/lua/5.1/toggleterm.so'
        no file '/opt/homebrew/lib/lua/5.1/toggleterm.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'error'
        ...m/lazy/telescope.nvim/lua/telescope/_extensions/init.lua:10: in function 'load_extension'
        ...m/lazy/telescope.nvim/lua/telescope/_extensions/init.lua:62: in function 'load_extension'
        /Users/foo/.config/nvim/lua/config/lazy.lua:82: in main chunk
        [C]: in function 'require'
        /Users/foo/.config/nvim/init.lua:2: in main chunk

attempt to call field 'merge' (a nil value)

Error executing Lua callback: ...rt/telescope-makefile/lua/telescope/_extensions/make.lua:51: attempt to call field 'merge' (a nil value)
stack traceback:
        ...rt/telescope-makefile/lua/telescope/_extensions/make.lua:51: in function 'get_targets'
        ...rt/telescope-makefile/lua/telescope/_extensions/make.lua:66: in function <...rt/telescope-makefile/lua/telescope/_extensions/make.lua:65>
        ...ck/packer/start/telescope.nvim/lua/telescope/command.lua:193: in function 'run_command'
        ...ck/packer/start/telescope.nvim/lua/telescope/command.lua:253: in function 'load_command'
        ...te/pack/packer/start/telescope.nvim/plugin/telescope.lua:109: in function <...te/pack/packer/start/telescope.nvim/plugin/telescope.lua:108>

GNU make incorrectly detected

System:
Ubuntu 20.04 running in WSL2
zsh 5.8
Neovim 0.8.1
GNU Make 4.2.1

Description:
When executing :Telescope make, I get an information message 'No make target` even with a proper Makefile in the current directory. After investigation it appears that my make version is incorrectly detected as being BSD.
I suspect this is some behavior difference between bash and zsh leading the bash expression in make.lua to produce an unexpectedly empty result.
I'll have a PR fixing this problem and #5 asap.

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.