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.

cacheFile not working

See original GitHub issue

Title says it all; the cacheFile field doesn’t result in a cacheFile being generated or used.

I’m using grunt-browserify@5.2.0, grunt-cli@1.2.0, grunt@1.0.1, and right now it actually isn’t even generating the cacheFile - Normally when/if it does, it’ll always just be a blank empty file.

If I run browserify-incremental, that works fine, and the cacheFile it generates will be used once by grunt-browserify, before replacing it with an empty file.

If I type in anything (be it an empty object {} or asdf), the cache file seems to be ignored - only when it’s a valid cache does it seem to be replaced with an empty file afterwards.

The console output looks like it thinks it’s writing to cache:

Running "browserify:dev" (browserify) task
>> 11101719 bytes written (3.52 seconds)
>> Bundle public/static/js/main.js created.

I’m using the aws-sdk, and so would really, really love to have this working, since my js build time is currently 2 seconds with an end size of about 10mb.

These are my grunt dependencies:

        "browserify-incremental": "^3.1.1",
        "grunt": "^1.0.1",
        "grunt-browserify": "^5.2.0",
        "grunt-contrib-clean": "^1.1.0",
        "grunt-contrib-copy": "^1.0.0",
        "grunt-contrib-eslint": "0.0.5",
        "grunt-contrib-less": "^1.4.1",
        "grunt-contrib-watch": "^1.0.0"

(I included browserify-incremental just on the off chance it might help).

I’m running Windows 10, have had no errors or exceptions given to me by Node, NPM, Grunt, Grunt-Browserify, Browserify-Incremental, or anything else to indicate that anything is amiss.

I’ve stuck console.log calls with the properties in the actual runner.js file, with all signs seeming to indicate that the cacheFile property is being passed correctly, and that there are no errors happening.

I’ve tried hard-setting the cache location to a number of places, including to C:\cache.json, with no luck (not even errors, which is actually what I expected would happen, because Windows/UAC).

I’ve tried running directly from IntelliJ (via it’s Grunt command window), from PowerShell in IntelliJ, and in an admin-elevated PowerShell outside IntelliJ; all with no luck or change. command window), from PowerShell in IntelliJ, and in an admin-elevated PowerShell outside IntelliJ

I’ve not got a lot of time on my hands right now, so I’m a little loath to do any ‘try with a fresh new project stuff’ (I’ll do it, but it might just take a day or two, and I’ll grumble under my breath while doing so), but I’m happy to try and provide as much extra information as I can, if I’ve missed something (and try new things with my current project of course).

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DirtyHairycommented, Oct 13, 2017

Sorry for the delay, I promise to look at it this weekend 😏

1reaction
DirtyHairycommented, Oct 2, 2017

Hi @G-Rath ! I have seen the issue, but have not yet found time to look at it myself. I’ll see if I can reproduce and troubleshoot it the next few days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error - About cache file not found upon App start
I was trying the app I created which is offline capable using LoadData and SaveData. The app works perfectly when I tested it...
Read more >
Cache file not working on webapp - Bug - AppGyver forums
Cache file not working on webapp ... Hi, this is likely due to the platform used – the caching flow functions are only...
Read more >
Cachefilesd (cachefiles) everything seems to be set up, still ...
I have seemingly everything set up, however cachefilesd starts normally, however caching isn't functioning. Here is output of commands, which I ...
Read more >
CACHE File Problems: Why Your PC Won't Open CACHE Files
Few things are as frustrating as receiving CACHE files that your PC refuses to open up. Understanding the reason why it won't work...
Read more >
1900835 – Multus errors when cachefile is not found
Summary: Multus errors when cachefile is not found ... Description of problem: Error looks like: ``` Nov 22 20:37:32.217248 ...
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