New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
astroid: 0.11.1 -> 0.13 #44226
astroid: 0.11.1 -> 0.13 #44226
Conversation
@GrahamcOfBorg build astroid |
Success on aarch64-linux (full log) Attempted: astroid Partial log (click to expand)
|
Turns out there's still a problem with email composition, it loses the body of the message. Trying to figure out if this is Nixpkgs-related or not. |
Really happy to see a PR but can't we make the vim dependency optional ? astroid can be used with any editor last time I tried. |
Success on x86_64-linux (full log) Attempted: astroid Partial log (click to expand)
|
@teto it can, indeed -- I just wanted to include it because without it, by default, astroid won't be functional. Should I make it optional but enabled by default? |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: astroid Partial log (click to expand)
|
Couple of things were updated to make this work. 1. webkitgtk24x-gtk3 that is marked unsafe has been replaced with webkitgtk (2.20.*) as astroid has recently indicated that [>= 2.20 is acceptable](astroidmail/astroid@48ce7e3) 2. protobuf built input was added to satisfy requirements 3. astroid was not functional at all without proper icons so gnome3.defaultIconTheme were added to buildInputs 4. By default, astroid will use `gvim` as a setting for the embedded editor, however that didn't work well with nixpkgs. vim is now bundled with astroid by default. This setting can be overridden by the user in astroid's config file.
I've updated this PR to make Also, the issue with composition feature is only happening in certain configurations, and is not Nixpkgs-specific. It's been acknowledged and is being worked on astroidmail/astroid#532. It only affects some users. |
I could build it locally but it crashed on startup
anyway, I am still reluctant in having vim as a default dependency. Can't astroid use the value of EDITOR instead ? in worst case, it won't launch the editor and print a warning. If you insist in having nix manage the configuration, I recommand to look at the new home-manager infrastructure for mails, some cool stuff is happening nix-community/home-manager#318 |
Not sure about the crash, I think this one is worth reporting in the astroid repo. As for EDITOR, we can make a patch for that, but it won't help with all the arguments it is passing to gvim. If we just switch this to EDITOR, I believe, often times, the end-user will be getting a mail client that can't compose e-mails at all. What are the main concerns about using vim by default to support astroid's default configuration? It can be turned off or replaced with a different dependency if the user wishes so. |
Nix doesn't manage the configuration per se in this case, but just sets working defaults for astroid to produce when the new configuration file is produced. If this concern is a roadblock, I can, of course, remove this dependency altogether (or disable it by default), but I think it'll make it for a much more confusing initial experience ("why does e-mail composition not work?") |
I don't see that much of an issue with vim being a default dependency, and I do think there is value in having functional default behaviour. One thing I'm not sure about is the specific version of vim? I'd also note that EDITOR is often set to a terminal-only editor, in which case it's non-trivial to have sensible behaviour, as it would have to a) decide if EDITOR is graphical or not, and b) if not, decide which terminal emulator to launch it in. If this continues to be a concern, then maybe split the PR into a version update and adding vim as a dependency, so that at least the security-critical update can be used? |
I am no nixpkgs maintainer so feel free to ignore my comments :) My
experience with nixpkgs is that maintainers do pay attention to closure
size and while vim isn't huge it's not light either (also depends which
one, if you pull gvim then ouch)
I don't use vim but changing the astroid package would imply recompiling
astroid (which I would rather avoid for this kind of medium-sized
application).
For people using vim, vim would be in PATH most likely so it should work
out of the box, for the others they would change the setting anyway.
Astroid needs a fair bit of configuration anyway (notmuch, poll mechanisms
etc) so I am not too concerned about the out of the box experience. It
would be realy improved with home-manager integration.
I've said too much, let's hope a nixos member chimes in.
2018-08-09 19:52 GMT+09:00 Thomas Kerber <notifications@github.com>:
… I don't see that much of an issue with vim being a default dependency, and
I do think there is value in having functional default behaviour. One thing
I'm not sure about is the specific version of vim? I'd also note that
EDITOR is often set to a terminal-only editor, in which case it's
non-trivial to have sensible behaviour, as it would have to a) decide if
EDITOR is graphical or not, and b) if not, decide which terminal emulator
to launch it in.
If this continues to be a concern, then maybe split the PR into a version
update and adding vim as a dependency, so that at least the
security-critical update can be used?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#44226 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA2FOqRV0IwEkxJguJXMC7ifnJeVqylQks5uPBSAgaJpZM4VmMOM>
.
|
what is the best way to reach a resolution on this issue? |
What should I do with this PR? |
I think this is fine for now and can be improved further at a later point! Definitely nice to remove that ancient webkitgtk dependency here! |
Couple of things were updated to make this work.
webkitgtk (2.20.*) as astroid has recently indicated that >= 2.20
is
acceptable
were added to buildInputs
gvim
as a setting for the embeddededitor, however that didn't work well with nixpkgs. vim is now
bundled with astroid by default. This setting can be overridden
by the user in astroid's config file.
Motivation for this change
Astroid 0.11.1 is outdated
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)