www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - dub can't read files from cache

reply "Ruslan" <buday48 mail.ru> writes:
My first experience in D programming. I've already installed dmd2 
and dub. I init new package, build and run it using dub - it 
works properly. Then I insert:

"dependencies": {
		"dfl": ">=0.0.1"
	}

to dub.json file. Dub fetch "dfl-0.0.1" , but can't read after. 
Build command gives:

app: ["app", "dfl"]
Building dfl configuration "library", build type debug.
Running dmd...
Error: cannot read file 
..\Users\╨а╤Г╤Б╨╗╨░╨╜\AppData\Roaming\dub\packages\dfl-0
.0.1\source\dfl\all.d

Please help. Thanks in advance.
Sep 16 2014
parent reply "Ruslan" <buday48 mail.ru> writes:
Note. ╨а╤Г╤Б╨╗╨░╨╜ is a cyrillic word. That should not
affect 
because dub only displays so.
Sep 16 2014
next sibling parent reply "Kagamin" <spam here.lot> writes:
Looks like an error from the compiler, non-ascii characters in 
file path can affect it.
Sep 17 2014
parent reply "Gary Willoughby" <dev nomad.so> writes:
On Wednesday, 17 September 2014 at 12:08:51 UTC, Kagamin wrote:
 Looks like an error from the compiler, non-ascii characters in 
 file path can affect it.
Try raising an issue here: https://github.com/D-Programming-Language/dub/issues
Sep 17 2014
parent "Suliman" <evermind live.ru> writes:
Is it's possible to change dub package cache dir?
Sep 17 2014
prev sibling parent reply "Ilya Yaroshenko" <ilyayaroshenko gmail.com> writes:
On Tuesday, 16 September 2014 at 17:11:14 UTC, Ruslan wrote:
 Note. ╨а╤Г╤Б╨╗╨░╨╜ is a cyrillic word. That should not
affect 
 because dub only displays so.
Если Вы программируете (не только на D), то Вам стоит сменить учетную запись на латинскую. От кириллической много проблем, в особенности из-за самого Windows, с его устаревшими кодировками. Под linux и OS X, использующих только UTF-8 обычно все работает. Илья
Sep 17 2014
parent reply "Kagamin" <spam here.lot> writes:
Windows has full support for unicode, since it's an OS based on 
unicode. It's old C code, which is not unicode-ready, and it 
remains not unicode-ready without changing behavior. Modern code 
like phobos usually tries to be unicode-ready.
Sep 18 2014
parent reply "Ilya Yaroshenko" <ilyayaroshenko gmail.com> writes:
On Thursday, 18 September 2014 at 10:45:24 UTC, Kagamin wrote:
 Windows has full support for unicode, since it's an OS based on 
 unicode. It's old C code, which is not unicode-ready, and it 
 remains not unicode-ready without changing behavior. Modern 
 code like phobos usually tries to be unicode-ready.
Windows 9 will be based on Windows 98 =) Seriously, console application (in Russian lang. Windows) is not unicode-ready.
Sep 18 2014
next sibling parent reply ketmar via Digitalmars-d-learn <digitalmars-d-learn puremagic.com> writes:
On Thu, 18 Sep 2014 15:53:02 +0000
Ilya Yaroshenko via Digitalmars-d-learn
<digitalmars-d-learn puremagic.com> wrote:

 Seriously, console application (in Russian lang. Windows) is not=20
 unicode-ready.
that's 'cause authors tend to ignore W-functions. but GNU/Linux is not better, 'cause authors tend to ignore any encodings except latin1 and utf-8. koi? what is koi? it's broken utf-8, we don't know about koi! and we don't care what your locale says, it's utf-8! bwah, D compiler does just that.
Sep 18 2014
next sibling parent reply "Ilya Yaroshenko" <ilyayaroshenko gmail.com> writes:
On Thursday, 18 September 2014 at 16:05:15 UTC, ketmar via 
Digitalmars-d-learn wrote:
 On Thu, 18 Sep 2014 15:53:02 +0000
 Ilya Yaroshenko via Digitalmars-d-learn
 <digitalmars-d-learn puremagic.com> wrote:

 Seriously, console application (in Russian lang. Windows) is 
 not unicode-ready.
