eranif / codelite

A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
https://codelite.org
GNU General Public License v2.0
2.09k stars 448 forks source link

[Bug]: build fail with -DENABLE_SFTP=0 #3302

Closed rozhuk-im closed 5 months ago

rozhuk-im commented 5 months ago

What happened?

--- Plugin/CMakeFiles/plugin.dir/LSP/LSPNetworkRemoteSTDIO.cpp.o ---
In file included from ../../codelite-e6c8cf471af5374fb3eb442aa914f716b023cf83/Plugin/LSP/LSPNetworkRemoteSTDIO.cpp:1:
../../codelite-e6c8cf471af5374fb3eb442aa914f716b023cf83/Plugin/LSP/LSPNetworkRemoteSTDIO.hpp:9:5: error: use of undeclared identifier 'clSSHInteractiveChannel'
    9 |     clSSHInteractiveChannel::Ptr_t m_process;
      |     ^
../../codelite-e6c8cf471af5374fb3eb442aa914f716b023cf83/Plugin/LSP/LSPNetworkRemoteSTDIO.cpp:39:17: error: use of undeclared identifier 'clRemoteHost'
   39 |     m_process = clRemoteHost::Instance()->run_interactive_process(
      |                 ^
../../codelite-e6c8cf471af5374fb3eb442aa914f716b023cf83/Plugin/LSP/LSPNetworkRemoteSTDIO.cpp:45:5: error: cannot initialize object parameter of type 'wxEvtHandler' with an expression of type 'LSPNetworkRemoteSTDIO'
   45 |     AddPendingEvent(evtReady);
      |     ^~~~~~~~~~~~~~~
../../codelite-e6c8cf471af5374fb3eb442aa914f716b023cf83/Plugin/LSP/LSPNetworkRemoteSTDIO.cpp:66:5: error: cannot initialize object parameter of type 'wxEvtHandler' with an expression of type 'LSPNetworkRemoteSTDIO'
   66 |     AddPendingEvent(evt);
      |     ^~~~~~~~~~~~~~~
../../codelite-e6c8cf471af5374fb3eb442aa914f716b023cf83/Plugin/LSP/LSPNetworkRemoteSTDIO.cpp:79:5: error: cannot initialize object parameter of type 'wxEvtHandler' with an expression of type 'LSPNetworkRemoteSTDIO'
   79 |     AddPendingEvent(evt);
      |     ^~~~~~~~~~~~~~~
../../codelite-e6c8cf471af5374fb3eb442aa914f716b023cf83/Plugin/LSP/LSPNetworkRemoteSTDIO.cpp:95:25: error: use of undeclared identifier 'wxEVT_ASYNC_PROCESS_OUTPUT'
   95 |         m_process->Bind(wxEVT_ASYNC_PROCESS_OUTPUT, &LSPNetworkRemoteSTDIO::OnProcessOutput, this);
      |                         ^
../../codelite-e6c8cf471af5374fb3eb442aa914f716b023cf83/Plugin/LSP/LSPNetworkRemoteSTDIO.cpp:96:25: error: use of undeclared identifier 'wxEVT_ASYNC_PROCESS_STDERR'
   96 |         m_process->Bind(wxEVT_ASYNC_PROCESS_STDERR, &LSPNetworkRemoteSTDIO::OnProcessStderr, this);
      |                         ^
../../codelite-e6c8cf471af5374fb3eb442aa914f716b023cf83/Plugin/LSP/LSPNetworkRemoteSTDIO.cpp:97:25: error: use of undeclared identifier 'wxEVT_ASYNC_PROCESS_TERMINATED'
   97 |         m_process->Bind(wxEVT_ASYNC_PROCESS_TERMINATED, &LSPNetworkRemoteSTDIO::OnProcessTerminated, this);
      |                         ^
8 errors generated.
*** [Plugin/CMakeFiles/plugin.dir/LSP/LSPNetworkRemoteSTDIO.cpp.o] Error code 1

make[4]: stopped in /tmp/ports/usr/ports/editors/codelite-devel/work/.build
--- Plugin/CMakeFiles/plugin.dir/LSP/LanguageServerProtocol.cpp.o ---
In file included from ../../codelite-e6c8cf471af5374fb3eb442aa914f716b023cf83/Plugin/LSP/LanguageServerProtocol.cpp:18:
../../codelite-e6c8cf471af5374fb3eb442aa914f716b023cf83/Plugin/LSP/LSPNetworkRemoteSTDIO.hpp:9:5: error: use of undeclared identifier 'clSSHInteractiveChannel'
    9 |     clSSHInteractiveChannel::Ptr_t m_process;
      |     ^
../../codelite-e6c8cf471af5374fb3eb442aa914f716b023cf83/Plugin/LSP/LanguageServerProtocol.cpp:83:23: error: no matching member function for call to 'reset'
   83 |             m_network.reset(new LSPNetworkRemoteSTDIO());
      |             ~~~~~~~~~~^~~~~
/usr/local/include/wx-3.2/wx/sharedptr.h:95:10: note: candidate function not viable: no known conversion from 'LSPNetworkRemoteSTDIO *' to 'LSPNetwork *' for 1st argument
   95 |     void reset( T* ptr = NULL )
      |          ^      ~~~~~~~~~~~~~
/usr/local/include/wx-3.2/wx/sharedptr.h:103:10: note: candidate function template not viable: requires 2 arguments, but 1 was provided
  103 |     void reset(T* ptr, Deleter d)
      |          ^     ~~~~~~~~~~~~~~~~~
2 errors generated.

Version

Self compiled

Operating system

Other

Steps to reproduce

No response

Relevant log output

No response

rozhuk-im commented 5 months ago
../../codelite-897991b266b4c8062536e1159eb92d4bdd239a4f/Plugin/wxTerminalCtrl/wxTerminalCtrl.cpp:297:17: error: use of undeclared identifier 'remote_workspace_file'
  297 |     wxUnusedVar(remote_workspace_file);
      |                 ^
1 error generated.
*** [Plugin/CMakeFiles/plugin.dir/wxTerminalCtrl/wxTerminalCtrl.cpp.o] Error code 1