Re: Potential unicode issue on Windows

683 views
Skip to first unread message

João Marcos Vasconcelos

unread,
Sep 17, 2013, 9:56:58 PM9/17/13
to simple-b...@googlegroups.com
Any news on this problem? Any workaround?

I got the same issue..

sds,
JM

On Tuesday, March 26, 2013 2:54:43 AM UTC-3, Lázaro Clapp wrote:
Hi all,

I just installed sbt 0.12.2 on Windows 7 (with MSI installer). However, I get an error when running "sbt sbt-version":

io problem while parsing ivy file: http://repo1.maven.org/maven2/net/jav
a/dev/jna/jna/3.2.3/jna-3.2.3.pom: Path contains invalid character: ß

This error seems to be related to the fact that my home directory path contains the unicode character 'á', which for some reason appears as 'ß' to sbt (e.g. it tries path C:\Users\Lßzaro\.ivy2\local\net.java.dev.jna\jna\3.2.3\ivys\ivy.xml at some point; my home directory is C:\Users\Lázaro).

Anybody knows if this is an issue with sbt or is there something else going on?

Below is the full error (and here is update.log : https://docs.google.com/file/d/0B89jfC8hEWCAS3FYak5PNHJKdUk/edit?usp=sharing ):

C:\Users\Lázaro>sbt --verbose sbt-version
Getting net.java.dev.jna jna 3.2.3 ...
:: problems summary ::
:::: WARNINGS
        io problem while parsing ivy file: http://repo1.maven.org/maven2/net/jav
a/dev/jna/jna/3.2.3/jna-3.2.3.pom: Path contains invalid character: ß
                module not found: net.java.dev.jna#jna;3.2.3
        ==== local: tried
          C:\Users\Lßzaro\.ivy2\local\net.java.dev.jna\jna\3.2.3\ivys\ivy.xml
        ==== typesafe-ivy-releases: tried
          http://repo.typesafe.com/typesafe/ivy-releases/net.java.dev.jna/jna/3.
2.3/ivys/ivy.xml
        ==== Maven Central: tried
          http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom

        ==== sonatype-snapshots: tried
          https://oss.sonatype.org/content/repositories/snapshots/net/java/dev/j
na/jna/3.2.3/jna-3.2.3.pom
                ::::::::::::::::::::::::::::::::::::::::::::::
                ::          UNRESOLVED DEPENDENCIES         ::
                ::::::::::::::::::::::::::::::::::::::::::::::
                :: net.java.dev.jna#jna;3.2.3: not found
                ::::::::::::::::::::::::::::::::::::::::::::::


:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: net.java.dev.jna#jna;3.2.3: not found
Error during sbt execution: Error retrieving required libraries
  (see C:\Users\Lßzaro\.sbt\boot\update.log for complete log)
Error: Could not retrieve jna 3.2.3

Paul Phillips

unread,
Sep 18, 2013, 1:28:54 AM9/18/13
to simple-b...@googlegroups.com

On Mon, Mar 25, 2013 at 10:54 PM, Lázaro Clapp <lazaro...@gmail.com> wrote:
Anybody knows if this is an issue with sbt or is there something else going on?

It looks like a bug in ivy, fixed in 2.3.0, but sbt is still using 2.3.0-rc1.


João Marcos Vasconcelos

unread,
Sep 18, 2013, 9:20:22 AM9/18/13
to simple-b...@googlegroups.com
I've found a workaround.

You have to move your .ivy2 folder out from your home folder and into a new path containing only ascii characters. e.g. C:/folder/subfolder/
And then configure sbtconfig.txt:
-Dsbt.ivy.home=C:/folder/subfolder/.ivy2/ 
-Divy.home=C:/folder/subfolder/.ivy2/
Not sure if it is an open page or if it is only available for those enrolled on the class.

greetings,
JM

Marko Elezović

unread,
Sep 20, 2013, 10:18:41 AM9/20/13
to simple-b...@googlegroups.com
Hi there!
You do not need to move your .ivy folder anywhere, rather change ivy path to use the short (DOS) name.

In order to simply find out what the official name for your folder is, run the dir command with the /x parameter
This will display the short names generated for non-8dot3 file names:

For example, if your folder is C:\Users\Lázaro, do
dir /x c:\Users
And you will get  <DIR>          LZARO~1      Lázaro
Afterwards, simply instruct ivy to use C:\Users\LZARO~1 as the home directory

The same workaround can be used for a plethora of other situations where cross-encoding is causing you headaches.

Regards,
Marko
--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-t...@googlegroups.com.
To post to this group, send email to simple-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/groups/opt_out.

João Marcos Vasconcelos

unread,
Sep 21, 2013, 6:56:16 PM9/21/13
to simple-b...@googlegroups.com
Oh good! Thanks!


--
You received this message because you are subscribed to a topic in the Google Groups "simple-build-tool" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simple-build-tool/Zof5BjHngbA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simple-build-t...@googlegroups.com.

Паша Варченко

unread,
Oct 12, 2013, 9:31:28 AM10/12/13
to simple-b...@googlegroups.com
thank you! =)

пятница, 20 сентября 2013 г., 18:18:41 UTC+4 пользователь Marko Elezovic написал:

Noé Jobin

unread,
Sep 24, 2014, 9:37:07 AM9/24/14
to simple-b...@googlegroups.com, ma...@element.hr
Yes, it works ! Thanks a lot :)
Reply all
Reply to author
Forward
0 new messages