{"action":"closed","issue":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/5407","repository_url":"https://api.github.com/repos/sphinx-doc/sphinx","labels_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/5407/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/5407/comments","events_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/5407/events","html_url":"https://github.com/sphinx-doc/sphinx/issues/5407","id":358543183,"node_id":"MDU6SXNzdWUzNTg1NDMxODM=","number":5407,"title":"code-block directive without language should cause error, not warning","user":{"login":"mgeier","id":705404,"node_id":"MDQ6VXNlcjcwNTQwNA==","avatar_url":"https://avatars1.githubusercontent.com/u/705404?v=4","gravatar_id":"","url":"https://api.github.com/users/mgeier","html_url":"https://github.com/mgeier","followers_url":"https://api.github.com/users/mgeier/followers","following_url":"https://api.github.com/users/mgeier/following{/other_user}","gists_url":"https://api.github.com/users/mgeier/gists{/gist_id}","starred_url":"https://api.github.com/users/mgeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgeier/subscriptions","organizations_url":"https://api.github.com/users/mgeier/orgs","repos_url":"https://api.github.com/users/mgeier/repos","events_url":"https://api.github.com/users/mgeier/events{/privacy}","received_events_url":"https://api.github.com/users/mgeier/received_events","type":"User","site_admin":false},"labels":[{"id":162407994,"node_id":"MDU6TGFiZWwxNjI0MDc5OTQ=","url":"https://api.github.com/repos/sphinx-doc/sphinx/labels/duplicate","name":"duplicate","color":"cccccc","default":true},{"id":162415635,"node_id":"MDU6TGFiZWwxNjI0MTU2MzU=","url":"https://api.github.com/repos/sphinx-doc/sphinx/labels/markup","name":"markup","color":"FFFFFF","default":false},{"id":162429779,"node_id":"MDU6TGFiZWwxNjI0Mjk3Nzk=","url":"https://api.github.com/repos/sphinx-doc/sphinx/labels/proposal","name":"proposal","color":"207de5","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/milestones/33","html_url":"https://github.com/sphinx-doc/sphinx/milestone/33","labels_url":"https://api.github.com/repos/sphinx-doc/sphinx/milestones/33/labels","id":2411341,"node_id":"MDk6TWlsZXN0b25lMjQxMTM0MQ==","number":33,"title":"2.0.0","description":"Not planned yet.","creator":{"login":"tk0miya","id":748828,"node_id":"MDQ6VXNlcjc0ODgyOA==","avatar_url":"https://avatars2.githubusercontent.com/u/748828?v=4","gravatar_id":"","url":"https://api.github.com/users/tk0miya","html_url":"https://github.com/tk0miya","followers_url":"https://api.github.com/users/tk0miya/followers","following_url":"https://api.github.com/users/tk0miya/following{/other_user}","gists_url":"https://api.github.com/users/tk0miya/gists{/gist_id}","starred_url":"https://api.github.com/users/tk0miya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tk0miya/subscriptions","organizations_url":"https://api.github.com/users/tk0miya/orgs","repos_url":"https://api.github.com/users/tk0miya/repos","events_url":"https://api.github.com/users/tk0miya/events{/privacy}","received_events_url":"https://api.github.com/users/tk0miya/received_events","type":"User","site_admin":false},"open_issues":105,"closed_issues":15,"state":"open","created_at":"2017-03-26T05:34:07Z","updated_at":"2018-09-22T08:52:49Z","due_on":"2020-04-01T07:00:00Z","closed_at":null},"comments":3,"created_at":"2018-09-10T09:36:52Z","updated_at":"2018-09-22T08:52:49Z","closed_at":"2018-09-22T08:52:49Z","author_association":"CONTRIBUTOR","body":"### Problem\r\n- If a `code-block` directive is missing the (AFAIK required) language option, it is not included in the output and only a warning is shown instead of an error.\r\n\r\n#### Procedure to reproduce the problem\r\n\r\n```\r\n.. code-block::\r\n\r\n    a = 15\r\n```\r\n\r\n#### Error logs / results\r\n```\r\nWARNING: Error in \"code-block\" directive:\r\n1 argument(s) required, 0 supplied.\r\n\r\n.. code-block::\r\n\r\n    a = 15\r\n```\r\n\r\n#### Expected results\r\n\r\nThere should be an error message, because IMHO completely stripping the code block is a strong failure.\r\n\r\n#### Possibly related issues\r\n#1851\r\n#4130"}}
{"actor":{"display_login":"tk0miya"}}