Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Stagehand crash when compiling file:///$HOME/.pub-cache/global_packages/stagehand/bin/stagehand.dart.snapshot, #540

Closed
bigsam117 opened this issue Jun 22, 2018 · 1 comment

Comments

@bigsam117
Copy link

Hi,
After a new installation, stagehand doesn't work in any way
here the bash output:

sami@pop-os:~/Workspace/fancy_project$ stagehand console-full
Crash when compiling file:///home/sami/.pub-cache/global_packages/stagehand/bin/stagehand.dart.snapshot,
at character offset null:
Internal problem: Unhandled �' in analyzeQuote.
#0 internalProblem (package:front_end/src/fasta/problems.dart:30:3)
#1 unhandled (package:front_end/src/fasta/problems.dart:43:10)
#2 analyzeQuote (package:front_end/src/fasta/quote.dart:54:10)
#3 unescapeString (package:front_end/src/fasta/quote.dart:138:17)
#4 OutlineBuilder.endLiteralString (package:front_end/src/fasta/source/outline_builder.dart:329:12)
#5 Parser.parseSingleLiteralString (package:front_end/src/fasta/parser/parser.dart:4656:14)
#6 Parser.parseLiteralString (package:front_end/src/fasta/parser/parser.dart:4581:13)
#7 Parser.ensureLiteralString (package:front_end/src/fasta/parser/parser.dart:2753:12)
#8 Parser.parsePart (package:front_end/src/fasta/parser/parser.dart:949:13)
#9 Parser.parsePartOrPartOf (package:front_end/src/fasta/parser/parser.dart:936:14)
#10 Parser.parseTopLevelKeywordDeclaration (package:front_end/src/fasta/parser/parser.dart:581:16)
#11 Parser.parseTopLevelDeclarationImpl (package:front_end/src/fasta/parser/parser.dart:449:14)
#12 Parser.parseUnit (package:front_end/src/fasta/parser/parser.dart:329:15)
#13 SourceLoader.buildOutline (package:front_end/src/fasta/source/source_loader.dart:195:37)

#14 Loader.buildOutlines (package:front_end/src/fasta/loader.dart:176:13)

#15 KernelTarget.buildOutlines (package:front_end/src/fasta/kernel/kernel_target.dart:237:20)

#16 IncrementalCompiler.computeDelta. (package:front_end/src/fasta/incremental_compiler.dart:232:24)

#17 CompilerContext.runInContext.. (package:front_end/src/fasta/compiler_context.dart:118:46)
#18 new Future.sync (dart:async/future.dart:222:31)
#19 CompilerContext.runInContext. (package:front_end/src/fasta/compiler_context.dart:118:19)
#20 _rootRun (dart:async/zone.dart:1126:13)
#21 _CustomZone.run (dart:async/zone.dart:1023:19)
#22 _runZoned (dart:async/zone.dart:1518:10)
#23 runZoned (dart:async/zone.dart:1465:12)
#24 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:117:12)
#25 IncrementalCompiler.computeDelta (package:front_end/src/fasta/incremental_compiler.dart:102:20)

#26 IncrementalCompiler.compile (package:vm/incremental_compiler.dart:38:44)

#27 IncrementalCompilerWrapper.compileInternal (file:///tmp/tmpcU3f4j/dart-2.0.0-dev.64.1/dart/pkg/vm/bin/kernel_service.dart:158:28)

#28 Compiler.compile. (file:///tmp/tmpcU3f4j/dart-2.0.0-dev.64.1/dart/pkg/vm/bin/kernel_service.dart:132:39)
#29 new Future. (dart:async/future.dart:174:37)
#30 _rootRun (dart:async/zone.dart:1122:38)
#31 _CustomZone.run (dart:async/zone.dart:1023:19)
#32 _CustomZone.runGuarded (dart:async/zone.dart:925:7)
#33 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:965:23)
#34 _rootRun (dart:async/zone.dart:1126:13)
#35 _CustomZone.run (dart:async/zone.dart:1023:19)
#36 _CustomZone.bindCallback. (dart:async/zone.dart:949:23)
#37 Timer._createTimer. (dart:async/runtime/libtimer_patch.dart:21:15)
#38 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19)
#39 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
#40 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:165:12)

