exercism / elixir-analyzer

GNU Affero General Public License v3.0
30 stars 32 forks source link

use of bitwise operators in the 'Secrets' exercise #365

Closed matari-dev closed 1 year ago

matari-dev commented 1 year ago

Please refer to my iterations for this exercise
I am using Elixir 1.9.1 on my local machine

angelikatyborska commented 1 year ago

Hi! Yes, there has been a significant change in how the Bitwise module behaves between Elixir 1.9 and Elixir 1.14 (current version). The test runner and analyzer on Exercism always run on the newest Elixir version. Locally, all exercises should work in Elixir versions 1.9 to 1.14.

Elixir 1.9 is pretty old (June 2019) and it would be better for your learning experience if you upgraded to the newest version. As soon as Elixir 1.15 gets released, we will shift the range of versions we validate the exercises against to 1.10-1.15.

If you choose not to upgrade, I'm afraid you'll get some failing tests and weird analyzer output after submitting your exercises.

matari-dev commented 1 year ago

Thank you!
I upgraded to the latest available version of Elixir (via their website¹) for Ubuntu (i.e. version 1.13.4) and can confirm that I can pass without even having to include import Bitwise on my local machine.

That said, I would like to know where I can make a request that a note be added in Elixir's track documentation for Installing Elixir locally² stating that Exercism users should try installing the latest version and/or what is the oldest version that is still okay to use.

I say this because currently, if users follow the instructions provided there (as I did) they may get version that is older than what is recommended.

  1. https://www.erlang-solutions.com/downloads/
  2. https://exercism.org/docs/tracks/elixir/installation
angelikatyborska commented 1 year ago

That's a good point, we don't mention anywhere what those versions actually are... I opened a PR: https://github.com/exercism/elixir/pull/1279

matari-dev commented 1 year ago

Awesome, thank you @angelikatyborska ! 🙇‍♂️