-
Notifications
You must be signed in to change notification settings - Fork 280
Unable to spawn isolate in 4.0.0-b1
#916
Comments
Here is the solution I do to temporarily resolve the issue, for long term, I think need some source code update.
u can use
All these projects can be found on git, or if u After you get the project, personally suggest you place in
Then, you need to open
Then, you need to open
Then, you need to open
After that, u should able to run your Hopefully the project will update very soon. It is such a pain and time waste to find out all the dependencies and fix it in a manually way. |
The thing you do is a lot of work for not that big of a reward. All you have to do for the project to run (even with the lastest SDK is to clone it localy and activate the aqueduct from the source directory). |
anyone to care to provide some more details on how to do this? |
What I did was: Execute this inside the directory you want Aqueduct to be downloaded -> I, for example, did it in a different directory, alongside my project:
Then, in your project's
Then in your project you can execute all commands with
All of this is what @Reductions suggested and worked perfectly. |
@Axort thank you for your reply. Did you downgrade dart SDK for this? got everthing running 2 weeks ago after lots of fiddling, but was probably stilll on an older dart SDK. I had to reinstall dart and now I can't get aqueduct working. I do exactly as you describe.
then pub run aqueduct serve:
|
Did anyone encounter this issue:
aqueduct db generate
-- Aqueduct CLI Version: 4.0.0-b1
-- Aqueduct project version: 4.0.0-b1
Replaying versions: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47...
*** Uncaught error
IsolateSpawnException: Unable to spawn isolate: ../../../../../../../../.pub-cache/hosted/pub.dartlang.org/isolate_executor-2.0.2+3/lib/src/source_generator.dart:6:8: Error: Error when reading '../../../../../../../../.pub-cache/hosted/pub.dartlang.org/analyzer-0.41.0/lib/analyzer.dart': No such file or directory
import 'package:analyzer/analyzer.dart';
^
../../../../../../../../.pub-cache/hosted/pub.dartlang.org/isolate_executor-2.0.2+3/lib/src/source_generator.dart:54:17: Error: Type 'ClassDeclaration' not found.
static Future _getClass(Type type) async {
^^^^^^^^^^^^^^^^
../../../../../../../../.pub-cache/hosted/pub.dartlang.org/isolate_executor-2.0.2+3/lib/src/source_generator.dart:57:22: Error: Method not found: 'parseDartFile'.
final fileUnit = parseDartFile(uri.toFilePath(windows: Platform.isWindows));
^^^^^^^^^^^^^
../../../../../../../../.pub-cache/hosted/pub.dartlang.org/isolate_executor-2.0.2+3/lib/src/source_generator.dart:61:28: Error: 'ClassDeclaration' isn't a type.
.where((u) => u is ClassDeclaration)
^^^^^^^^^^^^^^^^
../../../../../../../../.pub-cache/hosted/pub.dartlang.org/isolate_executor-2.0.2+3/lib/src/source_generator.dart:62:28: Error: 'ClassDeclaration' isn't a type.
.map((cu) => cu as ClassDeclaration)
^^^^^^^^^^^^^^^^
**** Stacktrace
The text was updated successfully, but these errors were encountered: