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

"WARNING: 'viewcode' reference target not found" #7806

Closed
felixxm opened this issue Jun 8, 2020 · 3 comments
Closed

"WARNING: 'viewcode' reference target not found" #7806

felixxm opened this issue Jun 8, 2020 · 3 comments
Labels
Milestone

Comments

@felixxm
Copy link

felixxm commented Jun 8, 2020

Describe the bug

Django uses the sphinx.ext.viewcode extension and sphinxcontrib-spelling. They don't work properly with Sphinx 3.1. It's a regression in 5f51a1e (reverting this commit fixes builds for us).

To Reproduce
Steps to reproduce the behavior:

sphinx-build -b spelling -n -d _build/doctrees -D language=   . _build/html

Expected behavior
Warnings shouldn't be raised.

Your project
https://github.com/django/django/tree/master/docs

Environment info

  • OS: Linux
  • Python version: 3.6.9
  • Sphinx version: 3.1.0
  • Sphinx extensions: ['sphinx.ext.extlinks', sphinx.ext.intersphinx, sphinx.ext.viewcode, sphinx.ext.autosectionlabel]

Additional context
Logs

@felixxm felixxm changed the title "WARNING: 'viewcode' reference target not found: : with Sphinx 3.1 "WARNING: 'viewcode' reference target not found" Jun 8, 2020
@tk0miya tk0miya added this to the 3.1.2 milestone Jun 14, 2020
@tk0miya
Copy link
Member

tk0miya commented Jun 14, 2020

I'm sorry. I missed this issue on working for 3.1.1. I'll check this until the next bugfix release. Please wait just a little more.

@felixxm
Copy link
Author

felixxm commented Jun 14, 2020

Thanks!

kip-hart added a commit to kip-hart/MicroStructPy that referenced this issue Jun 26, 2020
tk0miya added a commit to tk0miya/sphinx that referenced this issue Jun 26, 2020
@tk0miya
Copy link
Member

tk0miya commented Jun 27, 2020

Note: I used following Dockerfile to reproduce the error:

FROM python:3.7-slim

RUN apt update; apt install -y git make build-essential vim
RUN git clone https://github.com/django/django
WORKDIR /django
RUN pip install -e .
RUN pip install -U sphinx
WORKDIR /django/docs
RUN pip install sphinxcontrib-spelling
RUN apt install -y enchan
RUN sphinx-build -b spelling -n -d _build/doctrees -D language=   . _build/html

tk0miya added a commit that referenced this issue Jun 28, 2020
Fix #7806: viewcode: Failed to resolve viewcode references on 3rd party builders
@tk0miya tk0miya closed this as completed Jun 28, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants