Its working now with the right ModiaMath version (no crash). I made the following steps:
- Removed the directory “HOME/.julia/packages/ModiaMath”.
(v0.7) pkg> activate HOME/.julia/dev/Modia
(Modia) pgk> instantiate
- checked and indeed under “HOME/.julia/packages/ModiaMath/…” there was now the right ModiaMath version.
So, this is good. However, what I really would like to have is that Modia uses the current development version of ModiaMath which is placed under HOME/.julia/dev/ModiaMath. O tried your suggestion
(Modia) pkg> dev ../ModiaMath
Cloning git-repo `../ModiaMath`
ERROR: failed to clone from ../ModiaMath, error: GitError(Code:ERROR, Class:Net, unsupported URL protocol)
but this gives an error. However, using “up ModiaMath” gives no error. However, when leaving julia and entering it again and making “import Modia”, suddenly an error occurs.
ERROR: LoadError: LoadError: ArgumentError: Package ModiaMath [67ccffd1-116d-535b-ad39-76a8fd0cbf71] is required but does not seem to be installed:
- Run `Pkg.instantiate()` to install all recorded dependencies.
O.k., made ]instantiate" and then I could run examples with Modia. However, when I exit julia and re-entering it again and making “import Modia”, then [ Info: Precompiling Modia [cb905087-75eb-5f27-8515-1ce0ec8e839e]
and again the above error occurs (so “ModiaMath … does not seem to be installed”). The current status is therefore, that whenever I newly start julia, I have to make instantiate.
O.k. for whatever raeson in HOME/.julia/environments/v0.7, in the Manifest.toml file the following is present:
[[Modia]]
path = "D:\\otter\\home\\.julia\\dev\\Modia"
uuid = "cb905087-75eb-5f27-8515-1ce0ec8e839e"
version = "0.2.0+"
[Modia.deps]
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
ModiaMath = "67ccffd1-116d-535b-ad39-76a8fd0cbf71"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
PyPlot = "d330b81b-6aea-500a-939a-2ce795aea3ee"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
[[ModiaMath]]
deps = ["DataFrames", "DataStructures", "Documenter", "LinearAlgebra", "Printf", "PyPlot", "StaticArrays", "Sundials", "Unitful"]
path = "D:\\otter\\home\\.julia\\dev\\ModiaMath"
uuid = "80923050-9e1b-11e8-0c9e-c9f8e684994a"
version = "0.2.1"
[[ModiaMath]]
deps = ["DataFrames", "DataStructures", "LinearAlgebra", "Printf", "PyPlot", "StaticArrays", "Sundials", "Test", "Unitful"]
git-tree-sha1 = "654a93e69233a1366cf47f3742ea8127c3ac39c0"
uuid = "67ccffd1-116d-535b-ad39-76a8fd0cbf71"
version = "0.2.0"
so two different ModiaMath versions and Modia refers to the wrong one. But the HOME/.julia/dev/Modia/project.toml file has the correct dependency:
[deps]
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
ModiaMath = "80923050-9e1b-11e8-0c9e-c9f8e684994a"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
PyPlot = "d330b81b-6aea-500a-939a-2ce795aea3ee"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
O.k. Deleted "HOME\.julia\environments\v0.7", left julia and entered julia again. Making `import Modia` gives an error
```
ERROR: ArgumentError: Package Modia not found in current path:
- Run `Pkg.add("Modia")` to install the Modia package.
```
So, the Modia version in HOME/.juliarc/dev/Modia is "somehow" not known. Making "]add Modia" gives errors:
```
(v0.7) pkg> add Modia
Updating registry at `D:\otter\home\.julia\registries\General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Cloning git-repo `Modia`
Updating git-repo `Modia`
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package ModiaMath [80923050]:
ModiaMath [80923050] log:
├─ModiaMath [80923050] has no known versions!
└─restricted to versions * by Modia [e4773e00] - no versions left
└─Modia [e4773e00] log:
├─possible versions are: 0.2.0 or uninstalled
└─Modia [e4773e00] is fixed to version 0.2.0-beta.5
```
Tried the commands
```
]
(v0.7) pkg> add HOME/.julia/dev/ModiaMath
(v0.7) pkg> add HOME/.julia/dev/Modia
import Modia
exit()
julia
import Modia
```
and this seem to finally work.