Spelling filter C / C++ not working as expected

Help with setting up and configuring custom user tools in UltraEdit (based on command line input)

Spelling filter C / C++ not working as expected

Postby steve802 » Thu Jan 18, 2007 8:53 pm

I just started using v12 and was excited to see spelling filters - I code in C most of the time and have wanted something to check comments and strings in C code for a long time.

But when I enable filters and choose C/C++ and spell check C source, I still get hits on variable names in the code - it is not checking only the comments and source.

Is there a known bug, or is there a way I can test this feature?

Example:
Code: Select all
  ///////////////////////////////////
  // Handle infofile data
  ///////////////////////////////////
  strcpy(infofile_name,w_path("wautoinfo",gpmsc_session));


When I spellcheck this code, it detects "infofile" in the comment as misspelled, as I would expect, but then it also detects "infofile" (in infofile_name) as misspelled. In Configuration, Use filters is checked and C / C++ is selected.

Version in use is 12.20b+1.
User avatar
steve802
Basic User
Basic User
 
Posts: 13
Joined: Sat Aug 14, 2004 11:00 pm

Re: Spelling filter C / C++ not working as expected

Postby Mofi » Sat Jan 27, 2007 2:15 pm

I never used the spell checking feature before, but I now have tested it with UEStudio v6.10b+1 and you are right. The C / C++ filter is not working as expected. It looks like everything after first line comment will be also interpreted by Aspell as line comment. If I change your piece of code to

Code: Select all
  /*/////////////////////////////////
  // Handle infofile data
  /////////////////////////////////*/
  strcpy(infofile_name,w_path("wautoinfo",gpmsc_session));


then the spell checker really searches only in the block comment and the string.

UltraEdit v12.20b+1 and UEStudio v6.10b+1 uses Aspell 0.60.4. There is already the newer version 0.60.5 on the Aspell homepage. But the Changelog does not describe in detail which bug fixes have been done.

I will sent an email to IDM support about this issue. Please do the same. The more users report a problem, the higher becomes the priority of the problem in the list of known bugs for bug fixing.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4042
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Spelling filter C / C++ not working as expected

Postby steve802 » Tue Jan 30, 2007 4:44 pm

Thanks, I will post a bug report.
User avatar
steve802
Basic User
Basic User
 
Posts: 13
Joined: Sat Aug 14, 2004 11:00 pm

Re: Spelling filter C / C++ not working as expected

Postby Mofi » Sat Feb 17, 2007 6:02 pm

Good news for this topic: This bug is fixed already in UltraEdit v13.00 Beta II and so next release of UltraEdit and UEStudio will have a correct working spell checker for C / C++.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4042
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Spelling filter C / C++ not working as expected

Postby steve802 » Tue Mar 13, 2007 6:59 pm

Thanks for the info. I bought an unlimited upgrade license, so I'll have to carve out some time later this week to upgrade.
User avatar
steve802
Basic User
Basic User
 
Posts: 13
Joined: Sat Aug 14, 2004 11:00 pm


Return to Custom User Tools/Tool Configuration

cron