"Generation failed" when generating docs with dartdoc - dart

I am trying to generate the documentation for a Flutter project I'm working on.
I'm using dartdoc in the folder of my project.
It's the dartdoc of the Dart SDK installed with Chocolatey (so it's not the Flutter one), which I saved in my system PATH.
dart --version gives Dart VM version: 2.0.0-dev.53.0 (Thu May 3 12:35:47 2018 +0200) on "windows_x64".
I get exactly the same error using Flutter's Dart's dartdoc, so running path_to_flutter\flutter\bin\cache\dart-sdk\bin\dartdoc.bat' in my project's directory.
My flutter --version is:
Flutter 0.3.2 • channel beta • https://github.com/flutter/flutter.git
Framework • revision 44b7e7d3f4 (3 weeks ago) • 2018-04-20 01:02:44 -0700
Engine • revision 09d05a3891
Tools • Dart 2.0.0-dev.48.0.flutter-fe606f890b
The output of dartdoc is, in both cases, after the parsing of all the project's files:
Generating documentation for 'pindery' into C:\Users\Edoardo Debenedetti\Documents\Tongji\Software Engineering\Progetto\pindery\doc\api\
parsing lib\catalogue\catalogue.dart...
parsing lib\catalogue\catalogue_element.dart...
[...]
Initialized dartdoc with 775 libraries in 61.7 seconds
documenting pindery
Generation failed: Bad state: Could not find "packageGraph.version" in given context
package:mustache4dart/mustache_context.dart 88 _MustacheContext._getInThisOrParent
package:mustache4dart/mustache_context.dart 78 _MustacheContext.field
package:mustache4dart/src/tokens.dart 169 _ExpressionToken.apply
package:mustache4dart/src/tokens.dart 247 _EscapeHtmlToken.apply
package:mustache4dart/src/tokens.dart 40 Token.call
package:mustache4dart/src/tmpl.dart 101 _Template._write
package:mustache4dart/src/tmpl.dart 76 _Template.call
package:mustache4dart/src/mustache.dart 11 render
package:mustache4dart/src/tokens.dart 211 _PartialToken.apply
package:mustache4dart/src/tokens.dart 40 Token.call
package:mustache4dart/src/tmpl.dart 101 _Template._write
package:mustache4dart/src/tmpl.dart 76 _Template.call
package:dartdoc/src/html/html_generator_instance.dart 287 HtmlGeneratorInstance._build
package:dartdoc/src/html/html_generator_instance.dart 171 HtmlGeneratorInstance.generatePackage
package:dartdoc/src/html/html_generator_instance.dart 90 HtmlGeneratorInstance._generateDocs
package:dartdoc/src/html/html_generator_instance.dart 36 HtmlGeneratorInstance.generate
===== asynchronous gap ===========================
dart:async _Completer.completeError
package:dartdoc/src/html/html_generator_instance.dart HtmlGeneratorInstance.generate
===== asynchronous gap ===========================
dart:async new Future.microtask
package:dartdoc/src/html/html_generator_instance.dart 34 HtmlGeneratorInstance.generate
package:dartdoc/src/html/html_generator.dart 107 HtmlGenerator.generate
===== asynchronous gap ===========================
dart:async new Future.microtask
package:dartdoc/src/html/html_generator.dart 73 HtmlGenerator.generate
package:dartdoc/dartdoc.dart 144 Dartdoc.generateDocs
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:dartdoc/dartdoc.dart 129 Dartdoc.generateDocs
E:\b\build\slave\dart-sdk-windows-dev\build\sdk\third_party\pkg\dartdoc\bin\dartdoc.dart 77 main.<fn>.<fn>
===== asynchronous gap ===========================
dart:async new Future.microtask
E:\b\build\slave\dart-sdk-windows-dev\build\sdk\third_party\pkg\dartdoc\bin\dartdoc.dart 76 main.<fn>.<fn>
dart:async runZoned
E:\b\build\slave\dart-sdk-windows-dev\build\sdk\third_party\pkg\dartdoc\bin\dartdoc.dart 76 main.<fn>
===== asynchronous gap ===========================
dart:async new Future.microtask
E:\b\build\slave\dart-sdk-windows-dev\build\sdk\third_party\pkg\dartdoc\bin\dartdoc.dart 75 main.<fn>
package:stack_trace Chain.capture
E:\b\build\slave\dart-sdk-windows-dev\build\sdk\third_party\pkg\dartdoc\bin\dartdoc.dart 75 main
Is it a problem of my project? How can I solve it?
Thank you very much.

