-
Notifications
You must be signed in to change notification settings - Fork 192
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
Linting not working. Nothing is showing up when there are supposed to be errors. Errors don't show while coding, only if I compile would I get error messages. #274
Comments
Hi @adriandelgg what are your settings? |
Hey @juanfranblanco, thanks for replying and making this awesome VS Code extension. |
Any ideas as to why it's not working? Is there any way I can completely delete the extension and any past versions so that I can have a brand new fresh installation of it? |
bump on this thread, I am having the same error and it is causing me great trouble |
@adriandelgg @ClockworkRainbow apologies this thread went out of track, are you still having the issues? |
It's okay. I'm not sure if I'm supposed to get the exact linting i get like i do with Remix IDE. For example, I'm Remix, it detects on the IDE if I can turn a function into view, while on VSCode it only suggests that when I run the compiler. Is this the right behaviour? |
@adriandelgg does it look like this? This is mainly driven by the compiler in the background. |
Oh I just have seen your settings, you have put in the local compiler path "latest", remove that value.. (this is why i needed glasses :) ) Edit: although it should not make any differences as your compiler is set to remote. |
No, mine doesn't do that.😭 |
No you don't need to install anything else. |
These are my {
"telemetry.enableCrashReporter": false,
"liveServer.settings.donotShowInfoMsg": true,
"git.autofetch": true,
"workbench.iconTheme": "material-icon-theme",
"editor.fontFamily": "'Fira Code', monospace",
"telemetry.enableTelemetry": false,
"workbench.startupEditor": "newUntitledFile",
"editor.renderWhitespace": "none",
"workbench.editor.decorations.colors": true,
"oneDarkPro.bold": true,
"git.enableSmartCommit": true,
"gitlens.advanced.messages": {
"suppressGitMissingWarning": true
},
"explorer.confirmDragAndDrop": false,
"[json]": {
"editor.quickSuggestions": {
"strings": true
},
"editor.suggest.insertMode": "replace",
"gitlens.codeLens.scopes": ["document"],
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.fontLigatures": "'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'zero', 'onum'",
"editor.fontSize": 15.95,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.tabSize": 2,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"prettier.singleQuote": true,
"prettier.arrowParens": "avoid",
"prettier.useTabs": true,
"prettier.trailingComma": "none",
"explorer.confirmDelete": false,
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.minimap.renderCharacters": false,
"editor.cursorSmoothCaretAnimation": true,
"editor.cursorWidth": 2,
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": ["entity.name.function", "entity.name.method"],
"settings": {
"fontStyle": "bold"
}
}
]
},
"editor.semanticHighlighting.enabled": true
"editor.cursorBlinking": "expand",
"terminal.integrated.cursorBlinking": true,
"editor.linkedEditing": true,
"launch": {
"configurations": [],
"compounds": []
},
"typescript.updateImportsOnFileMove.enabled": "always",
"emmet.showSuggestionsAsSnippets": true,
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"typescript": "typescriptreact"
},
"solidity.compileUsingRemoteVersion": "v0.8.7+commit.e28d00a7",
"git.confirmSync": false,
"tailwindCSS.emmetCompletions": true,
"files.trimTrailingWhitespace": true,
"codesnap.backgroundColor": "#fb6f7d",
"codesnap.boxShadow": "rgba(0, 0, 0, 0.55) 0px 10px 20px",
"git.enableCommitSigning": true,
"editor.minimap.enabled": false,
"editor.formatOnSave": true,
"[markdown]": {
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
},
"security.workspace.trust.untrustedFiles": "open",
"terminal.integrated.defaultProfile.linux": "zsh",
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"python.pythonPath": "C:\\Users\\adria\\AppData\\Local\\Programs\\Python\\Python39\\python.exe",
"editor.bracketPairColorization.enabled": true,
"redhat.telemetry.enabled": false,
"vs-kubernetes": {
"vscode-kubernetes.kubectl-path.linux": "/home/CodeOnBlocks/.vs-kubernetes/tools/kubectl/kubectl",
"vscode-kubernetes.helm-path.linux": "/home/CodeOnBlocks/.vs-kubernetes/tools/helm/linux-amd64/helm",
"vscode-kubernetes.minikube-path.linux": "/home/CodeOnBlocks/.vs-kubernetes/tools/minikube/linux-amd64/minikube"
},
"workbench.colorTheme": "Electronic Moonlight"
} As well as all the global NPM packages I have installed:
|
I FIGURED OUT WHY IT'S NOT WORKING. The However, how can I make it so it auto detects it? In the screenshot, you can see that in my workspace I have multiple folders with different projects. I had to set the rule for this specific project as Is there a way to set the |
Ah yeah at the moment the settings in a workspace apply to all folders, (workspace settings), the only solution is to open each folder separate. This is the same for the new remappings. So mainly your bp-projects, you will need to open each folder separate, we are all discussing to have a project file, which will make things much easier (eventually) |
That'd be awesome. I've noticed that even though the path is set to another project, if I go into a new project it will actually still work, so that's good. But yes, it'd be great to have it detect it all on its own. I'm assuming it works because it finds the necessary info in the other project, but if I import for example |
@adriandelgg yes that is the side effect, this workspaces folders is rather painful, as you will need folder settings per folder in workspace, but that is not possible. |
@adriandelgg try to add a remappings.txt file in the root folder of each project. Here you can map specific files or folder.
|
Hello, I'm using the Solidity extension & before it used to work just fine and would show linting for errors, but now I never get them. It's clear that the errors are there because when I compile with Hardhat/Truffle it complains, but I'm not getting linting as I'm coding like how Remix IDE does.
I don't understand why it's not working anymore and it's really upsetting since I rely on the linting for work.
The text was updated successfully, but these errors were encountered: