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

nimble doc fails with exception "Can't obtain a value from a none [UnpackError]" #14281

Closed
snej opened this issue May 9, 2020 · 6 comments
Closed

Comments

@snej
Copy link

snej commented May 9, 2020

I'm developing a Nimble package and finished adding a bunch of doc-comments.
When I run nimble doc, it immediately fails with what looks like an internal error.

Example

At a shell prompt, in my package's root directory, I enter nimble doc.

Current Output

options.nim(185)         get
Error: unhandled exception: Can't obtain a value from a `none` [UnpackError]

Expected Output

Expected the documentation to be compiled.

Extra Info

My .nimble file just looks like:

# Package
version       = "0.1.0"
author        = "...."
description   = "...."
license       = "Apache-2.0"
srcDir        = "src"

# Dependencies

requires "nim >= 1.2.0"

Nim Version

$ nim -v
Nim Compiler Version 1.2.0 [MacOSX: amd64]
Compiled at 2020-04-04
Copyright (c) 2006-2020 by Andreas Rumpf

active boot switches: -d:release -d:nimUseLinenoise

$ nimble -v
nimble v0.11.0 compiled at 2020-04-04 07:59:18
git hash: couldn't determine git hash
@snej
Copy link
Author

snej commented May 9, 2020

The error output includes options.nim -- I don't have a source file of that name. I do have one source file that imports the options module, though.

@alaviss
Copy link
Collaborator

alaviss commented May 10, 2020

Current Output

Is this the full output? If yes then this seems to be a nimble bug rather than a nim bug.

@snej
Copy link
Author

snej commented May 11, 2020

Yes, that's all she wrote :/
If I run nim doc path/to/file.nim for each source file individually, it works.

@alaviss
Copy link
Collaborator

alaviss commented May 11, 2020

This is a nimble bug then.

@narimiran please move the bug to nim-lang/nimble.

/cc @genotrance @dom96

@narimiran
Copy link
Member

@narimiran please move the bug to nim-lang/nimble.

I don't have admin rights for that repo, I cannot move it there.

xyb added a commit to zielmicha/leveldb.nim that referenced this issue Jun 23, 2020
xyb added a commit to zielmicha/leveldb.nim that referenced this issue Jun 23, 2020
xyb added a commit to zielmicha/leveldb.nim that referenced this issue Jun 23, 2020
xyb added a commit to zielmicha/leveldb.nim that referenced this issue Jun 23, 2020
xyb added a commit to zielmicha/leveldb.nim that referenced this issue Jun 23, 2020
@genotrance
Copy link
Contributor

This isn't Nim related.

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

4 participants