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

extract_font.rb Line 34 Error #1

Open
bluefoxlee opened this issue Apr 9, 2013 · 5 comments
Open

extract_font.rb Line 34 Error #1

bluefoxlee opened this issue Apr 9, 2013 · 5 comments

Comments

@bluefoxlee
Copy link

Wonder if line 34 should bebe "font_size" instead of "f.size"?
第 34 行是不是呼叫有錯?
(抱歉,我不懂程式,只是由錯誤訊息判斷)

@southwolf
Copy link
Owner

您好!f.size是指"f"檔案的文件大小。可否附上完整的錯誤訊息?多謝您的反饋!

@bluefoxlee
Copy link
Author

錯誤訊息:
./extract_font.rb:34: undefined method `size' for #<File:res37 (closed)> (NoMethodError)

@southwolf
Copy link
Owner

應該是語法變化的問題。Ruby 1.9之後的版本應該能夠正常工作。
您使用的是Ruby 1.8或更早的版本嗎? 可能需要將 f.size 改成 File.size(f.path)

@bluefoxlee
Copy link
Author

好的,我試試看更新或者更改語法
感謝!也謝謝您的開發辛勞!期望早日看到中文顯示支援

@bluefoxlee
Copy link
Author

跟您回報一下,剛剛將 Ruby 由 1.8.7 更新到 2.0.0 已經解決該錯誤訊息了。

另外很小很小的建議。如果已匯出資料夾,又重複執行會出現錯誤提醒。或許可增加檢查或跳過。(這個不是很重要就是了)

謝謝

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

2 participants