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.

Spec gotcha: directory entry must end with `/`

See original GitHub issue

SourceItem specifies that a directory entry must end with /. This is a detail that is likely to be missed by implementors of the spec, both client and server and requires looking at the string to determine if something is a directory. I suggest making it an explicit field in SourceItem (and probably DependencySourceItem as well.

trait SourceItem {
  /** Either a text document or a directory. A directory entry must end with a forward
    * slash "/" and a directory entry implies that every nested text document within the 
    * directory belongs to this source item.
    */
  def uri: Uri

  /** Indicates if this source is automatically generated by the build and is not
    * intended to be manually edited by the user. */
  def generated: Boolean
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:24 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
olafurpgcommented, Jan 20, 2019

Sounds good, if you open a PR I’m happy to LGTM 👍

0reactions
jasticecommented, Feb 7, 2019

Solved via #83

Read more comments on GitHub >

github_iconTop Results From Across the Web

BSP 2.0 Milestone · GitHub
Spec gotcha: directory entry must end with / spec Involves a modification to the spec. #76 by jastice was closed on Feb 7,...
Read more >
Gotchas - GitLab Docs
Assets that need to be served to the user are stored under the app/assets directory, which is later pre-compiled and placed in the...
Read more >
CSCI 333 :: Storage Systems :: FUSE FAT
All file metadata is kept in the directory entry. At a minimum, this should include the file type (directory or file), the size...
Read more >
CS137 FUSE Documentation
If you choose to use it, you should set that field in your open and opendir ... fi): Return one or more directory...
Read more >
Administrivia NachOS–An Important Gotcha Fineprint for ...
NachOS–An Important Gotcha ... context switch time) complex –it should be in software ... Close: move the entry back to the directory.
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