Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ysoftware/xcodevim
Parses .xcactivitylog build result of Xcode, ready to be used with VIM.
https://github.com/ysoftware/xcodevim
vim xcactivitylog xcode
Last synced: 3 months ago
JSON representation
Parses .xcactivitylog build result of Xcode, ready to be used with VIM.
- Host: GitHub
- URL: https://github.com/ysoftware/xcodevim
- Owner: ysoftware
- License: mit
- Created: 2024-08-25T15:22:26.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-08-28T11:24:07.000Z (5 months ago)
- Last Synced: 2024-10-11T06:01:41.519Z (3 months ago)
- Topics: vim, xcactivitylog, xcode
- Language: C
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Parser of .xcactivitylog files
Provides error messages from Xcode, ready to be used with VIM.
### Build and Run
```console
$ clang -o app.exe src/main.c -lz -O3$ ./app.exe MyApp
$ ./app.exe MyApp -d
```### Explanation
Latest modified .xcactivitylog file found inside will by analysed.
Project name argument is required to narrow the scope of search inside derived data:
`~/Library/Developer/Xcode/DerivedData/[project_name]*/Logs/Build/`
#
In VIM, you can populate the quickfix buffer with error output by calling `:cexpr`, `:cgete` or another command.I put this in my .vimrc to bind this command to to **te**:
```viml
nnoremap e :cgete system('~/XcodeVim/app.exe MyApp'):copen
```Example of what you get in quickfix:
```console
file:///Users/username/MyFile.swift:50:32
|| Value of type 'MyApp' has no member 'bork'
||
```
#
Pass flag -d to dump the whole parsed log as log-dump.txt.
Double values are not parsed currently, but if anybody wants to implement it, it should be quite easy.
Here is an example of the output:
```
[type: "int", value: 11]
[type: "className", index: 1, value: "IDEActivityLogSection"]
[type: "classInstance", value: "IDEActivityLogSection"]
[type: "int", value: 0]
[type: "string", length: 39, value: "Xcode.IDEActivityLogDomainType.BuildLog"]
[type: "string", length: 30, value: "Build C24MobileSimOnly-Example"]
[type: "string", length: 30, value: "Build C24MobileSimOnly-Example"]
[type: "double", value: not parsed]
[type: "double", value: not parsed]
[type: "array", count: 25]
[type: "classInstance", value: "IDEActivityLogSection"]
[type: "int", value: 1]
```