eclipse-archived / ceylon.formatter

A formatter for the Ceylon programming language, written in Ceylon.
Apache License 2.0
14 stars 11 forks source link

Absolute paths on command line #48

Closed lucaswerkmeister closed 10 years ago

lucaswerkmeister commented 10 years ago

Found by @thradec here.

'/home/lucas/git/ceylon/ceylon.formatter/source/ceylon/formatter/Patterns.ceylon'.relativePath('home')
'other' is different type of Path
lucaswerkmeister commented 10 years ago

Oh, of course… I can’t have /home/... relative to home, I would need it relative to /home.

lucaswerkmeister commented 10 years ago

Actually, the semantics of absolute paths here are completely unclear. The result of

source --to source-formatted

is a source-formatted on the same level as source. But what should the result of

/absolute/source --to source-formatted

even be?

lucaswerkmeister commented 10 years ago

Dangit, I referenced the wrong issue in that commit, and GitHub doesn’t seem to notice that I force-pushed a fixed vesion.

lucaswerkmeister commented 10 years ago

“Discussion” (just me ATM) and proposed solution happening in #50.