Actually it is a bug, whose workaround is putting a version in the project's pubspec.yaml file.
E.g.
name: pindery
description: An amazing party app
version: 0.0.1-alpha0
[...]
In this way the documentation is succesfully generated.
You can see the issue on dartdoc's GitHub issues tracking page.

Related

Rails server command bug

I started a new ruby-on-rails project called "myrubyblog", changed directories to my project then launched rails server command, but the terminal then outputs me this after an incredible amount of lines of information I don't understand;
-- Other runtime information -----------------------------------------------
* Loaded script: bin/rails
* Loaded features:
0 enumerator.so
1 thread.rb
2 rational.so
3 complex.so
4 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/armv7l-linux-eabihf/enc/encdb.so
5 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/armv7l-linux-eabihf/enc/trans/transdb.so
6 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/armv7l-linux-eabihf/rbconfig.rb
7 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/compatibility.rb
8 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/defaults.rb
9 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/deprecate.rb
10 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/errors.rb
11 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/version.rb
12 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/requirement.rb
13 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/platform.rb
14 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/basic_specification.rb
15 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/stub_specification.rb
16 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/util/list.rb
17 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/armv7l-linux-eabihf/stringio.so
18 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/rfc2396_parser.rb
19 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/rfc3986_parser.rb
20 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/common.rb
21 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/generic.rb
22 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/ftp.rb
23 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/http.rb
24 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/https.rb
25 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/ldap.rb
26 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/ldaps.rb
27 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri/mailto.rb
28 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/uri.rb
29 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/specification.rb
30 /home/pi/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/exceptions.rb
... (up to 320 lines)
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Abandon
What is that supposed to mean?

Error compiling in Dart

I have a Dart with AngluarDart in local.
Ubuntu 16.04.2
DartSdk v1.23.0
"pub serve" seems work fine
$ pub serve
Loading source assets...
Loading angular2, dart_to_js_script_rewriter and dart_sass_transformer
transformers... (3.4s)
Serving xxx web on http://localhost:8080
Build completed successfully
But when I try to load the web into my browser I get this error:
[web] GET Served 3 cached assets.
[Info from Dart2JS]:
Compiling xxx|web/main.dart...
[Error from Dart2JS]:
web/main.dart:
The compiler crashed when compiling this element.
The compiler is broken.
When compiling the above element, the compiler crashed.
It is not possible to tell if this is caused by a problem in your program or not.
Regardless, the compiler should not crash.
The Dart team would greatly appreciate if you would take a moment to
report this problem at http://dartbug.com/new.
Please include the following information:
* the name and version of your operating system,
* the Dart SDK build number (build number could not be determined), and
* the entire message you see here (including the full stack trace
below as well as the source location above).
Build error:
Transform Dart2JS on xxx|web/main.dart threw error: The getter 'uses'
was called on null.
Receiver: null
Tried calling: uses
dart:core
Object.noSuchMethod
package:compiler_unsupported/src/dump_info.dart 576
DumpInfoTask.dumpInfoJson
package:compiler_unsupported/src/dump_info.dart 536
DumpInfoTask.dumpInfo.<fn>
package:compiler_unsupported/src/common/tasks.dart 63
CompilerTask.measure
package:compiler_unsupported/src/dump_info.dart 533
DumpInfoTask.dumpInfo
package:compiler_unsupported/src/compiler.dart 703
Compiler.compileLoadedLibraries.<fn>
package:compiler_unsupported/src/common/tasks.dart 176
CompilerTask.measureSubtask
package:compiler_unsupported/src/compiler.dart 582
Compiler.compileLoadedLibraries
package:compiler_unsupported/src/compiler.dart 471
Compiler.runInternal
===== asynchronous gap ===========================
package:compiler_unsupported/src/compiler.dart 310 Compiler.run.
<fn>.<fn>
dart:async
Future.Future.sync
package:compiler_unsupported/src/compiler.dart 310 Compiler.run.
<fn>
package:compiler_unsupported/src/common/tasks.dart 176
CompilerTask.measureSubtask
package:compiler_unsupported/src/compiler.dart 307 Compiler.run
package:compiler_unsupported/src/apiimpl.dart 245 CompilerImpl.run.<fn>.<fn>
Build completed with 2 errors.
[web] GET main.dart.js → Could not find asset xxx|web/main.dart.js.
[web] GET favicon.ico → (cached) xxx|web/favicon.ico
I tried to get DartSDK again, revised the PATH...
What can be the problem?
I solved the problem downgrading Dart SDK version.
From 1.23.0 to 1.21.1
Now the complilator do his job without problems.

