GithubHelp home page GithubHelp logo

Comments (7)

jamescourtney avatar jamescourtney commented on May 28, 2024 2

Fixed in 7.2.1, which uses a custom build of flatc :)

from flatsharp.

jamescourtney avatar jamescourtney commented on May 28, 2024 1

Agree completely. You've actually inspired me to see if I can get flatc to add a drive letter to the relative path.

from flatsharp.

OptoCloud avatar OptoCloud commented on May 28, 2024 1

Yeah, looks to be working fine 😄
Thanks! 😁

from flatsharp.

jamescourtney avatar jamescourtney commented on May 28, 2024

This is a known issue. Unfortunately, there is little I can do about it.

FlatSharp uses the paths generated by flatc internally. These paths are all relative, and on Windows they do not include the drive letter. An example of a real path that flatc produces is this:

//../../../:/git/FlatSharp/test.fbs

Unfortunately, the drive letter is not present, so FlatSharp can only make guesses about the location of the file. It looks like you've contributed to google/flatbuffers before. One thing that would allow me to effectively mitigate this would be an option to add absolute paths to bfbs output instead of relative.

from flatsharp.

OptoCloud avatar OptoCloud commented on May 28, 2024

Ah I see... But that would probably break backwards compatibility, so I'm guessing they won't implement that.
I can see if I find some way to have the nuget packages cached on the same drive as the source code.
Thanks for the quick answer! 😄

from flatsharp.

OptoCloud avatar OptoCloud commented on May 28, 2024

Would be nice to have some kind of detection for seperate drives and give a better exception message tho 🤔

from flatsharp.

jamescourtney avatar jamescourtney commented on May 28, 2024

@OptoCloud -- is this working for you now?

from flatsharp.

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.