Comments (13)
Is config_dir
settable via ENVVAR? Then I could choose a suitable path myself.
And yes, all of ~
is read-only atm (I had to reroute basically all settings, vim, pip, jupyter, etc.).
from helix.
This is on the latest release (0.0.10), and the error is still "Read-only file system"? It's supposed to log to XDG_CACHE_HOME/helix/helix.log
now.
from helix.
Maybe it would be nice to use the new XDG_STATE_HOME
for this.
from helix.
Good point, we should probably log into config_dir()
(usually ~/.config/helix
)
Lines 59 to 66 in c67e318
Right now it just always uses home:
Line 43 in f4560cb
from helix.
Changing the path to config_dir
still doesn't resolve the issue of $HOME
being read-only. I'm wondering if perhaps the result of setup_logging
should be ignored so users can still operate without the logging mechanism?
from helix.
I reopened this since it doesn't fully resolve your issue; is ~/.config/``~/.local/
etc. completely unwritable? I find that a bit surprising.
from helix.
The weirdest thing I find is it logs (at first to home, then to ~/.config which it shouldn't) by default, I thought log should be opt-in? If not we can just log to /tmp right? See #64
from helix.
What if we do like -u <config>
or -u none
? none
to disable config.
from helix.
it's just the log function, we shouldn't just disable the config. Maybe we can make it /tmp by default or spare, and when the log file unwriteable , the editor should be useable, and don't forget the warning info
from helix.
We follow the XDG specification on Linux/macOS, so if you set XDG_CACHE_HOME
it'll look for a helix
folder there. I think that should be the preferred solution, since that way you're able to fix all applications that rely on XDG.
I think we don't need a separate flag to disable this because we'll be leveraging the cache even more in the future (to store :command history, /search history, persist undo states & document positions across restarts etc)
from helix.
We follow the XDG specification on Linux/macOS, so if you set
XDG_CACHE_HOME
it'll look for ahelix
folder there.
Not sure I get that correctly. I already have XDG_CACHE_HOME
, XDG_STATE_HOME
and XDG_CACHE_HOME
set to writable and existing directories (and also added a helix
folder in each, just to be sure), but the logging error is still there.
Am I overlooking a setting / flag I need to give at startup?
from helix.
Sorry, that was my fault. It does indeed log to XDG_CACHE_HOME/helix/helix.log
now.
Thanks :)
from helix.
@mennthor Ah, no. Thanks for sending in the issue request. It was only since 0.0.10 doing that but 0.0.9 doesn't have this. Closing this as it isn't an issue, it was also shown in -h
.
from helix.
Related Issues (20)
- Goto matching bracket (`mm`) in comment jump to the wrong place HOT 1
- Order files by names when searching in the file picker. HOT 1
- JSON schema for config files HOT 1
- :q (quit) command unexpected behaviour (unsaved buffer) with auto-save by delay HOT 1
- Incorrect syntax highlighting with CRLF line endings HOT 1
- Honor whitespace escape sequences in `yank-join` HOT 4
- Add ability to update the window title HOT 2
- Using the built-in emmet tools in vue-language-server
- Markdoc default LSP should be changed from deprecated to official version HOT 1
- Misalignement in the diagnostic picker HOT 2
- Running command/script with sudo inside `:sh` HOT 1
- Completion replace not fully replacing when in macro string literal HOT 1
- Dim effect not working on WezTerm
- Ubuntu 24.03 snap package - :w causes file sort HOT 2
- Swap the "<space>f" and <space>F" bindings HOT 1
- The `move` command should request conformation before overriding
- Add option to disable sorting for file picker
- (config help) Swap the "<space>f" and <space>F" bindings HOT 3
- Using :w as shortcut in insert mode leaves buffer with unsaved marker
- Using `diff` in gutters twice makes Helix get stuck
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 helix.