Comments (3)
TLDR: There's potential interference from tools like asdf
because it runs after devbox to set the shims.
I had the package
issue here, but using ArchLinux. Using the ArchLinux wiki entry, I was able to overcome the Package not found
.
In my case, adding a channel and updating it first was necessary. https://wiki.archlinux.org/title/Nix
But now devbox shell
was indeed stuck for a while, like 10 minutes, with no feedback at all except 10% CPU usage and spinning fans on my laptop and some network connections downloading from nixos.org. Then started copying lots of nix packages.
After that it's indeed opening the shell, but it's using your shell, so asdf
interferes with which binary will really run.
In my case, I was testing elixir
. After devbox shell
you need to asdf global elixir system
so it uses the "system" elixir instead of the asdf
chosen one. Then elixir
complained about the locale not being properly set (something that the "real" elixir version from my system or asdf installed ones don't complain.
On top of that, which
is not useful because asdf keeps pointing to the shim.
I'm only certain that the elixir
version running is the nix one because you can check with htop
that erlang
is running from /nix/store
.
So there's a lot of interference between asdf
(potentially rbenv
, nodenv
, etc, too) and devbox shell
.
There are too many layers to make confusion here. For instance, when I check locale
from my shell it's indeed showing en_US.UTF-8
(my "real" shell), but when I run the iex
(similar to ipython
or irb
), I see that the locale is not really UTF8
. This is potentially another issue for my code, since now I need to find how to fix the locale inside the nix env, not my real env.
from devbox.
Looking at this in more detail. I think the shell did start on the first try, but there's "interferance" from asdf
as @rdlu is suggesting. Basically, I think the asdf
path is taking precedence over the devbox
path – I'm going to see if we can ensure the PATH precedence is set up correctly whenever you call devbox shell
from devbox.
+1 I have the same issue with pyenv
.
% devbox add python39
% devbox shell
Installing nix packages. This may take a while...
Starting a devbox shell...
% which python
/Users/haoguan/.pyenv/shims/python
% python -V
Python 3.10.0
% pyenv shell system
% python -V
Python 3.9.13
from devbox.
Related Issues (20)
- `{{ .DevboxDirRoot }}` doesn't point to the project root directory
- Proper dark/light mode themes for devbox services
- The order of appearance of scripts in generated readme should have same order as defined in devbox.json HOT 1
- Reuse process-compose if available HOT 1
- Failure running scripts when using some Bash options HOT 1
- feat: add "devbox list" command (same as "devbox global list" but for current box)
- Command stderr: error: syntax error, unexpected '-' HOT 3
- Devbox does not install nix HOT 2
- Doing `devbox update` on legacy (non versioned) packages shows bad error
- Publish the available container images
- Mariadb service not starting on macOS HOT 1
- Override configuration
- Add powerpipe.io as a package
- PYTHONPATH ordering breakage when installing packages via plugin
- Errors like "Too many requests" must be ignored if the package is already installed
- Broken package `localstack` rolled back on nixpkgs but still available on nixhub
- Devbox shell ignores `.zshenv`
- Python package requests for neuroimaging
- Devbox shell breaks with multiple Python based packages HOT 2
- devbox shell fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devbox.