jjrodrig commented on issue #4706:
URL: https://github.com/apache/couchdb/issues/4706#issuecomment-1671145061
Hi @pgj!
I've been checking this issue.
Initially I had the same error related to ibrowse. I fully cleaned up the
elixir environment and then a new issue appears with the jiffy module.
Could you try if it is the same for you?
1 - Clean CouchDB build
`make clean`
2 - Clean up elixir build artifacts
```
mix clean --deps
rm src/*/_build
rm _build
```
3 - Rebuild CouchDB and test
```
make couch elixir
```
I get this kind of errors
```
1) test Basic reduce functions (ReduceTest)
test/elixir/test/reduce_test.exs:16
** (UndefinedFunctionError) function :jiffy.decode/2 is undefined
(module :jiffy is not available)
stacktrace:
(jiffy 1.0.9) :jiffy.decode("{\"ok\":true}\n", [:return_maps])
```
If it is the case, I think the problem is related to this change
(https://hexdocs.pm/elixir/1.15.4/changelog.html#potential-incompatibilities)
By adding `prune_code_paths: false` to the project section in mix.exs file
solves the issue for me, around line 49 on the file.
```
def project do
[
app: :couchdbtest,
version: "0.1.0",
elixir: "~> 1.13",
lockfile: Path.expand("mix.lock", __DIR__),
deps_path: Path.expand("src", __DIR__),
build_path: Path.expand("_build", __DIR__),
compilers: [:elixir, :app],
start_permanent: Mix.env() == :prod,
build_embedded: Mix.env() == :prod,
deps: deps(),
consolidate_protocols: Mix.env() not in [:test, :dev, :integration],
test_paths: get_test_paths(Mix.env()),
elixirc_paths: elixirc_paths(Mix.env()),
prune_code_paths: false,
test_coverage: [
tool: CoverTool,
dirs: get_coverage_paths(),
type: "html"
]
]
end
```
Seems to be a temporary solution but unlock the build using Elixir 1.15.
I'll prepare a PR with this change.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]