Skip to content
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

[SR-2213] [sphinx] Could not lex literal_block as "swift". #44820

Closed
drewcrawford opened this issue Jul 29, 2016 · 0 comments
Closed

[SR-2213] [sphinx] Could not lex literal_block as "swift". #44820

drewcrawford opened this issue Jul 29, 2016 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@drewcrawford
Copy link
Contributor

Previous ID SR-2213
Radar None
Original Reporter @drewcrawford
Type Bug
Status Resolved
Resolution Duplicate
Environment

OSX 10.11.6 (15G31)
swift-3.0-PREVIEW-3

Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: 90af977f596ab62befd6d6848d5cf97f

duplicates:

  • SR-620 Building Documentation with Sphinx 1.3.5 fails: Could not parse literal_block as "swift"

Issue Description:

When building Swift, i get the following error:

Running Sphinx v1.4.5
loading pickled environment... not yet created
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 74 source files that are out of date
updating environment: 74 added, 0 changed, 0 removed
reading sources... [  1%] ABI
reading sources... [  2%] ARCOptimization
reading sources... [  4%] AccessControl
reading sources... [  5%] AccessControlInStdlib
reading sources... [  6%] Arrays
reading sources... [  8%] CallingConvention
reading sources... [  9%] DebuggingTheCompiler
reading sources... [ 10%] DependencyAnalysis
reading sources... [ 12%] DriverInternals
reading sources... [ 13%] DriverParseableOutput
reading sources... [ 14%] ErrorHandling
reading sources... [ 16%] ErrorHandlingRationale
reading sources... [ 17%] FailableInitializers
reading sources... [ 18%] Generics
reading sources... [ 20%] GitWorkflows
reading sources... [ 21%] HighLevelSILOptimizations
reading sources... [ 22%] Import
reading sources... [ 24%] IndexInvalidation
reading sources... [ 25%] InitializerProblems
reading sources... [ 27%] Lexicon
reading sources... [ 28%] LibraryEvolution
reading sources... [ 29%] Literals
reading sources... [ 31%] LogicalObjects
reading sources... [ 32%] Modules
reading sources... [ 33%] MutationModel
reading sources... [ 35%] ObjectInitialization
reading sources... [ 36%] OptimizationTips
reading sources... [ 37%] PatternMatching
reading sources... [ 39%] SIL
reading sources... [ 40%] SequencesAndCollections
reading sources... [ 41%] Serialization
reading sources... [ 43%] StdlibAPIGuidelines
reading sources... [ 44%] StdlibRationales
reading sources... [ 45%] StoredAndComputedVariables
reading sources... [ 47%] StringDesign
reading sources... [ 48%] Testing
reading sources... [ 50%] TextFormatting
reading sources... [ 51%] TransparentAttr
reading sources... [ 52%] TypeChecker
reading sources... [ 54%] archive/LangRefNew
reading sources... [ 55%] archive/NamespaceLevelVarsAndTopLevelCode
reading sources... [ 56%] archive/Objective-CInteroperability
reading sources... [ 58%] archive/Resilience
reading sources... [ 59%] contents
reading sources... [ 60%] proposals/Accessors
reading sources... [ 62%] proposals/ArrayBridge
reading sources... [ 63%] proposals/AttrC
reading sources... [ 64%] proposals/CPointerArgumentInterop
reading sources... [ 66%] proposals/CPointerInteropLanguageModel
reading sources... [ 67%] proposals/Concurrency
reading sources... [ 68%] proposals/DeclarationTypeChecker
reading sources... [ 70%] proposals/EnumStyle
reading sources... [ 71%] proposals/Enums
reading sources... [ 72%] proposals/Initialization
reading sources... [ 74%] proposals/InitializerInheritance
reading sources... [ 75%] proposals/InoutCOWOptimization
reading sources... [ 77%] proposals/Inplace
reading sources... [ 78%] proposals/ObjCInteroperation
reading sources... [ 79%] proposals/OptimizerEffects
reading sources... [ 81%] proposals/OptionSets
reading sources... [ 82%] proposals/RemoteMirrors
reading sources... [ 83%] proposals/TypeState
reading sources... [ 85%] proposals/ValueSemantics
reading sources... [ 86%] proposals/WholeModuleOptimization
reading sources... [ 87%] proposals/archive/MemoryAndConcurrencyModel
reading sources... [ 89%] proposals/archive/ProgramStructureAndCompilationModel
reading sources... [ 90%] proposals/archive/UnifiedFunctionSyntax
reading sources... [ 91%] proposals/rejected/BridgingContainerProtocolsToClassClusters
reading sources... [ 93%] proposals/rejected/ClassConstruction
reading sources... [ 94%] proposals/rejected/Clonable
reading sources... [ 95%] proposals/rejected/Constructors
reading sources... [ 97%] proposals/rejected/KeywordArguments
reading sources... [ 98%] proposals/valref
reading sources... [100%] weak

looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [  1%] ABI

Warning, treated as error:
/Users/drew/Code/swift-osx/swift/docs/ABI.rst:56: WARNING: Could not lex literal_block as "swift". Highlighting skipped.

The workaround is to uninstall sphinx when compiling Swift.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

1 participant