Code Monkey home page Code Monkey logo

Comments (5)

bdkjones avatar bdkjones commented on June 21, 2024

Please upload an example project I can use to test this. Thanks.

from codekit.

jaimeeee avatar jaimeeee commented on June 21, 2024

I won't upload a project because it is like 7k files and my internet isn't the greatest, but it is quite easy to make a new one, since it happens even on a brand new project:
https://laravel.com/docs/5.2/installation

I configure apache normally, just a virtual host on laravel.local or whatever, and then add the project to codekit, it doesn't matter if it is through the browser refreshing port or directly to apache.

It has this folder called /storage/framework/sessions with files with an MD5 or SHA-1 hashes, then just go to your code kit browser refreshing address or your virtual host, and as soon as you enter, Laravel makes a new session file, and every time you change page it will update it and codekit will make a "compiled" version that it is exactly the same content, on the same folder but with a dot at the end.

By the way, the right click > skip this folder doesn't work correctly (I will look up if there is already an issue for this), but it adds it to the Skipped Folders field, it refreshes the project but it doesn't really ignore it? Or is it because those files (the session files) are already on the codekit3.config files array?

from codekit.

bdkjones avatar bdkjones commented on June 21, 2024

What's the status of this in RC1?

from codekit.

dnabeast avatar dnabeast commented on June 21, 2024

It's still occurring. My system gets into a loop. Codekit refreshes the browser. Refreshing the browser writes a new session file over the top of the old session file. A duplicate file is written with a dot at the end. Codekit sees a new file has been updated (even though its contents hasn't changes) and refreshes the browser. Refreshing the browser writes a new session file. Repeat.

I've tried to set ignore on the folder storage/framework/sessions but it doesn't help.

However, if I ignore the storage folder it seems to right itself.

I found my own work-around which was to change the session in the .env file from "file" to "cookie" and it works fine (as Codekit isn't writing over the cookie)

*edit. It also works if I just select 'sessions' as a folder to ignore.

from codekit.

bdkjones avatar bdkjones commented on June 21, 2024

Okay. Testing with RC1, when I right-click the sessions folder and choose "skip this folder", it is indeed skipped correctly. That's the solution to this problem—if you're using a framework that spits out caches or logs, you need to tell CodeKit to ignore that location. There's no way for the app to know, "Oh, this is just a log file; I don't have to do anything" because every framework writes them differently and in different spots.

That said, I've added the path to this sessions folder as one of the default skipped paths for New Projects. This will not apply to beta testers, but it will for anyone who installs the app for the first time from now on. Beta testers can do the same by editing New Project Defaults and adding /storage/framework/sessions to their list.

from codekit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.