-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
clarify instructions for contributing to Dash on Windows #2889
Comments
So, this leaves the question, where is I have also tried in Git Bash terminal earlier, but I didn't keep the error message from that terminal. In any case that also didn't work. |
I was hoping that running I am at a loss for how to continue. Some guidance would be much appreciated.
|
In an attempt to push forward with creating a PR, I attempted to just copy the changes that @ann-marie-ward proposed in #2880 (hoping that I wouldn't have to run any tests as they already ran in that PR). However, I can't even commit my changes to my local git repo. It presents the following error:
The file definitely exists and has full access permissions. I did The contents of the pre-commit file is
On the advice of ChatGPT I updated the file to:
Performing the git commit again, the script now runs, however, it produces this output log:
It seems I am being blocked by the Dash setup at every opportunity possible. I will pause working on this issue until I can get some guidance on how to resolve the above issues. Thanks in advance |
Hello @aGitForEveryone, You need to run these commands for bash. First-build runs some things that the unix systems take for granted. XD first-build fixes this part (as the install of these components is automatic in unix): You need to make sure that you are running the virtual environment in the bash terminal, otherwise you will end up with errors about different libraries not being imported. |
Hi @BSd3v, So, finally I got it working with the Git Bash terminal. I did try that before, but it had failed in me as well. Most likely the result of all the attempts to get the full environment working. It must have broken my Node environment, causing the process to fail. Plus I was also fighting the firewall on my laptop, which prevents access to the Javascript central repositories. Given that the deployment process takes a lot of time, it kept re-enabling itself during the process. In any case, I deleted/uninstalled everything I had and redid the full process in a clean environment and got it working. I wrote down the steps and will make a PR to update the Contribute guide with my findings. One error is still plaguing me. Like mentioned above, the pre-commit hook still doesn't want to run:
I have verified that the file exists, and that read access is not blocked for the file. For now, I was able to circumvent this error by splitting the process and using the
Any idea how to tackle this issue?
|
Hmm, it's interesting because I didn't have to do many steps to get through the process. I did it from scratch the yesterday. The main thing was opening the git bash and virtual environment. But I look forward to what you have for your PR. As far as the verify hooks, yes, it is a pain. For me, I use source tree, which you can bypass the commit hooks. |
In the end, it was indeed just following the steps you listed in the contribute guide, but on my laptop all the build steps together takes about an hour to complete. (Plus I don't know what happened to my Node environment. Also, I have little experience with JavaScript, so I am quite unable to precisely debug the state of my Node environment. In the end, uninstalling and deleting everything didn't really take a lot of time and was the easiest way to restart with a clean environment) But if I understand you correctly, the pre-commit hook is there to be ignored? :p At least, there is no solution available to make it working? |
Yes, they are working on decreasing the build time for this, windows itself seems to take longer to build than on other systems. Webpack is going to eventually be replaced with something that will take less time as well. The good news though, is that this process should only need to be run once and the rest of the time you can just do the
|
I am trying to create my first contribution to Dash. I work on Windows, but the instructions for setting up the environment on Windows are unclear. Furthermore, one of the internal scripts uses
sh
to execute some scripts, making it impossible to run thenpm build first-build
command viaPowerShell
or aCommand Prompt
.Is it possible to give more clear instructions to set it up? I am currently trying to get it working from a WSL2 terminal, however I would like to stay within the Windows ecosystem as that integrates better with the functionality that my Pycharm IDE provides me while working with Python. (and WSL2 is slow on my system)
To be specific, my installation process failed when running the command
npm run extract
(which is part of thefirst-build
script). This will in turn call"extract": "cd scripts && sh extract-all.sh",
fromdash-html-components
, where the error occurs. The error is thatsh
is not known inPowerShell
orCommand Prompt
. There might be errors afterwards as well, I didn't get to that yet.The text was updated successfully, but these errors were encountered: