-
Notifications
You must be signed in to change notification settings - Fork 295
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
[Python] --fableLib fable-library
crashing dependencies.
#3832
Comments
In theory For example, in JavaScript you write The idea being, if you publish several Fable compiled package from NPM, it will allows them to use the save file which avoid problems with equality because the constructor class is different etc. With all this introduction, we need to check how Python handle import from registry like PyPi or the NPM equivalent in Python and check if we are actually generated the correct code. It is also important to note, that at the time of writing we are only publishing pre-compiled version of The published version of To do so, we should create a To sum up if we want to consume
@dbrattli Do you agree with this actions plan ? |
So a simple fix would be Edit: Of course only after an update to the library |
If this is how we access the Edit: I should have some time next week to look into working on automating the publishing of the package |
There used to be a hidden feature that if you did |
I've done a couple of stabs at this but I'm a bit confused about what to do with e.g other NuGet dependencies. Should those also be imported from |
So we do actually have such a situation. Our libraries |
Is that common dependency also available on PyPI? What is the problem you get? It would be really great if we could describe the problem at a higher level, i.e as a developer I want to ... but the problems is that ... This issue starts with a traceback, but I would like a better description of what you are trying to solve and what the problem is |
As a consortium we are interested of publishing libraries to multiple programming languages based on one common code base, but the problem is that complex systems are currently not fully supported by fable. As a developer i want to publish multiple libraries based on fable libraries to multiple programming languages, but dependency handling is not supported (as far as i know). The following example: classDiagram
class fscore["FsSpreadsheet.Core"] {
isFableCompatible: true
}
class fspy["FsSpreadsheet.Python"] {
isFableCompatible: false
}
class ARCtrl {
isFableCompatible: true
}
ARCtrl ..> fscore
fspy ..> fscore
We want to publish two libraries I hope this helps 🙂 |
Only Regarding others libraries imports, there is this issue #3737 which tracks the ideas of allowing user to redirect a NuGet import to source from another source like NPM, PyPi, etc. Consuming pre-compiled library comes with limitations for example, I think you will not be able to expose an
One reason, for importing It allows them to use the same source for |
I am not sure if this is intended or not, but using
--fableLib fable-library
will crash the dependencies of the published files:This is the command i use for transpilation
dotnet fable <path> -o <out_path> --noCache --lang py --fableLib fable-library --noReflection
This results in an empty
fable_modules
folder and the following error message:This is what the python file looks like
This is what the dependencies look like:
The text was updated successfully, but these errors were encountered: