akinsho / flutter-tools.nvim

Tools to help create flutter apps in neovim using the native lsp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

save pubspec.yaml , it found the absolute path of flutter

Decodetalkers opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Emm. this is because I made a tool to auto config my flutter enviroment, link is here https://github.com/Decodetalkers/flutterup

It is like rustup, check the arg[0], and finally run the right target, to provide a package named flutter for me to compile package from aur, because these packages mark flutter as their dependenies, and as you know, flutter need a .git folder , it will not run property when in root dir, so I make this one. the flutter, dart, and flutterup target are all flutterup, and this causes the problem under.

image

Emm, if it do not need to find the absolute path? I do not know where the code is, and what is this logic for , so I ask here

Expected Behavior

I think absolute path maybe not needed , I think

Steps To Reproduce

use the package flutterup as flutter.. then it will reproduce

Environment

- OS:archlinux
- Flutter version: 3.10
- Is flutter in $PATH:Yes, and maybe not the real flutter
- neovim version:0.9.0

Anything else?

No response

image
the tool is like this, like what rustup do