that's 'cause authors tend to ignore W-functions. but GNU/Linux is not better, 'cause authors tend to ignore any encodings except latin1 and utf-8. koi? what is koi? it's broken utf-8, we don't know about koi! and we don't care what your locale says, it's utf-8! bwah, D compiler does just that.
You can choice encoding for console in Linux and edit encoding for other files with different utilities. https://plus.google.com/u/0/photos/110121926948523695249/albums/6060444524608761937/6060444528078004690?pid=6060444528078004690&oid=110121926948523695249
Sep 18 2014
parent reply ketmar via Digitalmars-d-learn <digitalmars-d-learn puremagic.com> writes:
On Thu, 18 Sep 2014 16:24:17 +0000
Ilya Yaroshenko via Digitalmars-d-learn
<digitalmars-d-learn puremagic.com> wrote:

 You can choice encoding for console in Linux
yes. and i chose koi8. yet many utilities tend to ignore my locale when reading files (hey, D compiler, i'm talking about you!). i don't care about localized messages (i'm using English messages anyway), but trying to tell me that my text file is invalid utf-8, or my filename is invalid utf-8, or spitting utf-8 encoded messages to my terminal drives me mad. what is so wrong with locale detection that virtually nobody does that? we have iconv, it's readily available on any decent GNU/Linux platform, yet it's still so hard to detect that stinky locale and convert that stinky utf-8 to it? BS. (hey, phobos, i'm talking about your stdout.write() here too!) the whole "utf-8 or die" attitude has something very wrong in it.
Sep 18 2014
parent reply "AsmMan" <jckj33 gmail.com> writes:
On Thursday, 18 September 2014 at 16:49:14 UTC, ketmar via 
Digitalmars-d-learn wrote:
 On Thu, 18 Sep 2014 16:24:17 +0000
 Ilya Yaroshenko via Digitalmars-d-learn
 <digitalmars-d-learn puremagic.com> wrote:

 You can choice encoding for console in Linux
yes. and i chose koi8. yet many utilities tend to ignore my locale when reading files (hey, D compiler, i'm talking about you!). i don't care about localized messages (i'm using English messages anyway), but trying to tell me that my text file is invalid utf-8, or my filename is invalid utf-8, or spitting utf-8 encoded messages to my terminal drives me mad. what is so wrong with locale detection that virtually nobody does that? we have iconv, it's readily available on any decent GNU/Linux platform, yet it's still so hard to detect that stinky locale and convert that stinky utf-8 to it? BS. (hey, phobos, i'm talking about your stdout.write() here too!) the whole "utf-8 or die" attitude has something very wrong in it.
I didn't know about this encoding. Why should you use KOI8-R instead of UTF-8? what does it conver that UTF-8 didn't? I used to think UTF-8 does conver all the alphabets around, japonese people does use it, isn't?
Sep 18 2014
next sibling parent reply ketmar via Digitalmars-d-learn <digitalmars-d-learn puremagic.com> writes:
On Thu, 18 Sep 2014 18:14:36 +0000
AsmMan via Digitalmars-d-learn <digitalmars-d-learn puremagic.com>
wrote:

 I didn't know about this encoding. Why should you use KOI8-R=20
 instead of UTF-8? what does it conver that UTF-8 didn't? I used=20
 to think UTF-8 does conver all the alphabets around, japonese=20
 people does use it, isn't?
koi8: one symbol =3D=3D one byte. utf8: one symbol =3D=3D ... ah, who knows? only Shadow knows... koi8-u is enough for me. i can use three languages with it and still have my strings easily indexable. it's ok to use utf-8 when i need to interchange some data with "outer world" -- i.e. send or receive some text over network. but i can't see why i must use utf-8 for my local data. i know what i'm doing yet... yet i can't have koi8 string in my D code without ugly "\x" escapes. i can't have koi8 text in my comments. Great Lord, it's just comments, it's not even DDoc, why can't i write anything i want there?!
Sep 18 2014
parent "Kagamin" <spam here.lot> writes:
On Thursday, 18 September 2014 at 18:26:37 UTC, ketmar via 
Digitalmars-d-learn wrote:
 i can't have koi8 string in my D
 code without ugly "\x" escapes. i can't have koi8 text in my 
 comments.
 Great Lord, it's just comments, it's not even DDoc, why can't i 
 write
 anything i want there?!
Editors usually can handle various encodings independently from your system settings, you should be able to keep D code in utf-8. For example, notepad on windows can handle utf-8 even though it's not a native encoding for windows.
Sep 19 2014
prev sibling parent ketmar via Digitalmars-d-learn <digitalmars-d-learn puremagic.com> writes:
On Thu, 18 Sep 2014 21:26:27 +0300
ketmar via Digitalmars-d-learn <digitalmars-d-learn puremagic.com>
wrote:

btw, D lexer tries to validate even shebangs. WUT?! why can't i put
non-utf8 text in shebang? ah, it's "utf-8 or die" again, i see...
Sep 18 2014
prev sibling next sibling parent "Ilya Yaroshenko" <ilyayaroshenko gmail.com> writes:
On Thursday, 18 September 2014 at 16:05:15 UTC, ketmar via 
Digitalmars-d-learn wrote:
 On Thu, 18 Sep 2014 15:53:02 +0000
 Ilya Yaroshenko via Digitalmars-d-learn
 <digitalmars-d-learn puremagic.com> wrote:

 Seriously, console application (in Russian lang. Windows) is 
 not unicode-ready.
that's 'cause authors tend to ignore W-functions. but GNU/Linux is not better, 'cause authors tend to ignore any encodings except latin1 and utf-8. koi? what is koi? it's broken utf-8, we don't know about koi! and we don't care what your locale says, it's utf-8! bwah, D compiler does just that.
"one ring to rule them all" UTF-8 = Lord of the encodings.
Sep 18 2014
prev sibling parent reply "Ilya Yaroshenko" <ilyayaroshenko gmail.com> writes:
On Thursday, 18 September 2014 at 16:05:15 UTC, ketmar via
Digitalmars-d-learn wrote:
 On Thu, 18 Sep 2014 15:53:02 +0000
 Ilya Yaroshenko via Digitalmars-d-learn
 <digitalmars-d-learn puremagic.com> wrote:

 Seriously, console application (in Russian lang. Windows) is 
 not unicode-ready.
that's 'cause authors tend to ignore W-functions. but GNU/Linux is not better, 'cause authors tend to ignore any encodings except latin1 and utf-8. koi? what is koi? it's broken utf-8, we don't know about koi! and we don't care what your locale says, it's utf-8! bwah, D compiler does just that.
"one ring to rule them all" UTF-8 = Lord of the encodings.
Sep 18 2014
parent reply ketmar via Digitalmars-d-learn <digitalmars-d-learn puremagic.com> writes:
On Thu, 18 Sep 2014 16:31:08 +0000
Ilya Yaroshenko via Digitalmars-d-learn
<digitalmars-d-learn puremagic.com> wrote:

 "one ring to rule them all"
 UTF-8 =3D Lord of the encodings.
i want 42th symbol from the string. what? what do you mean saying that i must scan the whole string from the beginning to get it? oh, High Lord, this one Lord is fake!
Sep 18 2014
parent "AsmMan" <jckj33 gmail.com> writes:
On Thursday, 18 September 2014 at 16:51:06 UTC, ketmar via 
Digitalmars-d-learn wrote:
 On Thu, 18 Sep 2014 16:31:08 +0000
 Ilya Yaroshenko via Digitalmars-d-learn
 <digitalmars-d-learn puremagic.com> wrote:

 "one ring to rule them all"
 UTF-8 = Lord of the encodings.
i want 42th symbol from the string. what? what do you mean saying that i must scan the whole string from the beginning to get it? oh, High Lord, this one Lord is fake!
That's why a while ago I was considering convert a string from UTF-8 to UTF-32. UTF-32 is nice I don't understand when people say there are no any advantage to use it. Indexing is just possible. Memory size isn't much an issue. I needed to extend support for UTF-8 in a program where I had some routines where I could move forward and backward very easily just indexing but using UTF-8 it isn't possible so I needed to make my own an iterator when I need to save a pointer instead of a index. In memory usage it isn't so bad since a size of that index is same as pointer but the structure of the program was a bit "ugly", a kind of "hack", IMHO.
Sep 18 2014
prev sibling parent "Kagamin" <spam here.lot> writes:
On Thursday, 18 September 2014 at 15:53:03 UTC, Ilya Yaroshenko 
wrote:
 Windows 9 will be based on Windows 98 =)
 Seriously, console application (in Russian lang. Windows) is 
 not unicode-ready.
Console API is unicode too. What can be not unicode is console font, but that can happen for GUI too.
Sep 19 2014