Code Monkey home page Code Monkey logo

Comments (5)

ab3dat avatar ab3dat commented on May 28, 2024

Investigating this issue leads to the result that the connection to WinFSP is not broken.
IoStatus=c0000034[0] says, that the object cannot be found.

All you have to do is setting the correct file encoding. Java uses CP1252 as default encoding on Windows which only uses 1 byte per character. The interface in WinFSP expects UTF-8 encoding which is 1-4 bytes per character. This means that there are invalid characters in your path when trying to access the file system.
image

Simply change the file encoding in the IDE to UTF-8 or use the parameter -Dfile.encoding=UTF-8 when compiling in the commandline. This solves the issues.

from jnr-fuse.

SerCeMan avatar SerCeMan commented on May 28, 2024

Hey, @ab3dat, @TriangularIT! Yes, sorry, I missed the issue initially. It's true, the encoding might need to be explicitly specified on windows, https://github.com/SerCeMan/jnr-fuse/blob/master/INSTALLATION.md#troubleshooting.

We might also need to add some runtime warnings to make sure there is some logging that warns abut the encoding at runtime.

from jnr-fuse.

ab3dat avatar ab3dat commented on May 28, 2024

I just now saw that you already pointed to this issue in the troubleshooting section. I mean, I read that sentence quite a few times. Unfortunately the highlighted error service java has failed to start takes over the focus when reading and one totally ignores the rest of the sentence if you do not have that error.

A runtime warning would be a great solution.

from jnr-fuse.

ab3dat avatar ab3dat commented on May 28, 2024

@SerCeMan I implemented a runtime warning now in AbstractFuseFS.java

            case WINDOWS:
        		if (!System.getProperty("file.encoding").equals("UTF-8"))
        		{	
        			System.out.println("UTF-8 encoding required! Current encoding: " + System.getProperty("file.encoding"));
        		}
        		String winFspPath = WinPathUtils.getWinFspPath();
            	libFuse = loader.load(winFspPath);
            	break;

In case Windows is detected as platform and the codepage is not UTF-8, a message will be printed in the command line.

image

Guess that should do it. If you are fine with this fix, I'm going to create a pull request.

from jnr-fuse.

 avatar commented on May 28, 2024

Thank you, @ab3dat for your help! It all works – I have missed the warning on the Installation page! 🤦‍♂️

from jnr-fuse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.