You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bundle goes well, but when I try some other rails commands it generates some error: Errno::EISDIR: Is a directory @ io_fillbuf - fd:10 /Localpath/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/mimemagic-0.3.10/ext/mimemagic
the env var FREEDESKTOP_MIME_TYPES_PATH is already set.
if I rollback to 0.3.9 it works as expected.
using ruby 2.6.5 with asdf and rails 5.2.5
The text was updated successfully, but these errors were encountered:
So i have the same problem on windows.
Seem the code it opening a path instead of a file.
def self.open_mime_database
path = MimeMagic::DATABASE_PATH
File.open(path)
end
def self.parse_database
file = open_mime_database # <-- this is where a file is expected...
In order to get it to work i have to change it to:
def self.open_mime_database
path = MimeMagic::DATABASE_PATH
path += "/freedesktop.org.xml" # <-- add file to path
File.open(path)
end
changing the FREEDESKTOP_MIME_TYPES_PATH seems not to work i expected adding the filename to the path would solve the problem, but so far i tried it does not work.
bundle goes well, but when I try some other rails commands it generates some error:
Errno::EISDIR: Is a directory @ io_fillbuf - fd:10 /Localpath/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/mimemagic-0.3.10/ext/mimemagic
the env var FREEDESKTOP_MIME_TYPES_PATH is already set.
if I rollback to 0.3.9 it works as expected.
using ruby 2.6.5 with asdf and rails 5.2.5
The text was updated successfully, but these errors were encountered: