#Solang extension

1 messages · Page 1 of 1 (latest)

woven sand
#

i have solang

vscode git:(main) which solang
/opt/homebrew/bin/solang

node version
v18.18.0

solang version
0.3.3

i am running these cmd

Once you have node and npm installed, you can build the extension like so:

git clone https://github.com/hyperledger/solang
cd solang/vscode
npm install
npm install -g vsce
vsce package

after running vsce package
i get something like this

../../../../node_modules/@types/yargs/index.d.ts:945:1 - error TS1160: Unterminated template literal.

#

@nocturne spear

#

@sudden echo

#

getting error in this file

../../../../node_modules/@types/yargs/index.d.ts:

from solang code repo

#

i am not able to run this command

code --install-extension solang-0.3.3.vsix

this give me error

cause: [Error: ENOENT: no such file or directory, open '/Users/shivamsoni/Desktop/ok/solang/vscode/solang-0.3.3.vsix'

#

solang -> integration -> anchor -> tests-> call_anchor.sol

in this file some imports are not working properly

please check

nocturne spear
#

also this path looks like it is somewhere else outside of the solang repo. Would you mind having a look and seeing if you can find hte file

woven sand
#

I you have time 🕰️ and don’t mind then we can discuss this is voice channel so I can fix this instantly and move further

nocturne spear
#

sorry @woven sand I am quite busy this week. Can we try to resolve this over chat?

woven sand
#

i am doing this

git clone https://github.com/hyperledger/solang
cd solang/vscode
npm install
npm install -g vsce
vsce package

when i run vsce package

i am getting error
The error you get is in ../../../../node_modules/@types/yargs/index.d.ts

second

Alternatively, the extension is run from vscode itself.
Inside a vscode instance, Ctrl+Shift+B to build the project
On the task bar at the bottom of the IDE select Launch Client

Open a Solidity file (.sol) to test the extension.

then i am getting this

solang -> integration -> anchor -> tests-> call_anchor.sol

in this file some imports are not working properly

please check
https://github.com/hyperledger/solang/blob/main/integration/anchor/tests/call_anchor.sol

my solang is v0.3.3 which i downlodead from home brew

woven sand
#

i have these node versions

v16.15.1
v16.16.0
v16.17.0
v17.9.0
v18.15.0
v18.16.0
-> v18.18.0
v21.1.0
v21.3.0
system
default -> v16.13.0 (-> N/A)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v21.3.0) (default)
stable -> 21.3 (-> v21.3.0) (default)
lts/* -> lts/iron (-> N/A)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.24.1 (-> N/A)
lts/erbium -> v12.22.12 (-> N/A)
lts/fermium -> v14.21.3 (-> N/A)
lts/gallium -> v16.20.2 (-> N/A)
lts/hydrogen -> v18.19.0 (-> N/A)
lts/iron -> v20.10.0 (-> N/A)

#

yes yes i have issues with node version

#

now this issues is resolved

when i run vsce package

i am getting error
The error you get is in ../../../../node_modules/@types/yargs/index.d.ts

#

extension installed successfully

#

but

here

for testing

Inside a vscode instance, Ctrl+Shift+B to build the project
On the task bar at the bottom of the IDE select Launch Client
Open a Solidity file (.sol) to test the extension.

which vscode instanse (solang project or my own project)
where to find launch client

#

now working

#

thanks @nocturne spear

#

now you can close thread