Source “@openzeppelin/contracts/token/ERC20/ERC20.sol” not found: File not found. Searched the following locations: “/e/sol/1”, “/e/sol/1/node_modules”
Seems the --include-path doesn’t work in lsp mode, why is that?
// ...
if (m_options.input.mode == InputMode::LanguageServer)
return;
// ...
if (m_args.count(g_strBasePath))
// ...
if (m_args.count(g_strIncludePath) > 0)
{
// ...
}
It returns before processing --include-path if it’s lsp mode, so the --include-path doesn’t work for lsp mode.
Is there any way to import additional directory for lsp mode?
Hi @aj3423 thanks for bring this up. In fact the LSP mode still very experimental and most of its functionality is not yet implemented, thus the error you reported. We still need to discuss if we will or not continue with the effort to develop it further as a builtin Solidity language server.