GithubHelp home page GithubHelp logo

Comments (11)

sir4ur0n avatar sir4ur0n commented on August 10, 2024

Hm, actually this might only happen when using Nix: in the Git repository, scripts are already .rw-r--r--, but in the Nix store they are .r--r--r-- (which is to be expected). I'll see if we can add a non-invasive change to the file-copying logic to reset permissions correctly.

from code-compass.

ag91 avatar ag91 commented on August 10, 2024

right, maybe it is just a matter of modifying the postInstall clause in your nix recipe no?

from code-compass.

sir4ur0n avatar sir4ur0n commented on August 10, 2024

Hmmm no, all files in the Nix store are read-only, this is not negotiable or modifiable in any way 😅 This is a fundamental aspect of Nix.

I can think of 2 ways:

  • stop copying the scripts, and instead just run them from the c/path-to-code-compass location
  • we add a set-file-modes command after copy-file in c/copy-file. I think this would be transparent for non-Nix users

I think the first suggestion is the most sensible, right? Or is there a reason to copy/duplicate the scripts that I am missing?

from code-compass.

ag91 avatar ag91 commented on August 10, 2024

mmm, I like the copying as you can see what scripts were used for your analysis in the artefact directory. Going to add the set-file-modes

from code-compass.

ag91 avatar ag91 commented on August 10, 2024

hopefully this solves your issue

from code-compass.

sir4ur0n avatar sir4ur0n commented on August 10, 2024

I think you missed c/generate-host-edge-bundling-html 😅 These also trigger an error on second execution

from code-compass.

sir4ur0n avatar sir4ur0n commented on August 10, 2024

PS: I notice that from a fresh start (after I remove /tmp/code-compass-<REDACTED>):

  • if I run c/show-coupling-graph, everything works as expected, including opening the browser
  • if I run c/show-coupling-graph-sync (useful because with the async mode, the log messages are not displayed in *Messages* buffer), then it correctly generates all the files in /tmp/code-compass-<REDACTED> but it does not open the browser 🤔

Is that the expected behavior? 😅

from code-compass.

ag91 avatar ag91 commented on August 10, 2024

I think you missed c/generate-host-edge-bundling-html sweat_smile These also trigger an error on second execution

those file shouldn't be executable as the browser should deal with them. What error did you get?

from code-compass.

ag91 avatar ag91 commented on August 10, 2024
  • if I run c/show-coupling-graph, everything works as expected, including opening the browser
  • if I run c/show-coupling-graph-sync (useful because with the async mode, the log messages are not displayed in *Messages* buffer), then it correctly generates all the files in /tmp/code-compass-<REDACTED> but it does not open the browser thinking

Is that the expected behavior

expected: the async-run is opening the server. I used the sync analyses for debugging mostly. If I have time I will redesign that

from code-compass.

sir4ur0n avatar sir4ur0n commented on August 10, 2024

those file shouldn't be executable as the browser should deal with them. What error did you get?

On second execution of c/show-coupling-graph-sync, c/generate-host-edge-bundling-html is executed a second time, which copies the edge-bundling files. So similarly to the other files, if they don't have the w permission, the second copying fails.

from code-compass.

ag91 avatar ag91 commented on August 10, 2024

lol sorry, working on this in the evening means that I am very slow at understanding what is going on. I just needed read write permission. Fixed both issues you raised: thanks for spotting this through Nix.

from code-compass.

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.