<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="109199" data-post-id="109199">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="sc4224" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sc4224/120/10858_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  sc4224
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Tried it, it works! Merry Christmas. Big follow up to that, why do we need to copy over a mix.lock file? Shouldn’t the mix.lock file be generated after doing a mix deps.get at build time? It seems when I don’t copy it over, the build process returns with an error saying the mix.lock file does not exist and that I should run mix deps.get to generate one. But the problem is, mix deps.get is already set as a command in the dockerfile. So I don’t understand why the mix.lock doesn’t exist at runtime</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="109199" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/function-bcrypt-base-gensalt-nif-3-is-undefined-module-bcrypt-base-is-not-available/15523/34">Post #33</a>
	                </div>
	            </div>
              <div id="likers-container-109199" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="109199"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #33"></div>
  </section>
</div>
    <div class="postbit" id="109208" data-post-id="109208">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="NobbZ" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/NobbZ/120/27235_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  NobbZ
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="sc4224" data-post="34" data-topic="15523">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sc4224/48/10858_2.png" class="avatar"> sc4224:</div>
<blockquote>
<p>why do we need to copy over a mix.lock file?</p>
</blockquote>
</aside>
<p>There shouldn’t be any need.</p>
<p>But copying it from the host (and also committing it into the repository) ensures using consistent versions of dependencies across machines.</p>
<hr>
<p>I’m not sure if I can follow you with the remainder of you question. Can you perhaps open a new thread which includes a link to an example repository and an explanation about how to recreate your problem?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="109208" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/function-bcrypt-base-gensalt-nif-3-is-undefined-module-bcrypt-base-is-not-available/15523/35">Post #34</a>
	                </div>
	            </div>
              <div id="likers-container-109208" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="109208"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #34"></div>
  </section>
</div>
    <div class="postbit" id="174939" data-post-id="174939">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Exadra37" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Exadra37/120/9183_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Exadra37
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="NobbZ" data-post="24" data-topic="15523">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/nobbz/48/27235_2.png" class="avatar"> NobbZ:</div>
<blockquote>
<p>They are <strong>not</strong> meant to share sourcecode during development. If changes of your sourceode on the host are visible in the container instantly without needing it to rebuild, you are doing it wrong.</p>
</blockquote>
</aside>
<p>No, you are doing it right. I am using this approach for years for all programming languages I use or anything else, because I run everything from Docker, included for example Android Studio, that’s an heavy editor with lot’s of cache and magic going on <img src="https://forum.elixirforum.com/images/emoji/apple/wink.png?v=15" title=":wink:" class="emoji" alt=":wink:" loading="lazy" width="20" height="20"></p>
<aside class="quote no-group" data-username="NobbZ" data-post="24" data-topic="15523">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/nobbz/48/27235_2.png" class="avatar"> NobbZ:</div>
<blockquote>
<p>Especially as build artifacts are created by host simply by starting the editor (at least in the days of ElixirLS) which might confuse the container as it sees those artifacts and thinks it doesn’t need to recompile, but in fact the artifacts might be for a different ARCH or OS or just with a different environment.</p>
</blockquote>
</aside>
<p>Now here is where things are “wrong”. If you have two different systems building stuff and try to use them, then off-course things will go definitely side ways.</p>
<p>Also inotify-tools must be installed in both the host and in the container, and their limits increased so that both host and container can react to file changes in the mounted volumes.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="174939" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/function-bcrypt-base-gensalt-nif-3-is-undefined-module-bcrypt-base-is-not-available/15523/36">Post #35</a>
	                </div>
	            </div>
              <div id="likers-container-174939" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="174939"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #35"></div>
  </section>
</div>
    <div class="postbit" id="174945" data-post-id="174945">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="NobbZ" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/NobbZ/120/27235_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  NobbZ
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>If, and only if, you know what you are doing, and if, and only if, you know that built artifacts from host and container won’t mix, then the volume approach can work. Though, very few people do really know.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="174945" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/function-bcrypt-base-gensalt-nif-3-is-undefined-module-bcrypt-base-is-not-available/15523/37">Post #36</a>
	                </div>
	            </div>
              <div id="likers-container-174945" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="174945"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #36"></div>
  </section>
</div>
    <div class="postbit" id="174947" data-post-id="174947">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Exadra37" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Exadra37/120/9183_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Exadra37
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Well what it seems to me here is that people are mixing compiling from the host and compiling from the container interchangeable, and that will not work unless the operating systems are exactly the same.</p>
<p>So if people want to build artifacts in both host and container they must exclude that folders from being mapped in the volumes.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="174947" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/function-bcrypt-base-gensalt-nif-3-is-undefined-module-bcrypt-base-is-not-available/15523/38">Post #37</a>
	                </div>
	            </div>
              <div id="likers-container-174947" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="174947"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #37"></div>
  </section>
