question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support of types with dots in their name

See original GitHub issue

I have a rather large codebase using EmmyLua annotations, and some types have dots (.) in them. It seems IntelliJ-Luanalysis doesn’t support that.

This is quite useful when adding annotations to third-party libs for instance.

Example with a Penlight function:

--- Return a list of all file names within an array which match a pattern.
--- Raise dir and mask must be strings
--- @param filenames table|pl.List An array containing file names.
--- @param pattern string A shell pattern.
--- @return pl.List List of matching file names.
function dir.filter(filenames, pattern) end

This fails with the first @param type since the dots isn’t recognized as part of the type name. Same with the return type.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
adriwebcommented, Jul 15, 2020

Well it definitely worked at some point, because the annotations were working just fine, so I guess there was a regression some time? Not sure I could tell you when though 😦

0reactions
baharclerodecommented, May 27, 2021

Instead of trying to retroactively reserve ., can . continue to be allowed as part of a class name and instead just reserve a different character for literal indexing (# comes to mind, which is used in java) ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support metrics with dots in their names · Issue #347 - GitHub
Initial investigation of the issue shows that some metric names are problematic and conflict with metrics storage. This issue has been opened in...
Read more >
Diacritic - Wikipedia
In Gaelic type, a dot over a consonant indicates lenition of the consonant in question. In other alphabetic systems, diacritics may perform other...
Read more >
Trailing Dots in Domain Names
When I double-click a Bonjour (DNS-SD) Name in a web browser like Safari, the resulting URL has a hostname with a dot at...
Read more >
What are those dots called and how many of them are there ...
Those little dots often found in a sentence or quote are called an ellipsis. The term ellipsis comes from the Greek word meaning...
Read more >
Points, Dots, And Lines: The Elements Of Design Part II
What we can draw is a dot. In fact dots are the building blocks of everything else. Any other mark we make can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found