muter: Error during Muter installation

Hi There,

I’m running into this problem everytime:

(...)
[15/17] Compiling ArgumentParser BashCompletionsGenerator.swift
[16/17] Compiling SwiftSyntax AbsolutePosition.swift
/Users/administrator/azuredevops_agent/_work/36/s/muter/.build/checkouts/swift-syntax/Sources/SwiftSyntax/RawSyntax.swift:120:46: error: value of type 'CSyntaxNode' (aka 'swiftparse_syntax_node_t') has no member 'range'
    let textSize = hasCustomText ? Int(cnode.range.length) : 0
                                       ~~~~~ ^~~~~
/Users/administrator/azuredevops_agent/_work/36/s/muter/.build/checkouts/swift-syntax/Sources/SwiftSyntax/RawSyntax.swift:153:35: error: value of type 'CSyntaxNode' (aka 'swiftparse_syntax_node_t') has no member 'range'
      let startOffset = Int(cnode.range.offset)
                            ~~~~~ ^~~~~
/Users/administrator/azuredevops_agent/_work/36/s/muter/.build/checkouts/swift-syntax/Sources/SwiftSyntax/RawSyntax.swift:157:55: error: value of type 'CSyntaxNode' (aka 'swiftparse_syntax_node_t') has no member 'range'
      let end = utf8.index(begin, offsetBy: Int(cnode.range.length))
                                                ~~~~~ ^~~~~
/Users/administrator/azuredevops_agent/_work/36/s/muter/.build/checkouts/swift-syntax/Sources/SwiftSyntax/RawSyntax.swift:873:32: error: value of type 'CSyntaxNode' (aka 'swiftparse_syntax_node_t') has no member 'range'
    let byteLength = Int(cnode.range.length)
                         ~~~~~ ^~~~~
/Users/administrator/azuredevops_agent/_work/36/s/muter/.build/checkouts/swift-syntax/Sources/SwiftSyntax/SyntaxParser.swift:195:57: error: missing argument for parameter #3 in call
    let c_top = swiftparse_parse_string(c_parser, source)
                                                        ^
                                                        , <#Int#>
_InternalSwiftSyntaxParser.swiftparse_parse_string:1:13: note: 'swiftparse_parse_string' declared here
public func swiftparse_parse_string(_: swiftparse_parser_t!, _ source: UnsafePointer<CChar>!, _ len: Int) -> swiftparse_client_node_t!
            ^
make: *** [build-release] Error 1

Funny that one month ago I had no problem with it and it still was v15… 😦 I hope that someone could help me here… I have no idea what to do

Obs1: This message is popping when I try to install it from either brew or git clone+make Obs2: I’m using Self Hosted machines on azure to run this on pipelines Obs3: I’m using Xcode version 13.2.1 (macOS 11.6)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

What I do is to change the current path to the project that I want to debug. You can do that in several places, but I think it’s easier to do it in main.swift

import class muterCore.Muter
import Foundation

FileManager.default.changeCurrentDirectoryPath("/some/path")

Muter.start()

on a side note, open Xcode via xed . or by double clicking on the Package.swift file, I’m not sure if it will work 100% if you try to generate the xcodeproj file