Skip to content
Discussion options

You must be logged in to vote

createModelReference should only be called on a file that already exists on the virtual filesystem, so it won't work for your inmemory model indeed, you have 2 solutions:

  • the function takes a second argument with the content of the file, it will be written on the memory filesystem just before actually calling createModelReference, but I don't recommend it depending on your needs (before it's hard to clean the file that will remain in the memory filesystem otherwise forever)
  • register your files just like in the demo. it allows you to remove your filesystem overlay when you don't need it anymore. You can use the default RegisteredFileSystemProvider or use any other implementation of yours …

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@alissa-tung
Comment options

@CGNonofr
Comment options

@alissa-tung
Comment options

@alissa-tung
Comment options

Answer selected by alissa-tung
Comment options

You must be logged in to vote
2 replies
@CGNonofr
Comment options

@alissa-tung
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants