Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninitialized constant Nanaimo::Writer::XMLWriter::Date #50

Open
gmazzo opened this issue Mar 13, 2020 · 3 comments
Open

uninitialized constant Nanaimo::Writer::XMLWriter::Date #50

gmazzo opened this issue Mar 13, 2020 · 3 comments

Comments

@gmazzo
Copy link

gmazzo commented Mar 13, 2020

I'm trying to setup a CD environment using JRuby, but I'm getting this error while trying to validate a pod:

uninitialized constant Nanaimo::Writer::XMLWriter::Date
Did you mean?  Nanaimo::Writer::XMLWriter::Date

The same PodSpec validates fine if I run the command com MacOS native Ruby. Any clues why this Date constant may not be loading?

Error log

Validating spec
 -> MyPod (0.2.1)
    - ERROR | [iOS] unknown: Encountered an unknown error (uninitialized constant Nanaimo::Writer::XMLWriter::Date
Did you mean?  Nanaimo::Writer::XMLWriter::Date
               Date
               Nanaimo::Data
               Data) during validation.

pod env

   CocoaPods : 1.9.1
        Ruby : jruby 9.2.11.0 (2.5.7) 2020-03-02 612d7a05a6 Java HotSpot(TM) 64-Bit Server VM 25.212-b10 on 1.8.0_212-b10 +jit [darwin-x86_64]
    RubyGems : 3.0.6
        Host : Mac OS X 10.15.3 (19D76)
       Xcode : 11.3.1 (11C504)
         Git : git version 2.21.1 (Apple Git-122.3)
Ruby lib dir : uri:classloader:/META-INF/jruby.home/lib
Repositories : 

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.4.1
cocoapods-try         : 1.1.0

gem list

*** LOCAL GEMS ***
activesupport (4.2.11.1)
algoliasearch (1.27.1)
atomos (0.1.3)
CFPropertyList (3.0.2)
claide (1.0.3)
cmath (default: 1.0.0)
cocoapods (1.9.1)
cocoapods-core (1.9.1)
cocoapods-deintegrate (1.0.4)
cocoapods-downloader (1.3.0)
cocoapods-plugins (1.0.0)
cocoapods-search (1.0.0)
cocoapods-stats (1.1.0)
cocoapods-trunk (1.4.1)
cocoapods-try (1.1.0)
colored2 (3.1.2)
concurrent-ruby (1.1.6)
csv (default: 1.0.0)
did_you_mean (1.2.0)
escape (0.0.4)
ethon (0.12.0)
ffi (1.12.2 java)
fileutils (default: 1.1.0)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
httpclient (2.8.3)
i18n (0.9.5)
ipaddr (default: 1.2.0)
jar-dependencies (default: 0.4.0)
jruby-openssl (default: 0.10.4 java)
jruby-readline (default: 1.3.7 java)
json (default: 2.2.0 java)
minitest (5.10.3)
molinillo (0.6.6)
nanaimo (0.2.6)
nap (1.1.0)
net-telnet (0.1.1)
netrc (0.11.0)
power_assert (1.1.3)
psych (default: 3.1.0 java)
rake (12.3.2)
rake-ant (default: 1.0.4)
rdoc (default: 6.1.2)
ruby-macho (1.4.0)
scanf (default: 1.0.0)
test-unit (3.2.8)
thread_safe (0.3.6 java)
typhoeus (1.3.1)
tzinfo (1.2.6)
webrick (default: 1.4.2)
xcodeproj (1.15.0)
xmlrpc (0.3.0)
@amorde
Copy link
Member

amorde commented Jun 7, 2020

Not sure, we have seen similar issues reported to CocoaPods when using JRuby but I don't know enough about JRuby to know why this isn't working

@gmazzo
Copy link
Author

gmazzo commented Jun 7, 2020

I can confirm the problem is with an incompatibility with JRuby. But yet I don't know who should fix it, to them to match the Ruby date implemention o here to not depend on this missing Date's feature.

@segiddins
Copy link
Member

think it's been fixed on nanaimo master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants