SourceMonitor無法順利測量Unicode的程式

  • 4547
  • 0

SourceMonitor無法順利測量Unicode的程式

Dotblogs 的標籤:

使用 SourceMonitor 時,雖然有勾選【Allow parsing of UTF-8 files】,但是測量大部分 UTF-8 編碼的程式,都會發生類似下述的錯誤:

檢查 SourceMonitor 的 Log 檔,錯誤描述如下:

[22Mar2012 10:58:47] ****** SourceMonitor (V3.2.7.230): Begin Session
[22Mar2012 10:58:52] Open Project: D:\MyDocs\MySourceMonitorProject\VB35CodeAnalysis.smproj
[22Mar2012 10:58:57] Create Checkpoint: Create Checkpoint 'Checkpoint1' dated '22 Mar 2012'
[22Mar2012 10:59:18] Fatal Parsing Error: File 'D:\TerminationLeases\BizRule\TLCheck.vb' code parse error (file not included in checkpoint): SSLex0105e: Invalid token, Line 45, Offset 94, 

[22Mar2012 10:59:18] Create Checkpoint: Create Checkpoint 'Checkpoint2' dated '22 Mar 2012'

但是相同檔案,把編碼轉成 ANSI 就可以順利執行複雜度測量,所以覺的很疑惑,便寫信和作者詢問,並寄了範例程式。以下是作者的回信:

Thanks for clearing this up. Unfortunately, the SourceMonitor parser is a purchased tool that only parses ASCII. The author has withdrawn the product so there never will be a Unicode version.

換言之,看起來這個 bug 短時間是無解了… >"<

--------
沒什麼特別的~
不過是一些筆記而已