algolia / algolia/jekyll-algolia

jekyll 4.0.0 | Error: undefined method `[]' for nil:NilClass

Open
#146 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
211
Forks
35
PR merge metrics
No merged PRs in 30d

Description

## I want to report a bug:
Yes

### What is the current behavior?
When I do **`bundle exec jekyll algolia`** with the API key, it throws an error **`jekyll 4.0.0 | Error: undefined method `[]' for nil:NilClass`**

![gUakYjwlIf](https://user-images.githubusercontent.com/635693/69896294-be15a100-1363-11ea-9d0b-62c95a137ce0.png)

### What is your expected behavior?
The command should execute successfully

### Git repository to reproduce the issue:

Here is the codebase, it is still in the works: [https://github.com/piyushpaliwal/ipiyush.git](https://github.com/piyushpaliwal/ipiyush.git)

### Ruby version used:

2.6.3p62

### Jekyll version used:

4.0.0.0

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `bundle exec jekyll algolia` in the linked `ipiyush` repository with Ruby 2.6.3 and Jekyll 4.0.0, using the reported API key configuration. Trace the `undefined method [] for nil:NilClass` failure from the command output. Done means the command executes successfully without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
jekyll, ruby
Domain
cli, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.