question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create new temporary directory/resource extension

See original GitHub issue

After Marc Philipp implemented the @TempDir extension in Pioneer, it was later also added to Jupiter. It didn’t (and as of September 2020 doesn’t) support custom file systems, but other than that is more feature-rich than Pioneer’s variant. This creates an unpleasant situation where there are two extensions that solve the same problem with the same approach, but slightly different feature sets (and an identical name to boot).

That said, there are a lot of feature requests for Jupiter’s variant (⚠️ some of these are already implemented! ⚠️):

After evaluating the situation in #277, we decided to remove the extension before the 1.0 release with the goal to look for a better solution to the problem in the future (i.e. this issue). So the task is to come up with a temporary directory (or, more generally temporary resource) extension that covers more than what Jupiter does, possibly with an approach that makes different trade-offs (so users of Jupiter and Pioneer have more choices to solve their specific problem).

One interesting proof of concept to look at is @sormuras’: 1, 2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:32 (31 by maintainers)

github_iconTop GitHub Comments

1reaction
jbduncancommented, Nov 11, 2021

I’ve been on @nipafx’s Twitch stream tonight, doing some remote pair programming - thank you very much for your help, Nicolai! - but I now have to solve some other seemingly concurrency-related bugs that have cropped up (noted in my uber TODO list further up). I’ll report back when I have the time to delve into things further.

1reaction
jbduncancommented, Oct 15, 2021

Great news, I’ve fixed the illusive bug! So now the only thing I think I have to do is address the thread safety.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create temporary file with specified extension suffix in Java
A temporary file with the specified extension suffix can be created using the method java.io.File.createTempFile(). This method requires two ...
Read more >
directory Resource - Chef Documentation
Use the directory resource to manage a directory, which is a hierarchy of folders that comprises all of the information stored on a...
Read more >
OpenTypeExtension size limitation for Organization resource
An application can add up to two open extensions per resource instance. ... by the documentation), or if it is more likely to...
Read more >
VirtualFileSystem (Oracle Fusion Middleware Java API Reference ...
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference ... Creates a new empty temporary file in the specified directory using...
Read more >
Java - Read a file from resources folder - Mkyong.com
Is there a way to avoid the temporal file? Can we make a File object for something in memory? 1.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found