Comments (12)
I renamed the issue accordingly. ;)
Joke aside, that’s a valuable lesson to learn for me as a technical writer. Make stuff copy'n'past-able without changing the execution environment midway through.
from lorri.
you're definitely right @Profpatsch. Instructions were clear but the receiver was broken. Look at it as if you're dealing with very bad input sensor on the other side (me).
from lorri.
Are you running this in your normal shell?
lorri direnv
outputs code that is intended to be put in .envrc
, which direnv
calls with functions like watch_file
set.
What part of the tutorial makes you think it has to be run from your shell? We might have to clarify.
from lorri.
Sorry for the dumb issue and late reply. I was just too busy and was not careful enough.
from lorri.
You’re not the first to run into this, we need to print a warning.
from lorri.
that would be definitely good UX improvement assuming people who can't read manual (like me) can at least read the terminal output :D
from lorri.
It’s easy to get wrong and if one does the why is pretty hard to debug (especially if one doesn’t know how direnv works)
from lorri.
This bit in here let me to the same mistake.
Create a file named .envrc in your project's root with the contents:
eval "$(lorri direnv)"
Then, run lorri watch. The first time you run lorri watch on a project, wait for it to print Completed before continuing. Leave this terminal open.
from lorri.
What exactly lead you to the mistake?
from lorri.
@freddie-freeloader do you think this makes it clearer?
from lorri.
@Profpatsch I think seeing a line beginning with eval
makes some brains go like "this is surely a shell".
I can imagine two possible (cheap) improvements.
- Adding comment to the source block repeating the important part (as in my PR)
- Instead of showing file content add shell command to create the file itself:
echo 'eval "$(lorri direnv)"' > .envrc
from lorri.
@Profpatsch I think seeing a line beginning with
eval
makes some brains go like "this is surely a shell".I can imagine two possible (cheap) improvements.
1. Adding comment to the source block repeating the important part (as in my PR) 2. Instead of showing file content add shell command to create the file itself:
echo 'eval "$(lorri direnv)"' > .envrc
This is exactly what I would propose.
In my case the problem was that I copied the code blindly and executed it. I know, this is not smart, but I think this is a common mistake.
from lorri.
Related Issues (20)
- lorri clobbers nix-shell environment
- Show and update lorri daemon status in shell
- No documentation about runtime garbage collection
- Lorri does not use bashInteractive like nix-shell
- Lorri misbehaves when the shell has `disallowedReferences`
- `lorri direnv` extremely slow with a large number of env vars
- shellHook fails when sourcing bash completions HOT 1
- lorri Crash Report
- lorri Crash Report HOT 1
- Start lorry from Emacs HOT 1
- Bash completions fail because XDG_DATA_DIRS is reset HOT 1
- lorri Crash Report HOT 1
- lorri + direnv reloads environment after every command HOT 1
- Lorri doesn't build on unstable HOT 2
- lorri internal stream-events does nothing
- Lorri fails to setup FHS user environment HOT 3
- Lorri incorrectly prepend NODE_PATH instead of overwriting
- Breaks kde-open5/xdg-open HOT 2
- MAINTENANCE NOTICE HOT 1
- lorri Crash Report
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 lorri.