[MacPorts] #63047: clang-12: scan-view does not work

MacPorts noreply at macports.org
Mon Jun 7 14:41:17 UTC 2021


#63047: clang-12: scan-view does not work
-----------------------+--------------------
  Reporter:  szhorvat  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  clang-12  |
-----------------------+--------------------
Description changed by szhorvat:

Old description:

> Following the recent fix of issue #63026, I build clang-12 with the
> `+analyzer` variant and checked whether it works, roughly along the lines
> I wrote up in this wiki: https://github.com/igraph/igraph/wiki/Running-
> linters-and-analysers
>
> The analyzer itself, and the `scan-build` script appear to work fine.
>
> The `scan-view` script (called `scan-view-mp-12`) does not work. The
> output is this:
>
> {{{
> Traceback (most recent call last):
>   File "/opt/local/libexec/llvm-12/bin/scan-view", line 150, in <module>
>     main()
>   File "/opt/local/libexec/llvm-12/bin/scan-view", line 147, in main
>     run(port, args, args.root)
>   File "/opt/local/libexec/llvm-12/bin/scan-view", line 74, in run
>     import ScanView
>   File "/opt/local/libexec/llvm-12/bin/../share/scan-view/ScanView.py",
> line 29, in <module>
>     import Reporter
> ImportError: No module named Reporter
> }}}
>
> `scan-view` is used to view the analysis reports in a browser. One might
> use `scan-view-mp-11` to view the results of an analysis from clang-12,
> so it's not a huge deal. But `scan-view-mp-12` should work as well.
>
> I have no yet had the time to figure out why exactly this is broken and
> how to fix it, but here's the bug report in advance.
>

> Related:
>
>  * https://trac.macports.org/ticket/63038
>  * https://trac.macports.org/ticket/63026

New description:

 Following the recent fix of issue #63026, I built clang-12 with the
 `+analyzer` variant and checked whether it works, roughly along the lines
 I wrote up in this wiki: https://github.com/igraph/igraph/wiki/Running-
 linters-and-analysers

 The analyzer itself, and the `scan-build` script appear to work fine.

 The `scan-view` script (called `scan-view-mp-12`) does not work. The
 output is this:

 {{{
 Traceback (most recent call last):
   File "/opt/local/libexec/llvm-12/bin/scan-view", line 150, in <module>
     main()
   File "/opt/local/libexec/llvm-12/bin/scan-view", line 147, in main
     run(port, args, args.root)
   File "/opt/local/libexec/llvm-12/bin/scan-view", line 74, in run
     import ScanView
   File "/opt/local/libexec/llvm-12/bin/../share/scan-view/ScanView.py",
 line 29, in <module>
     import Reporter
 ImportError: No module named Reporter
 }}}

 `scan-view` is used to view the analysis reports in a browser. One might
 use `scan-view-mp-11` to view the results of an analysis from clang-12, so
 it's not a huge deal. But `scan-view-mp-12` should work as well.

 I have not yet had the time to figure out why exactly this is broken and
 how to fix it, but here's the bug report in advance. I'll let you know if
 I figure out a fix.


 Related:

  * https://trac.macports.org/ticket/63038
  * https://trac.macports.org/ticket/63026

--

-- 
Ticket URL: <https://trac.macports.org/ticket/63047#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list