Giter Site home page Giter Site logo

Comments (6)

stephencelis avatar stephencelis commented on August 28, 2024

Additionally, the library defines a .. infix operator, and I can't figure out how to reference it, either.

  • Xcode completes ..(lhs:rhs:)
  • DocC server shows '..(_:_:)

Neither works.

from swift-docc.

d-ronnqvist avatar d-ronnqvist commented on August 28, 2024

The issue with the forwards slash characters is a recently discovered that's issue also tracked as rdar://112555102.

Additionally, the library defines a .. infix operator, and I can't figure out how to reference it, either.

I think that the .. infix operator would be linked to using ..(_:_:).

DocC inserts a leading ' to any path component that start with "..". That said, I would think '..(_:_:) would be close enough to ..(_:_:) for DocC to be able to diagnose and suggest a fixit for it. What diagnostic message are you getting for the '..(_:_:) link?

from swift-docc.

stephencelis avatar stephencelis commented on August 28, 2024

I think that the .. infix operator would be linked to using ..(_:_:).

That worked, thanks!

DocC inserts a leading ' to any path component that start with "..". That said, I would think '..(_:_:) would be close enough to ..(_:_:) for DocC to be able to diagnose and suggest a fixit for it. What diagnostic message are you getting for the '..(_:_:) link?

Unfortunately, Xcode autocompleted ..(lhs:rhs:) instead, and no suggestions were offered. When I manually tried '..(_:_:) no suggestions were offered, either. When I entered ..(_:_:) I was finally given suggestions since .. is overloaded a couple times.

from swift-docc.

d-ronnqvist avatar d-ronnqvist commented on August 28, 2024

#717 should resolve the issue with forward slash operators functions.

Unfortunately, Xcode autocompleted ..(lhs:rhs:) instead, and no suggestions were offered. When I manually tried '..(_:_:) no suggestions were offered, either. When I entered ..(_:_:) I was finally given suggestions since .. is overloaded a couple times.

The root cause of the autocompletion issue isn't in DocC's code so that'd have to be tracked with a Radar or Feedback.

..(lhs:rhs:) seems to be too different from ..(_:_:) to be offered as a suggestion but '..(_:_:) is close enough to be offered as a suggestion in Xcode 15.0 (15A240d)

Screenshot 2023-09-26 at 1 11 48 PM

from swift-docc.

stephencelis avatar stephencelis commented on August 28, 2024

The root cause of the autocompletion issue isn't in DocC's code so that'd have to be tracked with a Radar or Feedback.

@d-ronnqvist Thanks! Did you open a feedback?

from swift-docc.

d-ronnqvist avatar d-ronnqvist commented on August 28, 2024

The root cause of the autocompletion issue isn't in DocC's code so that'd have to be tracked with a Radar or Feedback.

@d-ronnqvist Thanks! Did you open a feedback?

I didn't but after searching I can say that rdar://78412414 is tracking this specific autocomplete issue.

from swift-docc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.