John Yani

Results 209 comments of John Yani

The main issue is that C++ types don't quite map to Python types. Python lacks the assignment operator override. Also, some setValues are mapped manually. It means there are a...

Maybe some hybrid solution. For example, some manual mapping: ``` SbVec3f = Tuple[float, float, float] SoMFVec3f = Sequence[SbVec3f] ``` But I don't have enough experience with Coin to determine the...

Figured out the `SoMF*::setValues` pattern: ![image](https://user-images.githubusercontent.com/361985/92623309-b7db2a80-f2ce-11ea-9bb7-cd44324b00a0.png) ``` >>> coin._coin.SoMFVec3f_setValues([(1,1,1)]) Traceback (most recent call last): File "", line 1, in TypeError: Wrong number or type of arguments for overloaded function 'SoMFVec3f_setValues'....

Here's what I have so far: https://github.com/Vanuan/pivy_coin_stub_generator TODO: - for each method name check if the method name is in some "magic" list - handle each magic method - handle...

@looooo Coin is a massive library. I couldn't make much progress on generating typings. Only stubs so far, which should be edited manually to match C++ types to corresponding Python...

My latest progress is here: https://github.com/Vanuan/freecad-python-stubs/tree/in_progress/stubs/pivy/coin

Can't install it from git. It's strange. It says `Cannot find module 'node_modules/sails-swagger'`

I'll use this temporarly: https://www.npmjs.com/package/vanuan-sails-swagger

@sean-mcmanus So you're saying `cpptools-srv` is closed source? Is it possible to run cpptools extension with `clangd` as LSP server? Or should we look into https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd ?