CodeEditApp / CodeEditSourceEditor

A code editor view written in Swift powered by tree-sitter.
https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor
MIT License
517 stars 84 forks source link

How to choose only JSON methods when import this repo? #25

Closed Jinxiansen closed 2 years ago

Jinxiansen commented 2 years ago

When I tried to use CodeEditTetView on macOS, and only used to parse JSON, I found that it depends on many parsing libraries in other languages, is there a way to remove other libraries according to personal needs?

Because I only need methods related to json parsing.

image

Thanks!

lukepistrol commented 2 years ago

They get all bundled at build-time. Once you run the app only parsers for languages you actually have opened get instantiated (lazy-loaded).

Jinxiansen commented 2 years ago
image

Thanks for your response! When I import this repo, I got some errors.

lukepistrol commented 2 years ago

Fix incoming! STTextView implemented some non-backwards compatible features on Swift 5.7.

lukepistrol commented 2 years ago

Should compile now.

Jinxiansen commented 2 years ago

Got it, I need upgrade to Swift 5.7 version and try to it. Thanks so much!

lukepistrol commented 2 years ago

No need to update to Swift 5.7. We will wait a bit until we bump this since it is only available for the Xcode beta which not everyone has access to yet.

Jinxiansen commented 2 years ago

Okay, thanks!