ggerico
I got troubles with the live-reload for .ex files in a phoenix (1.3.4) app. I don’t use linters, nor vim.
I made a complete reinstall, removing every thing in the deps directory rm -rf *and all the compiled files rm -rf _build.
Then I mix deps.get the dependencies and compile the project and then:
$ mix compile
12:01:20.452 [info] Compiling file system watcher for Mac...
==> file_system
ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//CoreServices.framework/CoreServices.tbd and library file /System/Library/Frameworks//CoreServices.framework/CoreServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//CFNetwork.framework/Versions/A/CFNetwork.tbd and library file /System/Library/Frameworks//CFNetwork.framework/Versions/A/CFNetwork are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList are out of sync. Falling back to library file for linking.
After reading some articles on the web I tried in different ways to get the proper command line tools (last version 10.0 via the app store and previous version via xcode-select --install) but it didn’t work.
then I created a new project with mix phx.new (v 1.3.4) and the live-reload didn’t work either.
I read some go programmers on mac also got these warnings.
Someone can help?
Is there a connection between those warnings and the failure of the phoenix live-reload?
Thanks.
Trending in Questions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 7- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
Nicd
This is a macOS issue while compiling the
file_systempackage, so not directly related to Phoenix.Have you tried this? http://sd.jtimothyking.com/2018/07/26/stub-file-and-library-file-out-of-sync/ – In short: forcibly remove Xcode command line tools and then reinstall them.
ggerico
Yes I had and unfortunately it didn’t help.
ggerico
The issue is on air in the github of golang. Wait and see.
ggerico
The workaround mentioned by Nicd and more information can be found here.
Even if the fix doesn’t work on my Mac, with Command Line Tools v.10.0 already installed (updated from the App Store the Sep 20, 2018) on macOS High Sierra 10.13.6
ggerico
More information concerning this issue, if you are about to upgrade your OS to macOS Mojave, excerpt from the golang github.
ggerico
NO !!!
I have added this line
~r{lib/.*(ex)$}in the endpoint file, and everything’s working now.isn’t
Phoenix.CodeReloaderwatching the lib directory by default?OvermindDL1
Nope, to prevent way too many unrelated updates from happening in non-umbrella/dep style projects.