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
AnalysisException: Cannot compute SOURCE_KIND for Instance of 'AssetBasedSource' #268
Comments
What version of the SDK are you on? Also, can you check with If you can upgrade to source_gen On a side note - is there anything that would be useful to split out from https://github.com/natebosch/dart_language_server ? I've got a subset of the LSP spec working, could split out the messages and wire protocol stuff if there is utility in having it without the Analysis Server integration bits... Or if you want to take a stab at natebosch/dart_lsp#14 it could be useful to share. |
Dart SDK v1.24.2, running on Windows 10. Unfortunately, I can't yet upgrade to v0.7.0 because it's got some breaking changes, and the Also, it would be fantastic if we could split out the messages+wire protocol, and then I could add the rest to be fully compliant with the spec. It would be even better if I could generate something to do this automatically (stay tuned!) |
Hmm, I can't repro with those package versions so it might be another package I didn't think to check, or something going on with the Windows SDK. Could you share your full pubspec.lock? You can either push a branch with it checked in or upload it somewhere else I can grab. |
One thing that may have caused this is that I was previously using the third-party Windows installer, but upgraded to 1.24.2 using Chocolately. I'm not sure why, but I feel like that might be a factor here. |
that could be a factor... If you add a local override for We'd hope that the SDK directory found there lines up with the |
I don't see any actionable item here, so I'm closing. Please re-open if you can reproduce. |
I am experiencing the same issue using beta version trying to build https://github.com/brianegan/flutter_architecture_samples/tree/master/example/built_redux |
dart tools/build.dart |
The build.dart script in the built_redux example is using an old version of build_runner that might not work on the latest sdks. |
@fmatuszewski You'll want to contact the authors of that repository and ask them to upgrade. |
Thanks a lot. actually I use centos 7 and previously I have build dartsdk from sources from develpment branch. I solved this issue by downloading compiled sources from here https://www.dartlang.org/install/archive |
this version worked for me 2.0.0-dev.35.0 (ref 654f509) |
Thanks! |
Hi, experiencing a rather cryptic error, the cause of which I am having a tough time of diagnosing.
Here is my project: https://github.com/thosakwe/lsp4dart
It's got nothing in it except for
tool/
boilerplate and two files which will eventually contain serializable classes.When I run
tool/build.dart
, I get the following error:I've run into this error with both of the following generators, in separate projects:
owl_codegen
angel_serialize_generator
So I am assuming there is some underlying issue that I am missing somewhere. I get this error both with
source_gen@0.5.5
andsource_gen@0.6.0
. Haven't tried any versions in between.Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: