Unexpected token at ''
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 36/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- objective-c, ruby, swift
- Ambito
- testing-qa
Direzione di ricerca
Start with Slather::Project#pathnames_per_binary in lib/slather/project.rb:135, where the stack trace shows JSON parsing fails after coverage loading reports no data for the binary. Check how the coverage command handles that failed load and identify why the JSON input is empty. Done means the failure is reported or handled clearly for this Xcode coverage case; the issue gives no reproduction project or test to run.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi,
I'm trying to use slather to convert Xcode coverage output to Cobertura XML format.
The project contains both objective-c and swift files.
The output from Xcode seems OK, there is the profdata file which is not empty, also the .gcdo, .dia etc files...
But slather ends up with the below error:
Slathering...
Processing coverage file: /Users/marcbiosca/Library/Developer/Xcode/DerivedData/MobileSDK-cdwqzqnpwqkarzdkewkdznfastpf/Build/ProfileData/21968B43-AFA4-4330-B505-45D1D0DB1F57/Coverage.profdata
Against binary files:
/Users/marcbiosca/Library/Developer/Xcode/DerivedData/MobileSDK-cdwqzqnpwqkarzdkewkdznfastpf/Build/Products/PlotDebug-iphonesimulator/libSelligentMobile.a
error: /Users/marcbiosca/Library/Developer/Xcode/DerivedData/MobileSDK-cdwqzqnpwqkarzdkewkdznfastpf/Build/Products/PlotDebug-iphonesimulator/libSelligentMobile.a: Failed to load coverage: No coverage data found
error: Could not load coverage information
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/json/common.rb:156:in 'parse': 767: unexpected token at '' (JSON::ParserError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/json/common.rb:156:in 'parse'
from /Library/Ruby/Gems/2.6.0/gems/slather-2.7.2/lib/slather/project.rb:135:in 'pathnames_per_binary'
from /Library/Ruby/Gems/2.6.0/gems/slather-2.7.2/lib/slather/project.rb:124:in 'block in profdata_coverage_files'
from /Library/Ruby/Gems/2.6.0/gems/slather-2.7.2/lib/slather/project.rb:123:in 'each'
from /Library/Ruby/Gems/2.6.0/gems/slather-2.7.2/lib/slather/project.rb:123:in 'profdata_coverage_files'
from /Library/Ruby/Gems/2.6.0/gems/slather-2.7.2/lib/slather/project.rb:98:in 'coverage_files'
from /Library/Ruby/Gems/2.6.0/gems/slather-2.7.2/lib/slather/coverage_service/simple_output.rb:17:in 'post'
from /Library/Ruby/Gems/2.6.0/gems/slather-2.7.2/lib/slather/command/coverage_command.rb:101:in 'post'
from /Library/Ruby/Gems/2.6.0/gems/slather-2.7.2/lib/slather/command/coverage_command.rb:61:in 'execute'
from /Library/Ruby/Gems/2.6.0/gems/clamp-1.3.2/lib/clamp/command.rb:66:in 'run'
from /Library/Ruby/Gems/2.6.0/gems/clamp-1.3.2/lib/clamp/subcommand/execution.rb:18:in 'execute'
from /Library/Ruby/Gems/2.6.0/gems/clamp-1.3.2/lib/clamp/command.rb:66:in 'run'
from /Library/Ruby/Gems/2.6.0/gems/clamp-1.3.2/lib/clamp/command.rb:140:in 'run'
from /Library/Ruby/Gems/2.6.0/gems/slather-2.7.2/bin/slather:17:in '<top (required)>'
from /usr/local/bin/slather:23:in 'load'
from /usr/local/bin/slather:23:in '<main>'
Any idea what could go wrong here?
- Lingua principale
- Ruby
- Stelle
- 1.6k
- Fork
- 239
- Merge medio
- 10h 19m
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SlatherOrg/slather
-
2.8.6: NoMethodError "undefined method 'first'" in profdata_coverage_dir whenever --scheme is usedForse già presa @MirekNalepa l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
SlatherOrg/slather#586 · 3 commenti · 4 reazioni ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
SlatherOrg/slather#582 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
SlatherOrg/slather#580 · 9 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 56/100
SlatherOrg/slather#578 · 3 commenti · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
SlatherOrg/slather#577 ·
Tutte le issue di SlatherOrg/slather
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 8 giorni
-
bug: "Conversation information" accordion renders blank with 0px height when conversation has no attributesForse già presa @gihovani l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
`hanami generate repository` would be a nice alias for `hanami generate repo`Forse già presa @sandbergja l’ha presa oggi. Apertabug help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
hanami/hanami-cli#455 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
asciidoctor/asciidoctor#4882 · 4 commenti ·