Giter Site home page Giter Site logo

Windows and longPathAware? about star HOT 9 CLOSED

rcmlz avatar rcmlz commented on August 26, 2024
Windows and longPathAware?

from star.

Comments (9)

coke avatar coke commented on August 26, 2024 3

There is no application manifest for rakudo. Edit there does seem to be the framework for one in the libuv library in MoarVM, which has longpath enabled. But as this is a rakudo issue (not a star issue), please update/follow on the linked ticket.

from star.

coke avatar coke commented on August 26, 2024

rakudo/rakudo#5252

from star.

rcmlz avatar rcmlz commented on August 26, 2024

Thank you. I understand that UNC paths is the best solution as it e.g. does not require the user changing Windows (which would need superuser privileges) and can be solved purely on Raku side.

Out of curiosity, would activating LongPathAware during Windows build also technically work as a second-best quick fix solution? Would it avoid errors like this? (%TEMP% is set to D:\T)

[Term::termios] Failed to open file D:\T\Distribution%3A%3ABuilder%3A%3AMakeFromJSON%3Aver%3C0.6%3E%3Aauth%3Cgithub%3Aniner%3E.tar.gz\Distribution-Builder-MakeFromJSON-master.precomp\B91872E0D55CAE5C5DD2CF2D09E47281799D1DF2\6F\6FC744201967BC598B30F1D3B57900F48051601E.repo-id.PWRGT8L8UZW9YZYOEK1VKJFP.tmp: No such file or directory

from star.

coke avatar coke commented on August 26, 2024

I tried activating on my windows box, and it does not resolve the issue by itself.

from star.

rcmlz avatar rcmlz commented on August 26, 2024

OK. You just launched

New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
-Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force

or did you also do the second required step mentioned Here

The application manifest must also include the longPathAware element.

XML

<application xmlns="urn:schemas-microsoft-com:asm.v3">
    <windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
        <ws2:longPathAware>true</ws2:longPathAware>
    </windowsSettings>
</application

I assume the second step is done during compilation of Raku for Windows, right?

And I guess a reboot - after all is setup - might be needed. Just in case ...

from star.

ugexe avatar ugexe commented on August 26, 2024

MoarVM/MoarVM#1776

from star.

AntonOks avatar AntonOks commented on August 26, 2024

THANKS @ugexe !!!

@rcmlz As the topic has to be fixed outside Rakudo Star, I will close this issue. Ok?

from star.

rcmlz avatar rcmlz commented on August 26, 2024

sure, thank you all for addressing this.

from star.

AntonOks avatar AntonOks commented on August 26, 2024

tried to collect / summarize some of the issues, pulls and so on on https://github.com/rakudo/star/wiki/20_Windows

from star.

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.