-
Notifications
You must be signed in to change notification settings - Fork 68
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
Custom lint immediately crashes #180
Comments
There might be something wrong with your development environment. My understanding is that the terminal's PATH variable does not include Flutter's location. |
Yes, |
In that case that's going to be quite hard for me to debug. I've never had this error, so without knowing about your environment, that's going to be difficult. |
I investigated more into the issue. After trashing my update and digging into it more on 0.4.0 it was because multiple of our packages (living side-by-side in the same repo) were referencing different versions of the same dependency which kept custom_lints from launching. The error given in 0.4.0 was much more obvious about this. I don't know if 0.5.2 was having issues because of this, but on 0.4.0 it's working now after making sure everything was using the same versions. |
Sounds like there is a bug if 0.5.2 doesn't catch this or give a proper error message. Could you share the pubspec.yamls and |
Here's an example from the log before I updated all our dependencies. Just to clarify, this is on 0.4.0. And the packages mentioned in the log aren't direct dependencies, they're dependencies of dependencies (i.e. All of our packages rely on a single "shared" package, so I resolved this by defining our dependency versions only in shared, then in every other package I removed the specific version dependency. So only shared is "installing" dependencies and the rest of our packages are just resolving what shared has already installed. If you need specific examples of our pubspecs beyond this let me know. I'm not seeing that we have any
|
You most definitely have some. There's no way to generate an error such as the one linked above without such a file. That's what I'd be curious to see what the error was (the compilation error that preventing plugins from starting). Do you think you could create a small repo for me to reproduce the error? That would help massively in debugging this. |
Just get the error here as well
❯ flutter doctor • No issues found! |
According to this error, you did not define a |
Yes. Make sure that this From that error, it sounds like you defined it in a different place. Maybe it's in the lib/src folder |
In fact, my mistake, the main file was main.dart... I'm sorry =/ |
No worries, the error isn't super clear :) |
The log only includes this
We were using 0.4.0 and I noticed our custom lints weren't running. So I updated them to the latest 0.5.2 and they're still not working. Does the above tell you what's going on?
The text was updated successfully, but these errors were encountered: