Add parameter to ignore collisions possible ?
See original GitHub issueHi,
this project is amazing, thanks for sharing it.
I wonder if I could add nix packages (pyls-mypy
and sorts) when they cause collisions as in
collision between
/nix/store/y04m7z8k5p2d725v4csw32md7w64j4h9-python3-3.7.6-env/bin/.chardetect-wrapped' and
/nix/store/2ry9dqdgjzy8p699ri0sp1rq86bvmdah-python3-3.7.7-env/bin/.chardetect-wrapped’
I hoped something along the lines (snippet incomplete) of
let
myMachnix =
let
mach-nix = import (builtins.fetchGit {
url = "https://github.com/DavHau/mach-nix/";
ref = "2.0.0";
});
in
mach-nix.mkPython {
disable_checks = true;
requirements = ''
notebook
pandas
numpy
dropbox
lockfile
curlify
openpyxl
xlrd
tqdm
requests
cython >= 0.23.5
bokeh == 0.12.7
flexx == 0.4.1
normality == 0.6.1
dataset == 0.8.0
tornado
'';
};
in
{
home.packages = with pkgs; [
((python3.withPackages (pkgs: with pkgs; [
# for emacs, also https://nixos.wiki/wiki/Vim#Vim_as_a_Python_IDE
python-language-server
# the following plugins are optional, they provide type checking, import sorting and code formatting
pyls-mypy # sind in nixpkgs, nicht in pypi
pyls-isort
pyls-black
])).override (args: { ignoreCollisions = true; })) # doesn't ignore collisions with mach-nix env though
myMachnix
];
}
would do. But it seems I had to add the override to myMachnix as well. I just don’t know how to do that.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Scripting API: Physics.IgnoreCollision - Unity - Manual
If ignore is false, collisions can occur. Set ignore to true to ignore collisions. See Also: Physics.IgnoreLayerCollision. using UnityEngine; using System.
Read more >How do i get some objects to ignore collision with a specific ...
Then you can either set the collision matrix in: Edit > Projects Settings > Physics2D. Or you can use Physics2D.IgnoreLayerCollision().
Read more >How To Ignore Collision Between Two Objects On The Call Of ...
Now i go to: Edit > Project Settings > Physics Here i can check the box which will turn off collisions between my...
Read more >HANDLECOLLISIONS | NOHANDLECOLLISIONS
Use the HANDLECOLLISIONS and NOHANDLECOLLISIONS parameters to control whether or not Replicat tries to resolve duplicate-record and missing-record errors when ...
Read more >Oracle GoldenGate: Handle Collision Parameter and its usage
The HANDLECOLLISIONS parameter is used to overcome these collisions. There are 3 types of Collisions: Insert Collision – When a row is inserted ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK, I think I get the problem now. You are trying to mix two different python environments. The
ignoreColisions
only applies to each of the environments individually, but not for the combination of both. I guess the way you try to mix environments doesn’t work in general. But there are other ways to do it.First of all, it is not really necessary to manually mix python packages from nixpkgs into mach-nix. All python packages from nixpkgs are available to mach-nix already, just put them into the requirements of mach-nix like this: (note: python-jsonrpc-server causes some strange bug which is fixed by switching the provider)
If you really need to mix two environments, then you could use the lower level mach nix function
machnix.machNix
to generate pythonOverrides and a package selector for the mach-nix part, and then mix this together with some packages you take from nixpkgs: (I don’t really like this interface yet and will probably change it in an upcoming release)EDIT: Another bug prevents prevents this from working: https://github.com/DavHau/mach-nix/issues/27
I think I got your example now:
is working no problems.