Closed ahto closed 13 years ago
I can confirm this is a problem for me too. However, there appears to be some platform differences since @dbussink wasn't able to reproduce locally. What I propose is that we use a VirtualBox VM to test things in, since it should behave the same across all architectures. I've put together the steps to build the VM and install the software to reproduce the problem: https://gist.github.com/985183
(BTW: You will need to install VirtualBox first. The download URI is on line 2 inside the gist)
@dbussink: does this help? Is there anything else you need from me? It looks like a load order dependency issue, likely some shared state being clobbered by the gems.
This is also related to issue reported by @postmodern
@solnic: yes, this is the same issue as #10 (or appears to be)
This should have been closed along with issue #10.
dkubb asked to make this ticket on irc and of course I didn't read that he wanted it to github, not lighthouse. Sorry about the duplicate http://datamapper.lighthouseapp.com/projects/20609-datamapper/tickets/1512-dataobjectsconnectionerror-when-loading-both-dm-mysql-adapter-and-dm-sqlite-adapter-gems
I have in my Gemfile both dm-mysql-adapter and dm-sqlite-adapter. First for prod/dev and sqlite for speedy tests. I load them using bundler and now when I run tests even though I specifically setup with DataMapper.setup(:default, "sqlite::memory:") it tries to connect somewhere else using some default rules with root@localhost. My code runs after I comment out the dm-mysql from Gemfile.
Gemfile has
I setup them with
Expected behaviour
Datamapper would connect to in memory sqlite database
What really happens
DataObjects::ConnectionError: Access denied for user 'root'@'localhost' (using password: NO)
Backtrace