dart-lang/dart-vim-plugin

"cannot find .packages file"

christopherfujino opened this issue · 1 comments

When trying to use gf in an import statement, I get the following error:

[dart-vim-plugin] cannot find .packages file
E447: Can't find file "package:test/test.dart" in path

I imagine this is because pub recently stopped generating this file, in favor of .dart_tool/package_config.json.

I will try to see if I can make a PR for this (my first vimscript PR :O ), but figured I would file an issue first.

FYI I did dart pub get with:

Dart SDK version: 2.18.0-119.0.dev (dev) (Mon May 16 04:55:15 2022 -0700) on "linux_x64"

And it did not generate a .packages file.

I'm using this plugin from head, which at the moment is ceecea7