Remove comInterfaces.Scripting in 2028.1

Open Beginner friendly
#20,996 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
Under an hour
Newbie friendliness
84/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
build-system

Research direction

Start in source/comInterfaces_sconscript and remove the Scripting.py entry from COM_INTERFACES, including its "Used for browseable messages" comment. Then add the API Breaking Changes entry in the user guide change log stating that comInterfaces.Scripting was removed with no replacement. Done when a build no longer generates comInterfaces.Scripting and the change log entry is in place.

Written by the indexing model from the issue text.

Description

api-breaking-change audience/nvda-dev p5 release/blocking release/blocking-beta triaged
Related issues, PRs or discussions
What is the current state of the codebase?

NVDA generates comInterfaces.Scripting at build time from the Microsoft Scripting Runtime type library.
source/comInterfaces_sconscript lists it with the comment "Used for browseable messages".

Browseable messages used to run in an MSHTML dialog. NVDA passed the message to that dialog in a Scripting.Dictionary object.
Since #20251, browseable messages render in a wx.html2.WebView. Nothing in NVDA uses comInterfaces.Scripting anymore.

Why are changes required?

Every build generates and ships comInterfaces.Scripting, but NVDA does not use it.

What technical changes are required?
  • Remove the Scripting.py entry from COM_INTERFACES in source/comInterfaces_sconscript.
  • Add a change log entry under API Breaking Changes: comInterfaces.Scripting has been removed with no replacement.
Are the proposed technical changes API breaking?

Yes. Add-ons that import comInterfaces.Scripting will fail to import it.

Are there potential risks or issues with the proposed implementation?

None known.

Dominant language
Python
Stars
2.7k
Forks
842
Avg merge
2d 4h
Merged PRs (30d)
56

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nvaccess/nvda

All issues in nvaccess/nvda

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.