-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
VBA vs. Visual Basic #2418
Comments
Do they use different sets of file extensions? |
VBA is embedded in ms office apps. If files are exported then default is .bas Sometimes .mod for modules or You can make up your own. Distribution is often inside an office app So extensions could be Xls, xlsx, mdb, accdb, doc, docx etc. Ad nauseum... Someone searching for VBA is typically Not interested in .net Thanks Peter E.g. https://www.bing.com/search?q=peterennis+github&PC=U316&FORM=CHROMN These are VBA repos, not visual basic, so the default github Description is false Sent from Yahoo Mail on Android From:"Paul Chaignon" notifications@github.com Do they use different sets of file extensions? — |
Linguist currently associates the following extensions with Visual Basic:
Which of these are VBA? Visual Basic? |
Not .vb Not .frx Not .vbhtml Not .vbs However, I could create all them if I wanted :) Removing those would at least reduce the search spam. In the spirit of cross platform development, ms Honest embracement of os(?), and github expansion, Perhaps you could have "Microsoft Office VBA" As the 'language' selection? Thanks, Peter Sent from Yahoo Mail on Android From:"Paul Chaignon" notifications@github.com Linguist currently associates the following extensions with Visual Basic: .vb.bas.cls.frm.frx.vba.vbhtml.vbs Which of these are VBA? Visual Basic? — |
VBA is actually just embedded classic VB. Modern VB.NET uses .vb, but classic VB will use the older extensions like .bas and .frm. .vbs is VBScript, which is its own language altogether. |
Yes. The issue us that search for VBA returns too much github spam as it brings back all results for VB. Ironically I find better results using google while searching the universe in comparison to the "targeted" subset of github. |
I confirm 👍 If we could search for VBA code only, it will be very helpfull for VBA coders, have mercy for them ;) |
I agree with chadebeauche - also We can consider VBS as an old, but still is in use, and should be counted as separated language. BTW similar extension Typically |
This issue persists. Some VBA repos are even being labeled as TeX. Go figure. |
This issue has been automatically marked as stale because it has not had activity in a long time. If this issue is still relevant and should remain open, please reply with a short explanation (e.g. "I have checked the code and this issue is still relevant because ___."). Thank you for your contributions. |
I have passed this issue/proposal to the Office documentation team - asking them to take over. |
This issue has been automatically marked as stale because it has not had activity in a long time. If this issue is still relevant and should remain open, please reply with a short explanation (e.g. "I have checked the code and this issue is still relevant because ___."). Thank you for your contributions. |
The situation hasn't changed to my knowledge. |
I have renewed my request to the "doc people" of Office at Microsoft to take care of this. |
This issue has been automatically marked as stale because it has not had activity in a long time. If this issue is still relevant and should remain open, please reply with a short explanation (e.g. "I have checked the code and this issue is still relevant because ___."). Thank you for your contributions. |
AFAIK, this is still an issue. |
It is, but priority at MS seems low. |
This issue has been automatically closed because it has not had activity in a long time. Please feel free to reopen it or create a new issue. |
Could this be reopened? As far as I can tell, this is still unresolved and it applies to latest linguist version. |
My MS contact must have gone cold; no response yet. |
@GustavBrock I'll see what I can do about finding the right person to address this. |
I agree this VBA-vs-VB-vs-VB.net confusion is a problem, for Linguist as well as search engines in general, but it's not clear what is being requested here. As covered in the readme, Linguist ignores blobs, and XLSX/XLSM files (where most VBA code resides) are zipped blobs. Is there a specific change to Linguist that people are looking to Microsoft submit a PR for? |
@dmahugh : Browse the thread from the start. And VBA does not reside in xlsx files. However, most code has been exported to .bas or .cls text files for the benefit of the GitHub parser and for easy perusing by the visitors. If .frm files exist in a repository, it is VB6, not VBA. |
Actually, you can have .frm files in a VBA project, if you have a "form" (basically, a GUI). BTW, it's by far the less common use-case. +1 for the answer : the point here is to make a distinction between :
|
To all of you on this thread, if you have an actionable suggestion, please submit a PR. If you're looking for documentation on VBA, please see https://docs.microsoft.com/en-us/office/vba/api/overview/. |
I see a similar pattern:
|
I've tried to write a PR, but have run into some issues. Any help would be greatly appreciated. |
@zspitz I have no Ruby or linguist experience. Thanks for taking this on 👍 |
@peterennis That makes two of us 😊. |
@zspitz That makes three of us. Sorry. |
ping @Linda-Editor |
Question: should the language name be VBA or Visual Basic for Applications? |
The name is Visual Basic for Applications, and VBA is the abbreviation for this. |
@GustavBrock The name of SQL is Structured Query Language, and yet the name in IMO, as long as the acronym has wide acceptance, I think makes more sense to use the acronym instead of the alternative mouthful. |
Well, you only asked for the name, not what to use in |
* Fix for #2418 (WIP) * Fix for #2418 (WIP) * Remove mistaken aliases * Sort language names; add/move samples * Fix language order; update VBScipt color * Update colors * Update VBA/VB6 color * Reorder languages * PR fixes * Rename VBA to Visual Basic for Applications * Update language IDs; go back to acronym * Fixes for failing tests
How to make a distinction between VB6 and VBA and VB.NET? The .vbp and .vbw extensions are unique to the VB6 language. Thus, if any VBA files are accompanied by .vbp and .vbw extensions, than all repository is Visual Basic 6.0. Just look on any of my repositories on VB6. In short: VB6 - if (.bas and/or .cls and/or .frm and/or .frx) and .vbp and .vbw exist. VBScript - if .vbs exists. Note also that the presence of any .xlsm file implies the presence of VBA. Also note that VB6 is the only programming language among these (it is fully compiled). |
That's not how Linguist works. See my comment at #5824 (comment) |
VBA != vb
I can only search for Visual Basic. It returns mostly .net code and that is just noise.
VBA should be separate.
The text was updated successfully, but these errors were encountered: