-
Notifications
You must be signed in to change notification settings - Fork 310
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
Fable 5.0.0-alpha.10 introduced path bug in python dependencies #4088
Comments
I found the breaking version |
Looking at the Changelog history, I suspect the error to be coming from this PR #4035 |
These lines seems suspect because it has |
I agree. I am a bit confused because of:
As backwards relative paths seem valid to me, here the relevant link to python docs. |
There is also this reference which seems to hint that |
I am looking into it |
Encountered another issue #4089 while working on this. Still trying to reproduce the issue with the wrong import of native code in the quicktest. |
Trying to debug the issue about fable imports of native code. The relevant tests are located in from ...tests.Python.more_native_code import multiply3 as multiply3_1
import ...tests.Python.native_code as native_code_1
from ...tests.Python.native_code import (add5 as add5_1, add7 as add7_1) When trying to reproduce this issue with the python quicktest in Therefore i assume this behavior is only triggered when the transpiled code is not in the same location as the fsharp source code. @MangelMaxime can you give me some guidance on how to make the quicktest transpile to temp? or another option on how to easily debug this issue? |
I have a fable compatible library with a test project. I encountered an error using this library with the newest fable alpha version, so i wanted to update the library. In this case from
4.19.3
to5.0.0-alpha.12
. The error i wanted to fix was gone, but instead i got a new error related to python import paths in fable dependencies.The test project has a dependency to
Fable.Pyxpecto
so myfable_modules
looks like this:And the error occurs in
fable_modules/fable_pyxpecto/pyxpecto.py
. I copied the relevant parts from each version down below.The imports in Fable.Pyxpecto are incorrectly done from the same folder level, instead of from the parent folder (see the code from 4.19.3).
Fable v5.0.0-alpha.9
Fable v5.0.0-alpha.10
The text was updated successfully, but these errors were encountered: