-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preconfigure arguments doesn't work #531
Comments
I forget to write how to reproduce:
Pre-configuring... The main problem is the argc 0 it should be argc 1 |
I believe #530 will fix the issue. We were incorrectly not putting space between the first argument and the command file. Feel free to pull down the code for that PR and try it, or wait until the pre-release channel has the fix. Thanks! |
Ok. I'll wait for next version available in the pre-release channel and report back. |
Just out of curiosity. you mentioned adding a space should solve the problem... |
@156898293 Ah, thank you for the follow-up, the suggestion I made definitely fixes a bug, but it might not be the bug you were hitting. I'll pull down your zip file and test right now. Thanks! |
@156898293 Could you post a screenshot of your issue? Also, what OS are you running? Is this on Windows? Linux? Thanks. |
The minimal project and description is above. I just pass arguments to my pre-cofigure scripts and in the script I print number of arguments as "argc #" |
@156898293 OH, I think I found the issue, it was a silly bug on my part (assuming I'm correct). Could you install this vsix and test for me? You'll need to download it, then rename the download to makefile-tools.vsix. You can then install that vsix directly by doing the following: |
working on it |
It definitelly behavies differently. However it is still not working... err: /tmp/wrapConfigureScript.sh: line 1: /home/xxxx/proj/preconfig.sh arg2 : No such file or directory Full logPre-configuring... |
@156898293 I appreciate you helping me test this, as I don't currently have a readily available linux machine so it would take more time for me to test. I have one more thing that would be helpful to test: Follow the same steps as before. |
It looks the same. I'm gonna remove the extension and make sure I installed the correct one. Pre-configuring... |
I just tried to run it natively on Linux (no SSH) and got the same problem. |
@156898293 Again, thank you for testing so quickly. I have what should definitely be the fix. Originally the issue was that we weren't handling the script arguments on linux. Then the issue was that I was improperly quoting the items of the script such that it was treating the args as part of the filepath, now, it should be fixed. |
OK the last .vsix works now! Great job. P.S. |
🎉 This issue has now been fixed and is now available in the latest release! 🎉 |
when lunching preconfigure script via makfile tools the "preConfigureArgs": [" arg2 "] option seems to be ignored.
makefile_precfg.zip
The text was updated successfully, but these errors were encountered: