Wikipedia talk:AutoWikiBrowser
- Home
Introduction and rules - User manual
How to use AWB - Discussion
Discuss AWB, report errors, and request features - User tasks
Request or help with AWB-able tasks - Technical
Technical documentation
This is the discussion page for the AWB project. It is also the place to discuss using the AWB program itself (if you need help, or have a question about AWB, etc.). Where to make specific types of reports or requests is explained in the Before you post section below. Before asking questions, please read the Frequently asked questions below.
Please click here to start a new discussion. |
Index 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 |
This page has archives. Sections older than 30 days may be automatically archived by Lowercase sigmabot III. |
Before you post
Do you want to ... | Please use | ||||
---|---|---|---|---|---|
Report a bug or request a feature in AWB? | Check reported tasks before filing a new task. You do not need to create another account there; just log in with your normal Wikimedia account. See this MediaWiki wiki page on how to report bugs and request features on Phabricator.
| ||||
Report an incorrectly fixed typo? | Wikipedia talk:AutoWikiBrowser/Typos | ||||
Request approval to use AWB? | Wikipedia:Requests for permissions/AutoWikiBrowser | ||||
Ask a question about AWB or ask for help? | This page |
Frequently asked questions
Frequently asked questions
|
---|
//Detect IE5.5+ if (navigator.appVersion.indexOf("MSIE")==-1) { // Previous contents go here .... }
|
Discussion
Stop typo fixes changing edit summary
I'd like to stop the addition of the [[WP:AWB/T|typo(s) fixed]]:
text to edit summaries when using AWB's automatic typo fixes. Is there any way to do this? Using the "lock the default edit summary" option doesn't stop it from being added. Suntooooth, it/he (talk/contribs) 00:01, 30 June 2024 (UTC)
two factor authentication login issue
After I have enabled two factor authentication, I am unable to login in the autowikibrowser. While trying to login a pop up comes up telling aborted. What is the solution for this issue. ? Balaji (Let's talk) 08:13, 4 July 2024 (UTC)
- @Balajijagadesh see Wikipedia:Using AWB with 2FA. — xaosflux Talk 08:42, 4 July 2024 (UTC)
- Perhaps the language code does not match during authorization? Игорь Темиров (talk) 04:00, 5 July 2024 (UTC)
- @User:Xaosflux. thanks it worked. -- Balaji (Let's talk) 08:53, 18 July 2024 (UTC)
New categories
Hello. Could you tell me, please, where can I see the (new, automatic, and hidden) categories of the result? If I made a mistake, I should know when the tracking category appears. Thank you. IKhitron (talk) 19:11, 6 July 2024 (UTC)
Replace maximum again
Hi. Continuing Wikipedia talk:AutoWikiBrowser/Archive 34#Replace maximum, I'm here to tell that I've just finished the work. 1246 string replacements, about ten of them were added on the fly, about 2500 pages. @SchreiberBike, you asked me to call you. IKhitron (talk) 22:15, 11 July 2024 (UTC)
- Have you tried using plugins or a custom module? Игорь Темиров (talk) 03:44, 12 July 2024 (UTC)
- Not at all, just the regular stuff. IKhitron (talk) 09:17, 12 July 2024 (UTC)
- When using plugins or modules, your research simply would not be needed. Игорь Темиров (talk) 10:20, 12 July 2024 (UTC)
- Well, too late. IKhitron (talk) 10:08, 13 July 2024 (UTC)
- Игорь Темиров, please don't criticise other people for doing things a different way. Primefac (talk) 13:00, 13 July 2024 (UTC)
- I suggest another way. But you criticize. Игорь Темиров (talk) 13:55, 13 July 2024 (UTC)
- We're getting off-topic, but the two are not the same. It's one thing to say "doing it this way will also work", it's another to say "you wasted your time by not doing it this way". The first is a suggestion for another way, the second is a criticism of the original way. Primefac (talk) 18:57, 13 July 2024 (UTC)
- We're going off topic. But you have problems with logic. I think IKhitron and I understood each other exactly as needed. Игорь Темиров (talk) 19:10, 13 July 2024 (UTC)
- We're getting off-topic, but the two are not the same. It's one thing to say "doing it this way will also work", it's another to say "you wasted your time by not doing it this way". The first is a suggestion for another way, the second is a criticism of the original way. Primefac (talk) 18:57, 13 July 2024 (UTC)
- I suggest another way. But you criticize. Игорь Темиров (talk) 13:55, 13 July 2024 (UTC)
- Игорь Темиров, please don't criticise other people for doing things a different way. Primefac (talk) 13:00, 13 July 2024 (UTC)
- Well, too late. IKhitron (talk) 10:08, 13 July 2024 (UTC)
- When using plugins or modules, your research simply would not be needed. Игорь Темиров (talk) 10:20, 12 July 2024 (UTC)
- Not at all, just the regular stuff. IKhitron (talk) 09:17, 12 July 2024 (UTC)
Bug: HTML comment wrongly moved during general fixes
In this diff, you can see how "General fixes" moved a comment from beside the issue to which it referred, to the wrong point in the article. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:26, 13 July 2024 (UTC)
- In my experience, this is a longstanding bug where AWB disturbs html comments in this and other ways. It needs to be smart enough to leave them alone. Stefen Towers among the rest! Gab • Gruntwerk 17:56, 16 July 2024 (UTC)
Giving up using AWB to do periodic talk page cleanups
Due to a couple issues with AWB, talk page cleanups have become too impractical to do:
- It removes "blp=no" for bio articles of dead people. Even though might be considered a default in terms of display of the template, removing this parameter adds the talk page to a problem category.
- It inserts "|1=" when that is no longer the usage suggestion in {{WikiProject banner shell}} and removed by bots when making other changes.
I don't know how to make AWB skip doing these changes without removing part of the reason I'm using AWB: for talk page-related general fixes. Stefen Towers among the rest! Gab • Gruntwerk 18:10, 16 July 2024 (UTC)
- Already reported on Feb 10, see archive 34. Tracked as T358963 but no fix yet. David Brooks (talk) 21:34, 16 July 2024 (UTC)
- Thanks, and I see I replied to that topic. I guess I had a "Mr. Short Term Memory" moment. Glad it's being tracked at least. Stefen Towers among the rest! Gab • Gruntwerk 03:40, 17 July 2024 (UTC)
unable to load module
Hello. Few weeks ago, I made a clean reinstall of Windows 10. A couple of days ago, I was trying to load a custom module, but I got following error:
Compiler executable file csc.exe cannot be found. **description**: **workaround**: -------------------------- <table><tr><th>Exception:</th><td>`InvalidOperationException`</td></tr> <tr><th>Message:</th><td>`Compiler executable file csc.exe cannot be found.`</td></tr> <tr><th>Call stack:</th><td><pre> at System.CodeDom.Compiler.RedistVersionInfo.GetCompilerPath(IDictionary`2 provOptions, String compilerExecutable) at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames) at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources) at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources) at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sources) at WikiFunctions.CustomModules.CustomModuleCompiler.Compile(String sourceCode, CompilerParameters parameters) at AutoWikiBrowser.CustomModule.MakeModule()</td></tr> </table> **OS**: Microsoft Windows NT 6.2.9200.0 **version**: AutoWikiBrowser (6.3.0.0), WikiFunctions (6.3.0.0), revision 12558 (2024-01-16 20:38:04) **net**: 4.0.30319.42000 **duplicate**: **site**: https://en.wikipedia.org
After that, I installed the .NET framework, I located the csc.exe file, and updated the system environment variable/path. Still, I am getting the same error. Any suggestions? —usernamekiran (talk) 04:28, 22 July 2024 (UTC)
- I am on Windows 11 and have csc.exe in the following locations:
- C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe
- C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe
- C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe
- C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe
- C:\Windows\Microsoft.NET\Framework64\v3.5\csc.exe
- C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe
- C:\Windows\WinSxS\amd64_netfx-csharp_compiler_csc_b03f5f7f11d50a3a_10.0.22621.1_none_52bef3eed921ca5e\csc.exe
- C:\Windows\WinSxS\amd64_netfx35linq-csharp_31bf3856ad364e35_10.0.22621.1_none_78c17abe07e8090b\csc.exe
- C:\Windows\WinSxS\amd64_netfx4-csc_exe_b03f5f7f11d50a3a_4.0.15912.0_none_78ce8a6e35a89ad2\csc.exe
- C:\Windows\WinSxS\amd64_netfx4-csc_exe_b03f5f7f11d50a3a_4.0.15912.322_none_6ee01ba4a5a0f42b\csc.exe
- C:\Windows\WinSxS\x86_netfx-csharp_compiler_csc_b03f5f7f11d50a3a_10.0.22621.1_none_9a6c2ac5ed9df364\csc.exe
- C:\Windows\WinSxS\x86_netfx35linq-csharp_31bf3856ad364e35_10.0.22621.1_none_1ca2df3a4f8a97d5\csc.exe
- C:\Windows\WinSxS\x86_netfx4-csc_exe_b03f5f7f11d50a3a_4.0.15912.0_none_c07bc1454a24c3d8\csc.exe
- C:\Windows\WinSxS\x86_netfx4-csc_exe_b03f5f7f11d50a3a_4.0.15912.322_none_b68d527bba1d1d31\csc.exe
- I'm not sure which of these is used by AWB, but I have no problems executing a C# script. Kiwipete (talk) 08:27, 22 July 2024 (UTC)
- @Kiwipete: thanks. Would it be okay if I ask you to see what's path to csc.exe in system environment variable? Mine points to
C:\Windows\Microsoft.NET\Framework64\v4.0.xxxxx
(I don't remember the exact version) I had added it manually. —usernamekiran (talk) 16:35, 22 July 2024 (UTC)- @Usernamekiran - sorry, I'm not sure what you mean by "path to csc.exe in system environment variable". Where do you get your value of "C:\Windows\Microsoft.NET\Framework64\v4.0.xxxxx" from? That might give me a clue as to what to search for. Regards, Kiwipete (talk) 08:01, 23 July 2024 (UTC)
- I just started to configure a new Surface Pro, Windows 11 on ARM64, and have the same problem. Two old, well-established x64 Win10 systems are working OK with the same copy of AWB. Adding the path to a version of csc.exe to the PATH environment variable (per-user version, but that shouldn't matter) doesn't help, and in any case it's not set on my other systems. It seems that something weird is happening in the CSharpCodeProvider class, but I'm not set up to investigate yet.
- I assumed it had something to to with either Win11 or ARM/x86 emulation, but Usernamekiran has neither. BTW, the WinSxS copies are irrelevant; that is the Windows secure component store used during update or recovery.
- I'll try to set up for debugging and see what else I can find. It may take a few days. David Brooks (talk) 14:19, 30 July 2024 (UTC)
- @David Brooks: Hi. On my desktop I have Win 10 pro, and on (older) laptop, home edition. I had made clean re-install on both the systems around the same time, I think in first week of March. I am having the same problem on both the computers, both of them x86. I tried changing "user", as well "system" path, didn't work. @Kiwipete: I am currently not on windows, so I am writing this based on my memory. If you search in the Windows search bar for "system environment variable", you will see the tool for that, after clicking on it, in the new window, there would be an option "environment variables" at the bottom. If you click on it, there would be another new window, on it, there would be "system variables", and "user variables". if you edit "PATH" section, there should be the values we are looking for. —usernamekiran (talk) 07:03, 31 July 2024 (UTC)
- @Usernamekiran, @DavidBrooks, thanks, I now understand what you are looking at. In the Environment Variables, I have a PATH user variable (for my account) set to "%M2%;%JAVA_HOME%\bin;%MARIADB_HOME%\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;". These are mainly applications I have configured myself. I also have a PATH system variable, set to "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SYSTEMROOT%\System32\OpenSSH\;D:\jZip;D:\PuTTY\;D:\TortoiseSVN\bin;". When I open a command prompt, I get the following resulting PATH variable: "Path=C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;D:\jZip;D:\PuTTY\;D:\TortoiseSVN\bin;D:\apache-maven-3.9.8\bin;D:\jdk-11\bin;D:\MariaDB 10.4\bin;C:\Users\pete\AppData\Local\Microsoft\WindowsApps;". Note I don't see any directory containing csc.exe that I mentioned above listed in the PATH. When I try "where csc" or "where csc.exe", I get the response "INFO: Could not find files for the given pattern(s).". Sorry if that's still not much help. Kiwipete (talk) 08:54, 31 July 2024 (UTC)
- For Windows 10 there is no need to install all the old .NET versions. Installing the current .NET 4.x.x as provided by Windows Update should be fine. I suspect installing the older versions may have created a conflict. When you have the custom module screen open in AWB what option are you using in the Language field (C# 4.0 would be expected) / hhave you tried all of the C# ones if multiple? Also you might check registry path
HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\MSBuild\\ToolsVersions\\
as that is apparently the path that will be used. Rjwilmsi 12:58, 31 July 2024 (UTC)
- For Windows 10 there is no need to install all the old .NET versions. Installing the current .NET 4.x.x as provided by Windows Update should be fine. I suspect installing the older versions may have created a conflict. When you have the custom module screen open in AWB what option are you using in the Language field (C# 4.0 would be expected) / hhave you tried all of the C# ones if multiple? Also you might check registry path
- @Usernamekiran, @DavidBrooks, thanks, I now understand what you are looking at. In the Environment Variables, I have a PATH user variable (for my account) set to "%M2%;%JAVA_HOME%\bin;%MARIADB_HOME%\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;". These are mainly applications I have configured myself. I also have a PATH system variable, set to "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SYSTEMROOT%\System32\OpenSSH\;D:\jZip;D:\PuTTY\;D:\TortoiseSVN\bin;". When I open a command prompt, I get the following resulting PATH variable: "Path=C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;D:\jZip;D:\PuTTY\;D:\TortoiseSVN\bin;D:\apache-maven-3.9.8\bin;D:\jdk-11\bin;D:\MariaDB 10.4\bin;C:\Users\pete\AppData\Local\Microsoft\WindowsApps;". Note I don't see any directory containing csc.exe that I mentioned above listed in the PATH. When I try "where csc" or "where csc.exe", I get the response "INFO: Could not find files for the given pattern(s).". Sorry if that's still not much help. Kiwipete (talk) 08:54, 31 July 2024 (UTC)
- @David Brooks: Hi. On my desktop I have Win 10 pro, and on (older) laptop, home edition. I had made clean re-install on both the systems around the same time, I think in first week of March. I am having the same problem on both the computers, both of them x86. I tried changing "user", as well "system" path, didn't work. @Kiwipete: I am currently not on windows, so I am writing this based on my memory. If you search in the Windows search bar for "system environment variable", you will see the tool for that, after clicking on it, in the new window, there would be an option "environment variables" at the bottom. If you click on it, there would be another new window, on it, there would be "system variables", and "user variables". if you edit "PATH" section, there should be the values we are looking for. —usernamekiran (talk) 07:03, 31 July 2024 (UTC)
- @Usernamekiran - sorry, I'm not sure what you mean by "path to csc.exe in system environment variable". Where do you get your value of "C:\Windows\Microsoft.NET\Framework64\v4.0.xxxxx" from? That might give me a clue as to what to search for. Regards, Kiwipete (talk) 08:01, 23 July 2024 (UTC)
- @Kiwipete: thanks. Would it be okay if I ask you to see what's path to csc.exe in system environment variable? Mine points to
The only option provided in AWB is 3.5, and that refers to the language version, not the compiler version. Newer compilers will observe the (more restricted) language of older versions because reasons.
But thanks for your hint and technical insight. On the new system there is only a \ToolsVersions\4.0
key. I added a 3.5
key and populated it with a string value MSBuildToolsPath:C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
and it works. Clearly the language version is driving the lookup. Just check that the directory exists in your system and has a csc.exe. If you don't like editing the registry (and it still makes me uneasy after 18 years at Microsoft) then maybe installing the 3.5 Framework will work, if you can find it. Or not.
I think this is a Microsoft bug, given that the CSharpCodeProvider class does offer down-level language versions. At best it should hunt the ToolsVersions key for a value >= the language version. Or at least the restriction should be documented. I'll whine at my former colleagues. David Brooks (talk) 14:26, 31 July 2024 (UTC)
- p.s. on my new system,
C:\Windows\Microsoft.NET\FrameworkArm64\v4.0.30319\
works as well (and is theoretically more efficient). David Brooks (talk) 15:00, 31 July 2024 (UTC)
- p.s. on my new system,
- Update: apologies, that was an incomplete fix. Because AWB is still a 32-bit app, if you are running on a 64-bit system, you should add the
3.5
key underHKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\MSBuild\ToolsVersions
alongside the 4.0 that you should find already there. Add aMSBuildToolsPath
value as above. It wouldn't hurt to add it toHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions
anyway in case you come across other 64-bit apps with the same problem.
- Also, I was talking nonsense about the compiler version. This is the 4.0 executable, which can compile up to c# 5.0 I think. Sorry about that. David Brooks (talk) 20:36, 1 August 2024 (UTC)
- OK, last say on this, really. The easiest way of making this work, for now, is to install Framework 3.5, which is not usually available on a brand-new system. You can download it directly from here, or you can get it from the "Turn Windows features on and off" dialog if you can find it. A maintainer has already checked in the 4.0 update to the source tree, so the robust fix should be available eventually. Apologies for running all over the place; real life has been intruding this week. David Brooks (talk) 18:54, 3 August 2024 (UTC)
AWB not saving edits
I'm using AWB on Fandom and am trying to do a find and replace edit. I can get it to find an applicable page and it shows the correct edit to be made, but when I press Save, it says Saving... and gives a restart timer. I can't get it to actually make the change. Any suggestions? Fluffbutter (talk) 17:17, 22 July 2024 (UTC)
- @Fluffbutter: I'm not sure, but I think some fandoms require permission to use AWB. If it's not that problem, it may be your ISP. I used to have that problem a lot of times. Try using some other connection for making a couple of edits, like your mobile hotspot. —usernamekiran (talk) 23:24, 22 July 2024 (UTC)
- I got it to work! I had to update the Bot Password permissions. Fluffbutter (talk) 23:38, 22 July 2024 (UTC)
Tweak needed to keep hidden note next to {{Short description}}
Often a short description of "none" will be followed by a hidden note, as follows:
- {{Short description|none}}<!-- "none" is preferred when the title is sufficiently descriptive; see [[WP:SDNONE]] -->
Sometimes these is a space between the template and the note. Either way, AWB wants to move that hidden note to the end of whatever templates are on top of the page. Can it be tweaked so that it leaves it where it is? Cheers! BD2412 T 20:40, 28 July 2024 (UTC)
HTML comment moved in an undesirable way
In this AWB edit, an HTML comment was moved from its proper location – next to the template that it applied to – to a place that makes less sense. It appears that AWB's general fixes may be programmed to make this undesirable change. Can someone please disable this change or explain what I am missing? Thanks. – Jonesey95 (talk) 12:51, 29 July 2024 (UTC)
- Oops, I didn't see the section above. Here's a diff, anyway. You can see in the subsequent edit after that diff that the move was perceived as an AWB error by Pigsonthewing, the AWB editor. – Jonesey95 (talk) 12:54, 29 July 2024 (UTC)
Fileformat is invalid
When I update Wikipedia pages containing non-latin characters (e.g. Arabic), I often (not always) get an error message. "The fileformat is invalid" ("Filformatet är ogiltigt" in Swedish, my language). Heading in the error message: ArgumentException in ArticleTextBox.OnHandleCreated
The rest is:
**description**: **workaround**: -------------------------- <table><tr><th>Exception:</th><td>`ArgumentException`</td></tr> <tr><th>Message:</th><td>`Filformatet är ogiltigt.`</td></tr> <tr><th>Call stack:</th><td><pre> vid System.Windows.Forms.RichTextBox.StreamIn(Stream data, Int32 flags) vid System.Windows.Forms.RichTextBox.StreamIn(String str, Int32 flags) vid System.Windows.Forms.RichTextBox.set_Rtf(String value) vid System.Windows.Forms.RichTextBox.OnHandleCreated(EventArgs e) vid WikiFunctions.Controls.ArticleTextBox.OnHandleCreated(EventArgs e) vid System.Windows.Forms.Control.WmCreate(Message& m) vid System.Windows.Forms.Control.WndProc(Message& m) vid System.Windows.Forms.TextBoxBase.WndProc(Message& m) vid System.Windows.Forms.RichTextBox.WndProc(Message& m) vid System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) vid System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) vid System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)§/pre></td></tr> </table> **OS**: Microsoft Windows NT 6.2.9200.0 **version**: AutoWikiBrowser (6.3.0.0), WikiFunctions (6.3.0.0), revision 12558 (2024-01-16 20:38:04) **net**: 4.0.30319.42000 **duplicate**: **site**: https://sv.wikipedia.org
Note: I had to replace < with § before /pre in the last row of the table in order to get a nice display.
In most cases, when I press "Continue Working", the error message disappears and I can continue. In rare cases, all content in the page is erased so I end up with an empty page. Not so nice...
Can I avoid this by any setting or is it a bug that should be reported (never done Phabricator reporting so I start here). Any suggestions would be highly appreciated! Kitayama (talk) 13:23, 3 August 2024 (UTC)