You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in Debian 12 or Ubuntu 23.04 I get compile errors:
...
Generated plug app
==> bitcoinex
Compiling 14 files (.ex)
warning: ^^^ is deprecated. It is typically used as xor but it has the wrong precedence, use Bitwise.bxor/2 instead
lib/bech32.ex:188:34
warning: ^^^ is deprecated. It is typically used as xor but it has the wrong precedence, use Bitwise.bxor/2 instead
lib/bech32.ex:198:43
warning: ^^^ is deprecated. It is typically used as xor but it has the wrong precedence, use Bitwise.bxor/2 instead
lib/bech32.ex:201:18
warning: use Bitwise is deprecated. import Bitwise instead
lib/bech32.ex:8: Bitcoinex.Bech32
warning: function binary_slice/2 is unused
lib/base58.ex:126
== Compilation error in file lib/base58.ex ==
** (CompileError) lib/base58.ex:126: imported Kernel.binary_slice/2 conflicts with local function
could not compile dependency :bitcoinex, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile bitcoinex", update it with "mix deps.update bitcoinex" or clean it with "mix deps.clean bitcoinex"
As a workaround I changed the file bitfeed/server/bitcoinex/lib/base58.ex and deleted these lines at the end of the file:
125 @SPEC binary_slice(binary, Range.t()) :: binary
126 defp binary_slice(data, range) do
127 data
128 |> :binary.bin_to_list()
129 |> Enum.slice(range)
130 |> :binary.list_to_bin()
131 end
Then it compiles. Not sure if it is needed for something or not (as the warning says 'unused'). App still seem to work.
regards
The text was updated successfully, but these errors were encountered:
Hi,
in Debian 12 or Ubuntu 23.04 I get compile errors:

...
Generated plug app
==> bitcoinex
Compiling 14 files (.ex)
warning: ^^^ is deprecated. It is typically used as xor but it has the wrong precedence, use Bitwise.bxor/2 instead
lib/bech32.ex:188:34
warning: ^^^ is deprecated. It is typically used as xor but it has the wrong precedence, use Bitwise.bxor/2 instead
lib/bech32.ex:198:43
warning: ^^^ is deprecated. It is typically used as xor but it has the wrong precedence, use Bitwise.bxor/2 instead
lib/bech32.ex:201:18
warning: use Bitwise is deprecated. import Bitwise instead
lib/bech32.ex:8: Bitcoinex.Bech32
warning: function binary_slice/2 is unused
lib/base58.ex:126
== Compilation error in file lib/base58.ex ==
** (CompileError) lib/base58.ex:126: imported Kernel.binary_slice/2 conflicts with local function
could not compile dependency :bitcoinex, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile bitcoinex", update it with "mix deps.update bitcoinex" or clean it with "mix deps.clean bitcoinex"
As a workaround I changed the file bitfeed/server/bitcoinex/lib/base58.ex and deleted these lines at the end of the file:
125 @SPEC binary_slice(binary, Range.t()) :: binary
126 defp binary_slice(data, range) do
127 data
128 |> :binary.bin_to_list()
129 |> Enum.slice(range)
130 |> :binary.list_to_bin()
131 end
Then it compiles. Not sure if it is needed for something or not (as the warning says 'unused'). App still seem to work.
regards
The text was updated successfully, but these errors were encountered: