Skip to content

Tutorial Nitpick that got me stuck for no reason for quite a bit. #76

Open

Description

@JackWitherell

Hey guys!

Taking advice from the home page of usb4java's website regarding reporting bugs of the software or even the website in the case of a typo I thought I should let you guys know about a pretty annoying beginner pitfall in the low-level usb api tutorial.

in the Initialization/deinitialization section, users are instructed to initialize a context called context. The next step in the tutorial has the user running LibUsb.getDeviceList on a null context. This got me staring at the same piece of code for a while as IllegalStateException: Default context is not initialized doesn't make sense to me without the prior knowledge that null is the default context.

I'm not a designer of tutorial instruction by any means but it'd be nice to have some more context on what a context is instead of having new users try and figure it out on their own with a pretty tricky early issue.

Let me know what you think.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions