nshipster / swiftsyntaxhighlighter Goto Github PK
View Code? Open in Web Editor NEWA syntax highlighter for Swift code that uses SwiftSyntax to generate Pygments-compatible HTML.
Home Page: https://nshipster.com/swiftsyntax/
License: MIT License
A syntax highlighter for Swift code that uses SwiftSyntax to generate Pygments-compatible HTML.
Home Page: https://nshipster.com/swiftsyntax/
License: MIT License
with the following error:
[8/9] Compiling SwiftSyntaxHighlighter SwiftSyntaxHighlighter.swift
[9/10] Compiling swift-highlight main.swift
ld: warning: dylib (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/lib_InternalSwiftSyntaxParser.dylib) was built for newer macOS version (10.12) than being linked (10.10)
[10/10] Linking swift-highlight
install: /private/tmp/swift-syntax-highlight-20201219-3997-1mtdrat/.build/release/swift-syntax-highlight: No such file or directory
make: *** [install] Error 71
I'm using Swift 5.3.2
I tried install SwiftSyntaxHighlighter by Carthage.
Here's my Cartfile:
github "NSHipster/SwiftSyntaxHighlighter" ~> 0.0.1
Then I run Carthage update
and get this error(every times):
$ carthage update
*** Fetching SwiftSyntaxHighlighter
*** Checking out SwiftSyntaxHighlighter at "0.0.2"
*** xcodebuild output can be found in /var/folders/jf/kqw7xjn51m1b2jfg6956k3t00000gr/T/carthage-xcodebuild.hxbd2e.log
*** Skipped building SwiftSyntaxHighlighter due to the error:
Dependency "SwiftSyntaxHighlighter" has no shared framework schemes
If you believe this to be an error, please file an issue with the maintainers at https://github.com/NSHipster/SwiftSyntaxHighlighter/issues/new
SwiftSyntaxHighlighter/Sources/TokenizationSchemes/Xcode/Xcode.swift
Lines 15 to 33 in dca53e3
In this code, the where
clause only applies to the .leftSquareBracket
case, but not all (say) members are types. Beyond that, though, the capitalized
property lowercases all further letters, meaning something like "UnsafePointer" wouldn't pass the test.
Added SwiftSyntaxHighlighter using SPM in new macOS project and got error:
dyld: Library not loaded: @rpath/lib_InternalSwiftSyntaxParser.dylib
Referenced from: {USER_FOLDER}/Library/Developer/Xcode/DerivedData/SwiftSyntaxMac-dcedkjjsloqegmatufrxjfbzzxub/Build/Products/Debug/SwiftSyntaxMac.app/Contents/MacOS/SwiftSyntaxMac
Reason: image not found
Also found similar problems in other projects:
realm/SwiftLint#3105
uber/mockolo#108
Couldn't find solution.
Xcode Version 11.4.1 (11E503a)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.