Skip to content

IDBFS is Not defined #74664

Closed
Closed

Description

@sajjadarashhh

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

i've been use IDBFS File system module to use sqlite in blazor wasm .net 7 preview 7
but IDBFS is not defined in release mode.
also i've add : <EmccExtraLDFlags>-lidbfs.js</EmccExtraLDFlags>
to my .csproject file

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Activity

  1. transferred this issue fromdotnet/aspnetcoreon Aug 26, 2022
  2. ghost added
    untriaged
    on Aug 26, 2022
  3. added
    arch-wasm
    on Aug 29, 2022
  4. SamMonoRT commented on Aug 29, 2022

    @SamMonoRT
    Member

    @lewing @radical @kg - please triage

  5. radical commented on Aug 29, 2022

    @radical
    Member

    i've been use IDBFS File system module to use sqlite in blazor wasm .net 7 preview 7
    but IDBFS is not defined in release mode.

    • how does it fail?
    • how are you building this? If it is from the command line, then can you please add -bl, and share the generated msbuild.binlog?
  6. added
    needs-author-action
    on Aug 29, 2022
  7. added this to the 8.0.0 milestone on Aug 29, 2022
  8. ghost removed
    untriaged
    on Aug 29, 2022
  9. modified the milestones: 8.0.0, 7.0.0 on Aug 29, 2022
  10. 14 remaining items

  11. sajjadarashhh commented on Aug 29, 2022

    @sajjadarashhh
    Author

    @lewing sorry but it's available in .net 6 and have breaking changes in .net 7.
    this not better to solve this in .net 7?
    I think this not a bug or new feature this is changed in .net 7 but I don't know how to use it in .net 7 and i dont find any documentation about this

  12. radical commented on Aug 29, 2022

    @radical
    Member

    sajjadarashhh/Test.net7
    i've created this repo to described another problems and now make few changes to described this problem.
    when start debugging error logged to console in browser.

    I tried this repo, and it fails with:
    Screen Shot 2022-08-29 at 5 39 38 PM

    Is this the error that you were talking about?

    @pavelsavara Does this look related to the new interop API? Maybe MudBlazor needs to make changes for that.

    problems is about my codes in wwwroot/file.js

    I don't see this file. Also, I don't see any -lidbfs.js, or window.Module.*.

    @TanayParikh I don't see a runtime issue as yet. Should I move this to aspnetcore?

  13. sajjadarashhh commented on Aug 29, 2022

    @sajjadarashhh
    Author

    @radical Oh sorry no!
    this issue is not about .net,wait i check repo and take again

  14. sajjadarashhh commented on Aug 29, 2022

    @sajjadarashhh
    Author

    image
    i dont know how do you get this error.
    but i have this problem.
    @radical

  15. sajjadarashhh commented on Aug 29, 2022

    @sajjadarashhh
    Author

    please get latest changes of repo i have few changes for your problem

  16. radical commented on Aug 29, 2022

    @radical
    Member

    With wasm-tools workload installed, and using <WasmBuildNative>true</WasmBuildNative>, I can reproduce the issue.
    @pavelsavara does IDBFS need to be exported in our API?

  17. lewing commented on Aug 30, 2022

    @lewing
    Member

    @lewing sorry but it's available in .net 6 and have breaking changes in .net 7. this not better to solve this in .net 7? I think this not a bug or new feature this is changed in .net 7 but I don't know how to use it in .net 7 and i dont find any documentation about this

    @sajjadarashhh we plan to investigate this and fix it if possible. Marking the issue for net8.0 does not mean we won't fix it in net7.0. Once we have a fix it will be considered for net7.0 but specific emscripten features are not a part of the supported api.

  18. pavelsavara commented on Aug 30, 2022

    @pavelsavara
    Member

    The Net7 runtime is not spilling the emscripten guts into JS global namespace anymore.
    In your code
    https://github.com/sajjadarashhh/Test.net7/blob/f8280d225d1f4e549c129fc94cfa8b101ce9763a/MultipleEventHandlers/MultipleEventHandlers/wwwroot/file.js#L3-L4

    The IDBFS is not global anymore. Please try to replace it with window.Module.FS.filesystems.IDBFS

    Please re-open, if that doesn't help.

  19. sajjadarashhh commented on Aug 30, 2022

    @sajjadarashhh
    Author

    sorry.
    theres no documentation about this for .net?
    @pavelsavara

  20. ghost locked as resolved and limited conversation to collaborators on Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-Build-mono

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions