cabo / kramdown-rfc

An XML2RFC (RFC799x) backend for Thomas Leitner's kramdown markdown parser
MIT License
195 stars 83 forks source link

Suppress unneeded "Ignoring" messages #214

Open paulehoffman opened 1 year ago

paulehoffman commented 1 year ago

Running 1.71. on a Mac under Sonoma yields the following, before successfully completing and making a nice XML file. These are due to the fact that the Mac's Ruby is older than what is supposedly needed for many of the libraries.

It would be nice to suppress these unless they are actually going to prevent kramdown-rfc to fail.

Ignoring bigdecimal-3.1.3 because its extensions are not built. Try: gem pristine bigdecimal --version 3.1.3
Ignoring bigdecimal-3.1.2 because its extensions are not built. Try: gem pristine bigdecimal --version 3.1.2
Ignoring date-3.2.2 because its extensions are not built. Try: gem pristine date --version 3.2.2
Ignoring dbm-1.1.0 because its extensions are not built. Try: gem pristine dbm --version 1.1.0
Ignoring etc-1.3.0 because its extensions are not built. Try: gem pristine etc --version 1.3.0
Ignoring fcntl-1.0.2 because its extensions are not built. Try: gem pristine fcntl --version 1.0.2
Ignoring fcntl-1.0.1 because its extensions are not built. Try: gem pristine fcntl --version 1.0.1
Ignoring fiddle-1.1.1 because its extensions are not built. Try: gem pristine fiddle --version 1.1.1
Ignoring fiddle-1.1.0 because its extensions are not built. Try: gem pristine fiddle --version 1.1.0
Ignoring io-console-0.5.11 because its extensions are not built. Try: gem pristine io-console --version 0.5.11
Ignoring json-2.6.3 because its extensions are not built. Try: gem pristine json --version 2.6.3
Ignoring json-2.6.2 because its extensions are not built. Try: gem pristine json --version 2.6.2
Ignoring libxml-ruby-4.1.1 because its extensions are not built. Try: gem pristine libxml-ruby --version 4.1.1
Ignoring libxml-ruby-4.0.0 because its extensions are not built. Try: gem pristine libxml-ruby --version 4.0.0
Ignoring libxml-ruby-3.2.4 because its extensions are not built. Try: gem pristine libxml-ruby --version 3.2.4
Ignoring openssl-3.1.0 because its extensions are not built. Try: gem pristine openssl --version 3.1.0
Ignoring psych-5.0.2 because its extensions are not built. Try: gem pristine psych --version 5.0.2
Ignoring psych-5.0.1 because its extensions are not built. Try: gem pristine psych --version 5.0.1
Ignoring psych-4.0.6 because its extensions are not built. Try: gem pristine psych --version 4.0.6
Ignoring racc-1.7.0 because its extensions are not built. Try: gem pristine racc --version 1.7.0
Ignoring racc-1.6.2 because its extensions are not built. Try: gem pristine racc --version 1.6.2
Ignoring racc-1.6.0 because its extensions are not built. Try: gem pristine racc --version 1.6.0
Ignoring strscan-3.0.6 because its extensions are not built. Try: gem pristine strscan --version 3.0.6
Ignoring strscan-3.0.5 because its extensions are not built. Try: gem pristine strscan --version 3.0.5
Ignoring strscan-3.0.4 because its extensions are not built. Try: gem pristine strscan --version 3.0.4
Ignoring zlib-3.0.0 because its extensions are not built. Try: gem pristine zlib --version 3.0.0
Ignoring zlib-2.1.1 because its extensions are not built. Try: gem pristine zlib --version 2.1.1
cabo commented 1 year ago

I don't have a Sonoma system yet, but I have seen these warnings. They point to half-installed gems. It is Ruby's gem subsystem that complains here, long before kramdown-rfc obtains control. You can actually run the "gem pristine..." commands to fix that; copy the above to the clipboard and then

pbpaste | sed 's/.*://' | sh -x

or so (untested).