Pyry Kontio

Results 93 comments of Pyry Kontio

So I snuck a print statement in the start of `xnu.py` which was at the bottom of the callstack mentioned above. It says: ``` ['/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A', '/Library/Developer/KDKs/KDK_11.6.5_20G527.kdk/System/Library/Kernels/kernel.dSYM/Contents/Resources/Python/lldbmacros', '/Library/Developer/KDKs/KDK_11.6.5_20G527.kdk/System/Library/Kernels/kernel.dSYM/Contents/Resources/Python', '/Users/kon/Library/Python/3.8/lib/python/site-packages/voltron', '/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python', '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python38.zip',...

My `$HOME/.lldbinit` contains just ``` command script import /Users/kon/Library/Python/3.8/lib/python/site-packages/voltron/entry.py ``` and manually tweaking `/Users/kon/Library/Python/3.8/lib/python/site-packages/voltron/entry.py` to print `sys.path` at start yields: ``` ['/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A', '/Users/kon/Library/Python/3.8/lib/python/site-packages/voltron', '/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python', '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python38.zip', '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8', '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/lib-dynload', '/Users/kon/Library/Python/3.8/lib/python/site-packages', '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages', '.']...

We're getting closer! `/Users/me/entry.py` is an one-liner that prints the current `sys.path`. `.lldbinit`: ``` command script import sys;print(sys.path) command script import /Users/me/entry.py ``` ``` ['/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A', '/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python', '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python38.zip', '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8', '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/lib-dynload', '/Users/me/Library/Python/3.8/lib/python/site-packages',...

That would work, if it would accept any kind of python statements, but seems the expression you can use there has some rather haphazard limitations. First of all, `import` is...

Could it be that it caches something? And now that you mention it, how does it even find `memory.py` from a subdirectory of voltron, `plugins/api/memory.py`? Btw. I renamed that file...

Oh, there was the "API change proposal" thing. Thanks for the pointer. I'll send one later this week!

I mentioned this in the ACP, but apparently `PartialOrd` supports having a different type for the RHS operand, which means that this functionality could be plausibly implemented as a `PartialOrd`...

@aleokdev Unlikely to happen. I think @Gankra's blog post "The Pain Of Real Linear Types in Rust", that for some reason is not linked in this thread, killed the feature...

Thanks, seems to work now. Oh, I was close! I'm still a bit new both to flakes and home-manager, so I easily get lost.

Thanks! I tried it, but it says that [this](https://github.com/nix-community/nixos-vscode-server/commit/b988e24b59e29a3daf040cf8e8634eb42b1453c3#diff-fcfdb6569e08be30d67343c788f5a47d0b1f550d0e607a7566479074c5e8950aR1) gets called with with unexpected argument 'config': ``` $ home-manager switch error: anonymous function at /nix/store/15nzw95lskfcl959zhhndq866590q6i7-source/modules/vscode-server/default.nix:1:1 called with unexpected argument 'config'...