Error using library which uses DartSON

I built a simple Dart library to wrap the Mastodon (social platform) API - (source at https://github.com/mykdavies/Mastodon).
I can use the library locally in another project by adding the appropriate dependency to its pubspec.yaml:
dependencies:
...
mastodon:
path: /Users/mike/Documents/Development/dart/mastodon
and everything works fine.
I have published it to pub (https://pub.dartlang.org/packages/mastodon), but when I change my pubspec to use this version:
dependencies:
...
mastodon:
^0.1.0
I get a problem with the Dartson transformers. Can anyone help me understand what's going wrong?
Thanks, Michael
Full pubspec:
name: rssToot
description: A sample command-line application.
version: 0.0.1
environment:
sdk: '>=1.20.1 <2.0.0'
dependencies:
dart_feed: "^0.0.4"
oauth2: ^1.0.2
mime: ^0.9.2
mastodon:
^0.1.0
dev_dependencies:
test: ^0.12.0
Full stack-trace:
Resolving dependencies...
> mastodon 0.1.0 (was 0.0.5)
Downloading mastodon 0.1.0...
Changed 1 dependency!
Precompiling dependencies...
Loading source assets...
Loading dartson transformers...
Transform Dartson on mastodon|lib/src/mastodon_base.dart threw error: The getter 'name' was called on null.
Receiver: null
Tried calling: name
dart:core-patch/object_patch.dart 43 Object._noSuchMethod
dart:core-patch/object_patch.dart 47 Object.noSuchMethod
package:dartson/transformer.dart 218 FileCompiler.buildEntityMap.<fn>
dart:collection/list.dart 63 Object&ListMixin.forEach
package:dartson/transformer.dart 213 FileCompiler.buildEntityMap
package:dartson/transformer.dart 132 FileCompiler._prepareEntities.<fn>
dart:core-patch/growable_array.dart 256 List.forEach
package:dartson/transformer.dart 131 FileCompiler._prepareEntities
package:dartson/transformer.dart 104 FileCompiler.build
package:dartson/transformer.dart 55 DartsonTransformer.apply.<fn>
dart:async/zone.dart 1371 _RootZone.runUnary
dart:async/future_impl.dart 129 _FutureListener.handleValue
dart:async/future_impl.dart 631 _Future._propagateToListeners.handleValueCallback
dart:async/future_impl.dart 660 _Future._propagateToListeners
dart:async/future_impl.dart 474 _Future._completeWithValue
dart:async/future_impl.dart 522 _Future._asyncComplete.<fn>
dart:async/schedule_microtask.dart 41 _microtaskLoop
dart:async/schedule_microtask.dart 50 _startMicrotaskLoop
dart:isolate-patch/isolate_patch.dart 99 _runPendingImmediateCallback
dart:isolate-patch/isolate_patch.dart 152 _RawReceivePortImpl._handleMessage
dart:core Object.noSuchMethod
package:dartson/transformer.dart 218 FileCompiler.buildEntityMap.<fn>
dart:collection Object&ListMixin.forEach
package:dartson/transformer.dart 213 FileCompiler.buildEntityMap
package:dartson/transformer.dart 132 FileCompiler._prepareEntities.<fn>
dart:core List.forEach
package:dartson/transformer.dart 131 FileCompiler._prepareEntities
package:dartson/transformer.dart 104 FileCompiler.build
package:dartson/transformer.dart 55 DartsonTransformer.apply.<fn>
package:pub/src/entrypoint.dart 269 Entrypoint._precompileDependencies.<fn>
===== asynchronous gap ===========================
package:pub/src/log.dart 408 progress
package:pub/src/entrypoint.dart 254 Entrypoint._precompileDependencies
===== asynchronous gap ===========================
package:pub/src/entrypoint.dart 226 Entrypoint.acquireDependencies
===== asynchronous gap ===========================
package:pub/src/command/get.dart 38 GetCommand.run
package:args/command_runner.dart 194 CommandRunner.runCommand
===== asynchronous gap ===========================
package:pub/src/command_runner.dart 168 PubCommandRunner.runCommand.<fn>
dart:async Future.Future.sync
package:pub/src/utils.dart 99 captureErrors.<fn>
dart:async runZoned
package:pub/src/utils.dart 118 captureErrors
package:pub/src/command_runner.dart 168 PubCommandRunner.runCommand
===== asynchronous gap ===========================
package:pub/src/command_runner.dart 117 PubCommandRunner.run
===== asynchronous gap ===========================
/b/build/slave/dart-sdk-mac-stable/build/sdk/third_party/pkg/pub/bin/pub.dart 8 main
Process finished with exit code 0
Try to do a clean checkout of your git repository locally, and use the initialization there. It may be possible that for some reason the dartson transformer didn't pick up a change from 0.0.5 -> 0.1.0, used some cached value, and didn't complain while you were developing it.

travis " Segmentation fault " but works fine locally

there, I ran into a 'Segmentation fault' error when using travis-ci for my project : IPython-Dashboard
there is no error msg and it works fine on local, I feel a little confusing. any one can give any idea on fixing this, thanks.
here is the travis build log on cloud:
travis-log
$ nosetests --with-coverage --cover-package=dashboard
../home/travis/build.sh: line 45: 3187 Segmentation fault (core dumped)
nosetests --with-coverage --cover-package=dashboard
The command "nosetests --with-coverage --cover-package=dashboard" exited with 139.
here is the build log on local [osx]
taotao#mac007:~/Desktop/github/IPython-Dashboard$sudo nosetests --with-coverage --cover-package=dashboard
.../Users/chenshan/Desktop/github/IPython-Dashboard/dashboard/tests/testCreateData.py:78: Warning: Can't create database 'IPD_data'; database exists
conn.cursor().execute('CREATE DATABASE IF NOT EXISTS {};'.format(config.sql_db))
/Library/Python/2.7/site-packages/pandas/io/sql.py:599: FutureWarning: The 'mysql' flavor with DBAPI connection is deprecated and will be removed in future versions. MySQL will be further supported with SQLAlchemy engines.
warnings.warn(_MYSQL_WARNING, FutureWarning)
...
Name Stmts Miss Cover Missing
---------------------------------------------------------------------
dashboard.py 13 0 100%
dashboard/client.py 1 0 100%
dashboard/client/sender.py 11 3 73% 26-27, 33
dashboard/conf.py 0 0 100%
dashboard/conf/config.py 29 0 100%
dashboard/server.py 0 0 100%
dashboard/server/resources.py 0 0 100%
dashboard/server/resources/dash.py 35 10 71% 36, 55-56, 67-69, 86-89
dashboard/server/resources/home.py 40 12 70% 25, 28-30, 83-91
dashboard/server/resources/sql.py 27 11 59% 30, 52-75
dashboard/server/resources/status.py 8 1 88% 19
dashboard/server/resources/storage.py 13 5 62% 26-28, 43-47
dashboard/server/utils.py 79 18 77% 20-24, 78-80, 82-83, 86, 96, 99-100, 126-127, 140-142
dashboard/server/views.py 21 1 95% 16
---------------------------------------------------------------------
TOTAL 277 61 78%
----------------------------------------------------------------------
Ran 6 tests in 4.600s
OK
taotao#mac007:~/Desktop/github/IPython-Dashboard$

Xcode crashes on launch

I am developing an Application for iOS and I changed nothing in the Application. But at a restart of my Mac, Xcode crashes every time.
Don't know if this is important, but my spotlight can't find any applications and also when I open the finder and using the shortcut cmd + shift + H I see a white window.
Xcode isn't starting anymore and throws this error:
Process: Xcode [1346]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 7.2 (9548)
Build Info: IDEFrameworks-9548000000000000~7
App Item ID: 497799835
App External ID: 814662604
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [1346]
Date/Time: 2015-12-24 11:01:44.753 +0100
OS Version: Mac OS X 10.11.2 (15C50)
Report Version: 11
Time Awake Since Boot: 4000 seconds
System Integrity Protection: enabled
Crashed Thread: 4 Dispatch queue: DVTFilePathEventWatcher - event queue
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0:
-->
__TEXT 0000000108a5a000-0000000108a5e000 [ 16K] r-x/rwx SM=COW /Applications/Xcode.app/Contents/MacOS/Xcode
Application Specific Information:
ProductBuildVersion: 7C68
Thread 0:: Dispatch queue: DVTFilePath cache derivation lock for key DVTFilePathKey_SortedDirectoryContents
0 libobjc.A.dylib 0x00007fff8df27aa0 search_method_list(method_list_t const*, objc_selector*) + 2
1 libobjc.A.dylib 0x00007fff8df28d76 lookUpImpOrForward + 413
2 libobjc.A.dylib 0x00007fff8df22591 objc_msgSend + 209
3 com.apple.dt.DVTFoundation 0x0000000108a741f8 -[DVTFileSystemVNode addCachedEntriesFromDictionary:] + 215
4 com.apple.dt.DVTFoundation 0x0000000108bd2e2d __33-[DVTFilePath cachedValueForKey:]_block_invoke549 + 245
5 libdispatch.dylib 0x00007fff9fcbd33f _dispatch_client_callout + 8
6 libdispatch.dylib 0x00007fff9fcbe926 _dispatch_barrier_sync_f_invoke + 74
7 com.apple.dt.DVTFoundation 0x0000000108cd1005 DVTDispatchBarrierSync + 62
8 com.apple.dt.DVTFoundation 0x0000000108a69627 -[DVTDispatchLock performLockedBlock:] + 116
9 com.apple.dt.DVTFoundation 0x0000000108a715b0 -[DVTFilePath cachedValueForKey:] + 1802
10 com.apple.dt.DVTFoundation 0x0000000108a70afc -[DVTToolchainRegistry scanSearchPathAndRegisterToolchains:] + 563
11 com.apple.dt.IDEFoundation 0x00000001097d1a66 IDEInitialize + 655
12 com.apple.dt.IDEKit 0x0000000109ecdf7c -[IDEApplicationController applicationWillFinishLaunching:] + 708
13 com.apple.CoreFoundation 0x00007fffa18fa70c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
14 com.apple.CoreFoundation 0x00007fffa18fa67f ___CFXRegistrationPost_block_invoke + 63
15 com.apple.CoreFoundation 0x00007fffa18f9d47 _CFXRegistrationPost + 407
16 com.apple.CoreFoundation 0x00007fffa18f9ab2 ___CFXNotificationPost_block_invoke + 50
17 com.apple.CoreFoundation 0x00007fffa18f3d42 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1922
18 com.apple.CoreFoundation 0x00007fffa17e2145 _CFXNotificationPost + 693
19 com.apple.Foundation 0x00007fff9ef36921 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
20 com.apple.dt.DVTFoundation 0x0000000108c6cf55 -[NSNotificationCenter(DVTNSNotificationCenterAdditions) _dvt_postNotificationName:object:userInfo:] + 698
21 com.apple.AppKit 0x00007fff9db412c2 -[NSApplication finishLaunching] + 354
22 com.apple.dt.DVTKit 0x0000000109275f62 -[DVTApplication finishLaunching] + 149
23 com.apple.AppKit 0x00007fff9db40e05 -[NSApplication run] + 231
24 com.apple.AppKit 0x00007fff9dac3520 NSApplicationMain + 1176
25 libdyld.dylib 0x00007fff9a8605ad start + 1
Could this be an issue due to Permissions conflicts?
ANSWER:
After I changed the rights from my OSX-Drive to everyone can write&read. Everything worked. But I knew that this is a temporary solution, so I decided to reinstall my MAC and everything was fine.
Delete ~/Library/Developer/Xcode/DerivedData by running this command in terminal:
rm -r ~/Library/Developer/XCode/DerivedData
If that doesnt work, At this point and with given info, all I could recommend to delete and reinstall Xcode.
If the delete of ~/Library/Developer/Xcode/DerivedData is not working for you, try this steps to remove xcuserdata:
open a Finder window and navigate to your project
right-click on the .xcodeproj OR .xcworkspace file
select Show Package Contents
a new window appears
delete a folder called xcuserdata
I had one where i selected a file that was quite large which crashed xcode when it tried to parse it. Then when i restarted it somehow it got set to load that file on start. Only way i saw was to temporarily rename the file that it was trying to load at start so it would load empty.
I'll recommend deleting xcuserdata: folder from both of your .xcodeproj & .xcworkspace file (open with Show Package Contents) and try again.
I hope this will work.
Ensure there are no issues with your SPM packages/dependencies.
This is simply another suggestion. I just spent some time debugging this on a fairly popular open source project.
My Xcode first crashed when I updated a SPM package, so I was fairly certain it was an issue with one of the future commits in that package or a SPM bug. I subscribe to Occam's Razor, so I started going through the changes in the commits.
After some time, I found a duplicate Swift Playground page delcaration in contents.xcplayground. I removed that single line, pushed the PR, and everything worked fine after that.
To be able to reopen the project:
Open project.pbxproj in your code editor of choice (e.g. vi, nano, emacs, atom, code).
Remove the offending package or packages from the /* Begin XCRemoteSwiftPackageReference section */ and /* Begin XCSwiftPackageProductDependency section */ sections.
Save the file and Xcode should now open.
Again, if your Xcode is immediately crashing when opening a project (and you last updated/auto-updated a SPM package) go through your packages.

Resources