-
Notifications
You must be signed in to change notification settings - Fork 26
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
unrecognized option -- - #70
Comments
I got further, still having issues. I'm running on OSX which uses BSD and doesn't support long getopt Had to run the bashdb installation using However, now when running I get this:
debug output
Please advise |
I assume this may be due to installing it without getopt support. Can you confirm if there is support for the short option names?
|
Also, whenever I stop the debugging process, it doesn't seem to exit properly... I have to 'reload window' for vscode to let me run it again. |
This extension was developed and tested with much newer bashdb version than:
Is there any reason for using older bash + older bashdb? |
Yes, Mac OSX runs bash 3.2.
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Michał <[email protected]>
Sent: Friday, June 22, 2018 1:47:34 PM
To: rogalmic/vscode-bash-debug
Cc: Ethan Edwards; Author
Subject: Re: [rogalmic/vscode-bash-debug] unrecognized option -- - (#70)
This extension was developed and tested with much newer bashdb version than:
/usr/local/bin/bashdb
Bourne-Again Shell Debugger, release bash-3.1-0.09
Is there any reason for using older bash + older bashdb?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#70 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ag-68UmCHghUbqduKuQlFjYRO11t2W3fks5t_TvGgaJpZM4U0Nl7>.
|
This is simplified command line used by extension:
The |
Hey @rogalmic thanks for your response Here's the output:
I believe this confirms what I suspected, that the long option names (e.g. I haven't dug into your codebase yet, so I apologize for 'taking a stab at a solution' without any real knowledge, but perhaps we could add a setting in Thanks in advance! edit: also, as an amusing easter egg... with short options bashdb still prints
|
:) Maybe @wataash can help you, since I believe he is using OSX together with this vscode extension. |
On bashdb@7504a22, the behavior of getopt_long was changed, which was included on bashdb-4.0-0.4. Could you try bashdb-4.4-0.92? (not 4.4-0.93 or later because of #69) I'll investigate it more from next week... :) |
Thanks for the response. I must use the version I'm using. If you read the readme in the sourceforge repo for bashdb, you will see that the version of bashdb correlates to the version of bash. It's not designed to always be ran with the latest version, thus I believe a project like this would benefit from knowing how to invoke various versions.
Thanks
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Wataru Ashihara <[email protected]>
Sent: Saturday, June 23, 2018 2:21:15 AM
To: rogalmic/vscode-bash-debug
Cc: Ethan Edwards; Mention
Subject: Re: [rogalmic/vscode-bash-debug] unrecognized option -- - (#70)
@eedwards-sk<https://github.com/eedwards-sk>
On bashdb@7504a22<https://sourceforge.net/p/bashdb/code/ci/7504a22/>, the behavior of getopts_long was changed, which was included on bashdb-4.0-0.4.
Could you try bashdb-4.4-0.92<https://sourceforge.net/projects/bashdb/files/bashdb/> (not 4.4-0.93 or later because of #69<#69>)?
I think it can be installed without --disable-getopt.
I'll investigate it more from next week... :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#70 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ag-68Y--xT6H5DClT5jIGaLhESja_00Rks5t_exrgaJpZM4U0Nl7>.
|
Makes sense! @rogalmic |
Summary of the issuebashdb on some environment can't parse
getopt(1) on linux:
getopt(1) on macOS:
|
OK, if it helps we will change that (it is quite small and safe change). However, because of limited development resources / time release candidate testing will still be done only with newer bashdb. |
Pull request with changes |
I found one issue while i was testing, seems newest bashdb does not recognize
version, help:
Any ideas how to tackle that? I would not like to make any if/else logic for supporting older version, at least not preferably. |
Any updates on this by chance? If/else for supporting older versions doesn't seem that bad IMO since older versions do not change, and bash version is linked to bashdb version. Would love to be able to use this plugin. Let me know if there's anything I can do to help. |
Can you check if this old bashdb by any chance supports somehow This is a bit problematic, since your version supports only short options, but there is no |
Here's the help output from bashdb. Looks like there is a
Edit: ah, I see, I think you're saying they changed from Has someone built newer bashdb with getopt disabled to see if
|
Yes, the only option seems to be if/else. (actually we also might add optional parameters to config, so "-tty" could be changed to whatever needed) Please check attached vsix plugin (uninstall the store version beforehand, then use "Install from VSIX" option in extensions pane) |
Hey thanks @rogalmic This got me further! This is very exciting! I do get some console output that I don't get when running bashdb in the cmd line. When running, now I got:
and it starts the debugging process Edit: Re-running the debug process I'm not getting that message again. Pardon my language, but this is FUCKING INCREDIBLE!! I can't believe I'm stepping through bash code in a visual editor right now. This is so cool! Let me know if you get an official version with support otherwise I'll keep playing with this for now. |
I've noticed that the local variables don't appear to be showing up as I'd expect, as stepping through each function in the stack, they don't seem to change or represent the current location. Is this expected? edit: also, the
showed up again after hovering around a few variables while running |
I can repro the error output from above reliably now.
if I hover over the
|
Executables
Version of bash-debug: bash-3.1-0.09
Output of following commands (on windows, execute them in Command Prompt or PowerShell):
Debug output
Details
bashdb works fine when ran from the command line directly:
The text was updated successfully, but these errors were encountered: