Git Product home page Git Product logo

Comments (6)

pgourlain avatar pgourlain commented on September 3, 2024

Hi,

I use ErlangInstaller. when I switch to OTP 23.0. I didn't have this issue.

to check which version of erlang is use in the extension, activate trace in settings, then check the first line. it should be something like that

 using erlang binaries from path : '/Users/xxxx/Library/Application Support/ErlangInstaller/23.0/bin'

from vscode_erlang.

zeek0x avatar zeek0x commented on September 3, 2024

Hi 😃

The extenstion has error occured by this syntax since 0.6.4 (versions prior to OTP21).

If you want to run OTP 21 20 or earlier, you can do so by reverting to an extension version.

  • Get vsix.
curl -o erlang-0.6.3.vsix "https://pgourlain.gallery.vsassets.io/_apis/public/gallery/publisher/pgourlain/extension/erlang/0.6.3/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage"
  • Open the command palette, type vsix and go to Install from VSIX to get Select erlang-0.6.3.vsix.
  • To turn off automatic updates to the extension, set the following

(appendix: You can easily specify a previous version by right-clicking on the extensions.)

setting.json

    "extensions.autoUpdate": false

from vscode_erlang.

pgourlain avatar pgourlain commented on September 3, 2024

Thanks, I will check with the OTP 21 runtime.

from vscode_erlang.

pgourlain avatar pgourlain commented on September 3, 2024

Hi,

With 0.6.5, you can use until OTP 18.

can you check if it works for you ?

from vscode_erlang.

zeek0x avatar zeek0x commented on September 3, 2024

Hi

I checked with 0.6.5, It's work!!!

Compile error seems to be a problem specific to 0.6.4.

BTW, I post the errors on the vscode's OUTPUT.

  • Erlang/OTP: 20.3
  • vscode_erlang: 0.6.4
erlang extension is active
using erlang binaries from path : 'XXX/bin/erlang/20.3/bin'
starting : escript 
XXX/.vscode/extensions/pgourlain.erlang-0.6.4/rebar3 compile
�[0;32m===> Verifying dependencies...
�[0m�[0;32m===> Compiling vscode_lsp
�[0m
�[0;31m===> �[1mCompiling apps/erlangbridge/src/lsp_navigation.erl failed
�[0m�[0m
apps/erlangbridge/src/lsp_navigation.erl:44: illegal pattern
apps/erlangbridge/src/lsp_navigation.erl:45: variable 'M' is unbound
apps/erlangbridge/src/lsp_navigation.erl:45: variable 'STK' is unbound

escript exit code:1
using erlang binaries from path : 'XXX/bin/erlang/20.3/bin'
starting : erl 
-noshell -pa src -pa ebin -s int -vscode_port 62444 -s vscode_lsp_entry start 62444 
src/lsp_navigation.erl:44: illegal pattern
src/lsp_navigation.erl:45: variable 'M' is unbound
src/lsp_navigation.erl:45: variable 'STK' is unbound

=ERROR REPORT==== 2-Aug-2020::10:43:45 ===
compile result of "src/lsp_navigation": error

=ERROR REPORT==== 2-Aug-2020::10:43:45 ===
compile_needed_modules failed : error

Thanks for good extension!

from vscode_erlang.

pgourlain avatar pgourlain commented on September 3, 2024

Thanks for your report and tests !

from vscode_erlang.

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.