Skip to content

"cannot find .packages file" #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
christopherfujino opened this issue May 17, 2022 · 1 comment · Fixed by #137
Closed

"cannot find .packages file" #136

christopherfujino opened this issue May 17, 2022 · 1 comment · Fixed by #137

Comments

@christopherfujino
Copy link
Contributor

christopherfujino commented May 17, 2022

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

@christopherfujino
Copy link
Contributor Author

Related dart-lang/sdk#48272

natebosch pushed a commit that referenced this issue May 23, 2022
Fixes #136

Search for `.dart_tool/package_config.json` before
falling back on `.packages`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant