Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting a compilation error on sobelow 0.11.0 #83

Closed
skylerparr opened this issue Jan 11, 2021 · 2 comments
Closed

Getting a compilation error on sobelow 0.11.0 #83

skylerparr opened this issue Jan 11, 2021 · 2 comments

Comments

@skylerparr
Copy link

This is the error I'm seeing:

** (UndefinedFunctionError) function Jason.encode!/2 is undefined (module Jason is not available)
    Jason.encode!(%{findings: %{high_confidence: [], low_confidence: [], medium_confidence: []}, sobelow_version: "0.11.0", total_findings: 0}, [pretty: true])
    lib/sobelow.ex:142: Sobelow.print_output/0
    lib/sobelow.ex:120: Sobelow.run/0
    (mix 1.10.3) lib/mix/task.ex:330: Mix.Task.run_task/3
    (mix 1.10.3) lib/mix/cli.ex:82: Mix.CLI.run_task/2

Worked fine with sobelow 0.10.3. Not sure what changed; running:

  jason 1.2.2
  sobelow 0.11.0
@GriffinMB
Copy link
Collaborator

GriffinMB commented Jan 11, 2021

How are you installing Sobelow?

This is probably an error with installation. With the latest update, Sobelow needs to be installed as an escript if you are using it as a standalone utility. See the release notes for details: https://sobelow.io/#v0110

@skylerparr
Copy link
Author

The new installation approach looks like it was the issue. I was able to run it locally with the new installation method. We'll try it on our build server later this week.

Previously we were installing it via:

mix archive.install hex sobelow --force

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants