Closed yulu closed 5 years ago
I get the same message "can't dup NilClass (TypeError)". I am using Ruby 2.3.0, selenium, selenium (0.2.11) selenium-webdriver (3.3.0, 2.53.4), win 7 , 64 bit. Firefox 50. Geckodriver v0.16. The problem is only whwn I use firefox. Any Idea how to solve the problem?
@ranj123 see if you can get it work by modifying the plugin following the code snippet I pasted above?
Thank you
I can't see the code snippet you mention in your reply. Can you sen it?
Regards Ranj
On Mon, May 29, 2017 at 4:18 AM, yulu notifications@github.com wrote:
@ranj123 https://github.com/ranj123 see if you can get it work by modifying the plugin following the code snippet I pasted above?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Anthony-Gaudino/jekyll-multiple-languages-plugin/issues/85#issuecomment-304558752, or mute the thread https://github.com/notifications/unsubscribe-auth/ADT3O4aXIW8NIqK2tp1hWxHm0Kj7vaaeks5r-isNgaJpZM4LUfQN .
@ranj123
33 if default_lang != current_lang
34 static_files.delete_if do |static_file|
35
36 if static_file.instance_variable_get(:@relative_path).nil?
37
38 # Remove "/" from beginning of static file relative path
39 static_file_r_path = static_file.instance_variable_get(:@relative_path).dup
40 static_file_r_path[0] = ''
41
42 exclude_paths.any? do |exclude_path|
43 Pathname.new(static_file_r_path).descend do |static_file_path|
44 break(true) if (Pathname.new(exclude_path) <=> static_file_path) == 0
45 end
46 end
47 end
48 end
Thank you
Where should the code be written? In which file?
On 30. maj 2017, at 02.17, yulu notifications@github.com wrote:
@ranj123
33 if default_lang != current_lang 34 static_files.delete_if do |static_file| 35 36 if static_file.instance_variable_get(:@relative_path).nil? 37
38 # Remove "/" from beginning of static file relative path 39 static_file_r_path = static_file.instance_variable_get(:@relative_path).dup 40 static_file_r_path[0] = '' 41
42 exclude_paths.any? do |exclude_path| 43 Pathname.new(static_file_r_path).descend do |static_file_path| 44 break(true) if (Pathname.new(exclude_path) <=> static_file_path) == 0 45 end 46 end 47 end 48 end — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Hi,
I am encountering the following error when generating the site:
It looks like that some static file path is nil. After add the following checking in the plugin, it works:
I am wondering why this happens only to my site.