</div>
    <div class="postbit" id="193551" data-post-id="193551">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Arnab" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Arnab
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>bcrypt_elixir</p>
<p>Microsoft (R) Program Maintenance Utility Version 14.27.29112.0<br>
Copyright (C) Microsoft Corporation.  All rights reserved.</p>
<pre><code>    del /Q /F priv
    erl -eval "io:format(\"~s~n\", [lists:concat([\"ERTS_INCLUDE_PATH=\", code:root_dir(), \"/erts-\", erlang:system_info(version), \"/include\"])])" -s init stop -noshell &gt; Makefile.auto.win
    nmake /                   /F Makefile.win priv\bcrypt_nif.dll
</code></pre>
<p>Microsoft (R) Program Maintenance Utility Version 14.27.29112.0<br>
Copyright (C) Microsoft Corporation.  All rights reserved.</p>
<pre><code>    if NOT EXIST "priv" mkdir "priv"
    cl /O2 /EHsc /I"c_src" /I"c:/Program Files/erl-23.0/erts-11.0/include" /LD /MD /Fepriv\bcrypt_nif.dll  c_src\bcrypt_nif.c c_src\blowfish.c
</code></pre>
<p>Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29112 for x64<br>
Copyright (C) Microsoft Corporation.  All rights reserved.</p>
<p>bcrypt_nif.c<br>
c_src\bcrypt_nif.c(52): fatal error C1083: Cannot open include file: ‘stdio.h’: No such file or directory<br>
blowfish.c<br>
e:\projects\phoenix-live-stream-master\deps\bcrypt_elixir\c_src\blf.h(37): fatal error C1083: Cannot open include file: ‘stdint.h’: No such file or directory<br>
Generating Code…<br>
NMAKE : fatal error U1077: ‘“C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\Hostx64\x64\cl.EXE”’ : return code ‘0x2’<br>
Stop.<br>
NMAKE : fatal error U1077: ‘“C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\Hostx64\x64\nmake.EXE”’ : return code ‘0x2’<br>
Stop.<br>
could not compile dependency :bcrypt_elixir, “mix compile” failed. You can recompile this dependency with “mix deps.compile bcrypt_elixir”, update it with “mix deps.update bcrypt_elixir” or clean it with “mix deps.clean bcrypt_elixir”<br>
==&gt; chat_app<br>
** (Mix) Could not compile with “nmake” (exit status: 2).<br>
One option is to install a recent version of<br>
<a href="http://landinghub.visualstudio.com/visual-cpp-build-tools" rel="noopener nofollow ugc">Visual C++ Build Tools</a><br>
either manually or using <a href="https://chocolatey.org/" rel="noopener nofollow ugc">Chocolatey</a> -<br>
<code>choco install VisualCppBuildTools</code>.</p>
<p>After installing Visual C++ Build Tools, look in the “Program Files (x86)”<br>
directory and search for “Microsoft Visual Studio”. Note down the full path<br>
of the folder with the highest version number. Open the “run” command and<br>
type in the following command (make sure that the path and version number<br>
are correct):</p>
<pre><code>cmd /K "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
</code></pre>
<p>This should open up a command prompt with the necessary environment variables<br>
set, and from which you will be able to run the “mix compile”, “mix deps.compile”,<br>
and “mix test” commands.</p>
<p>Ques: What may be the problem running this on Windows 10 cmd</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="193551" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/function-bcrypt-base-gensalt-nif-3-is-undefined-module-bcrypt-base-is-not-available/15523/39">Post #38</a>
	                </div>
	            </div>
              <div id="likers-container-193551" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="193551"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #38"></div>
  </section>
</div>
    <div class="postbit" id="249865" data-post-id="249865">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="davidalencar" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/davidalencar/120/23878_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  davidalencar
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>This worked for me:</p>
<p><code>mix deps.compile --force bcrypt_elixir</code></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="249865" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/function-bcrypt-base-gensalt-nif-3-is-undefined-module-bcrypt-base-is-not-available/15523/40">Post #39</a>
	                </div>
	            </div>
              <div id="likers-container-249865" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="249865"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #39"></div>
  </section>
</div>
    <div class="postbit" id="283772" data-post-id="283772">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="samrose" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/samrose/120/9675_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  samrose
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Every time I come across this, if I blow away my <code>_build</code> and recompile, the problem is resolved.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="283772" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/function-bcrypt-base-gensalt-nif-3-is-undefined-module-bcrypt-base-is-not-available/15523/41">Post #40</a>
	                </div>
	            </div>
              <div id="likers-container-283772" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="283772"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #40"></div>
  </section>
</div>
    <div class="postbit" id="337695" data-post-id="337695">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="empitePasindu" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/empitePasindu/120/35748_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  empitePasindu
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I was going in the wrong way by using vscode terminal to compile the packages which gave the above error . following is the easiest way</p>
<ul>
<li>install latest visual studio with Desktop development with c++ option</li>
<li>open visual studio (not visual studio code)</li>
<li>open a developer command prompt terminal</li>
<li>mix deps.comile --all</li>
<li>done</li>
</ul> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="337695" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/function-bcrypt-base-gensalt-nif-3-is-undefined-module-bcrypt-base-is-not-available/15523/42">Post #41</a>
	                </div>
	            </div>
              <div id="likers-container-337695" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="337695"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>