Questions tagged [visual-studio-code]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
23 views

VS code Expected identifier, got 'LParen'solc

I keep getting this error/warning on my vscode when I emit events and build constructors. or After a bit of googling I understand it is something about my compiler, since solc <0.4.18 does not ...
1
vote
1answer
16 views

VS Code and Solidity files have a lot of warnings

Every time I use VS Code to develop Solidity, files I have a lot of this weird warnings saying: no-trailing-whitespace: Line contains trailing whitespace I googled a bit and I understand why they ...
0
votes
1answer
307 views

Truffle will not compile contract written in VS code. Pragma error

I'm trying to run example from https://truffleframework.com/tutorials/pet-shop, but when I run truffle compile I get error saying Error parsing C:/WINDOWS/system32/TruffleTest/pet-shop-tutorial/...
2
votes
2answers
520 views

Error when calling the selfdistruct method in solidity

I am quite new to solidity, and I have not managed to find a solution for this problem. I am passing the function an address but it says the following: "Invalid type for argument in function call. ...
0
votes
1answer
518 views

Data location must be “memory” for parameter in function, but none was given

I code my solidity contracts and I test in Remix Web IDE. When I test and I not get errors I copy to my project folder in my local machine. And all this errors appear in Visual Studio Code. I can ...
2
votes
4answers
1k views

Solidity version error

I use Solidity Remix IDE for develop purpose. And when I finish I copy in VisualStudio Code and i attach to my project folder. But visual is telling me that i have a problem with the version. I can ...
2
votes
2answers
341 views

Why use VS Code IDE instead of remix?

I've seen that during the course of tutorials I am following, the intructors have gradually shifted over to Visual Studio code rather than use remix. I could not find any such explanation as to why ...
2
votes
2answers
1k views

Solved: How to change Solidity linter [solc] compiler version in Visual Studio Code?

Hi may I know how to change my Solidity linter compiler version in Visual Studio Code(vscode)? OR Visual studio code how to specify solidity compiler version? The only Solidity related extensions I ...
6
votes
3answers
570 views

VS Code Syntax error when emitting events in Solidity 0.4.21

I'm having a syntax error in VS Code in the parts where I emit events using new notation for Solidity v0.4.21. Remix doesn’t raise any errors, though. My User Settings in VS Code contain "solidity....
8
votes
1answer
689 views

How can I debug a truffle JS unit test with vscode?

I am using visual studio code and truffle and would like to easily debug my JavaScript tests. A similar question has been asked here: how can I run a truffle test in a debugger?. This has been ...
1
vote
1answer
259 views

Specify Token Price

I'm pretty much new on this. But I really want to learn. I just created a contract for mintable token on Kovan test-net. But, I'm getting confused when I try to buy the token, it's always shown x000....
2
votes
2answers
4k views

How to use solidity extension for visual studio code?

I am new to Ethereum and I am using visual studio code as an editor for solidity. I wrote a simple program and save it with .sol extension. pragma solidity ^0.4.0; contract SimpleStorage { uint ...
1
vote
3answers
820 views

Syntax highlighting for Solidity VS Code extension not working on linux

Even if the extension installation completes correctly, syntax highlighting does not work.
9
votes
3answers
9k views

Visual Studio Code Ethereum tutorial

Are there any tutorials on how to use MS Visual Studio Code to write contracts in solidity?