#0 internalProblem (package:front_end/src/fasta/problems.dart:30:3)
#1 unhandled (package:front_end/src/fasta/problems.dart:43:10)
#2 analyzeQuote (package:front_end/src/fasta/quote.dart:54:10)
#3 unescapeString (package:front_end/src/fasta/quote.dart:138:17)
#4 OutlineBuilder.endLiteralString (package:front_end/src/fasta/source/outline_builder.dart:329:12)
#5 Parser.parseSingleLiteralString (package:front_end/src/fasta/parser/parser.dart:4656:14)
#6 Parser.parseLiteralString (package:front_end/src/fasta/parser/parser.dart:4581:13)
#7 Parser.ensureLiteralString (package:front_end/src/fasta/parser/parser.dart:2753:12)
#8 Parser.parsePart (package:front_end/src/fasta/parser/parser.dart:949:13)
#9 Parser.parsePartOrPartOf (package:front_end/src/fasta/parser/parser.dart:936:14)
#10 Parser.parseTopLevelKeywordDeclaration (package:front_end/src/fasta/parser/parser.dart:581:16)
#11 Parser.parseTopLevelDeclarationImpl (package:front_end/src/fasta/parser/parser.dart:449:14)
#12 Parser.parseUnit (package:front_end/src/fasta/parser/parser.dart:329:15)
#13 SourceLoader.buildOutline (package:front_end/src/fasta/source/source_loader.dart:195:37)

#14 Loader.buildOutlines (package:front_end/src/fasta/loader.dart:176:13)

#15 KernelTarget.buildOutlines (package:front_end/src/fasta/kernel/kernel_target.dart:237:20)

#16 IncrementalCompiler.computeDelta. (package:front_end/src/fasta/incremental_compiler.dart:232:24)

#17 CompilerContext.runInContext.. (package:front_end/src/fasta/compiler_context.dart:118:46)
#18 new Future.sync (dart:async/future.dart:222:31)
#19 CompilerContext.runInContext. (package:front_end/src/fasta/compiler_context.dart:118:19)
#20 _rootRun (dart:async/zone.dart:1126:13)
#21 _CustomZone.run (dart:async/zone.dart:1023:19)
#22 _runZoned (dart:async/zone.dart:1518:10)
#23 runZoned (dart:async/zone.dart:1465:12)
#24 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:117:12)
#25 IncrementalCompiler.computeDelta (package:front_end/src/fasta/incremental_compiler.dart:102:20)

#26 IncrementalCompiler.compile (package:vm/incremental_compiler.dart:38:44)

#27 IncrementalCompilerWrapper.compileInternal (file:///tmp/tmpcU3f4j/dart-2.0.0-dev.64.1/dart/pkg/vm/bin/kernel_service.dart:158:28)

#28 Compiler.compile. (file:///tmp/tmpcU3f4j/dart-2.0.0-dev.64.1/dart/pkg/vm/bin/kernel_service.dart:132:39)
#29 new Future. (dart:async/future.dart:174:37)
#30 _rootRun (dart:async/zone.dart:1122:38)
#31 _CustomZone.run (dart:async/zone.dart:1023:19)
#32 _CustomZone.runGuarded (dart:async/zone.dart:925:7)
#33 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:965:23)
#34 _rootRun (dart:async/zone.dart:1126:13)
#35 _CustomZone.run (dart:async/zone.dart:1023:19)
#36 _CustomZone.bindCallback. (dart:async/zone.dart:949:23)
#37 Timer._createTimer. (dart:async/runtime/libtimer_patch.dart:21:15)
#38 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19)
#39 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
#40 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:165:12)

sami@pop-os:~/Workspace/fancy_project$

@chalin
Copy link
Contributor

chalin commented Jun 22, 2018

This is caused by dart-lang/pub#1932. If you are running stagehand from the command line, try this instead:

pub global run stagehand

@chalin chalin closed this as completed Jun 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants