Developing packages - help!

Hi Everyone,
I just installed Juno along with Julia following Chris Rackauckas’ developing for julia tutorial. When I try to dev Surrogates (the package I want to develop) I get this error.
ERROR: Unsatisfiable requirements detected for package Stheno [8188c328]:
Stheno [8188c328] log:
├─possible versions are: [0.1.0-0.1.1, 0.2.0-0.2.1, 0.3.0-0.3.2, 0.4.0-0.4.2, 0.5.0, 0.6.0-0.6.20] or uninstalled
├─restricted to versions 0.6.0-0.6 by Surrogates [6fc51010], leaving only versions 0.6.0-0.6.20
│ └─Surrogates [6fc51010] log:
│ ├─possible versions are: 1.6.0 or uninstalled
│ └─Surrogates [6fc51010] is fixed to version 1.6.0
└─restricted by julia compatibility requirements to versions: 0.1.0-0.1.1 or uninstalled — no versions left

I read somewhere that deleting Stheno might help but
(v1.0) pkg> rm Stheno
┌ Warning: Stheno not in project, ignoring

Strangely I am able to add Surrogates with pkg I just can’t dev it! I’d appreciate anyone’s advice on this! Thanks in advance :slight_smile:

I see that you are using an old Julia version. Updating that might help.

My conjecture is that you have another package in your v1.0 Project.toml that pins Stheno at 0.1.

It is always a good idea to keep the Julia environment minimal. Just add REPL helpers such as Revise.jl, OhMyREPL.jl, etc. But add other dependencies in project environments.

So my recommendation would be: clean out dependencies in v1.0. Perhaps update Julia to 1.5. Create a new environment with the dependencies that you need for the project you are working on.

Hope this solves it.

2 Likes