The Java filewatcher daemon is fully integrated into the Codewind Eclipse codebase. To build and run Codewind Eclipse with this filewatcher, you only need to follow the standard 'Developing Codewind Eclipse' instructions.
If running on Windows, run npm-package.sh
using WSL or MSYS2.
git clone https://github.com/codewind-eclipse/codewind-filewatchers
cd codewind-filewatchers
cd Filewatcherd-TypeScript
./npm-package.sh
This will produce a filewatcherd-node_(version).tar.gz
file.
Follow the Developing Codewind for VS Code to setup a VS Code development environment that contains the Codewind VS Code extension source.
cd (path to git repository from step B)/codewind-vscode/dev
npm uninstall codewind-filewatcher
npm install (path to `filewatcherd-(version).tar.gz` from step A)
Restart VS Code. Then, hit F5 to launch the debugger. It should build, compile, and start the Codewind VS Code extension. See DEVELOPING.md for additional information on launching a VS Code extension.
The filewatcher daemons automatically log filewatcher-specific log statements to a codewind-specific directory on the file system. At most the last 24MB of log files will be retained (rolling logs), and any existing log files are deleted on IDE startup.
- When running in Codewind Eclipse:
(eclipse workspace)/.metadata
- When running in Codewind VSCode:
- In VSCode,
Help
>Toggle Developer Tools
>Console
- Then in the Filter box, enter
Logger initialized at
. For example:Logger.js.setLogFilePath():62]: Logger initialized at c:\Users\JONATHANWest\AppData\Roaming\Code\logs\20190624T145813\exthost3\IBM.codewind\codewind.log
- Open the directory containing
codewind.log
, and look forfilewatcherd-(...).log
- In VSCode,
- When running standalone:
(user home dir)/.codewind
filewatcherd-(#).log
(there should exist at least one, and at most two, log files; the log file with the larger#
is the most recent.
Filewatchers default to an INFO
log level. If you wish to see (or are asked to enable) the more verbose DEBUG
log level, do as follows.
- Close VSCode and/or Eclipse, to ensure the existing filewatcher is stopped.
- Set the following system environment variable:
filewatcher_log_level
todebug
- Open a new Command Prompt or Terminal and type:
- Windows:
echo %filewatcher_log_level%
- Linux/MacOS:
echo $filewatcher_log_level
- In both cases, you should see
debug
. If you do not, your system environment variable is not set correctly.
- Start VSCode or Eclispe.
To verify the change has taken effect, open the filewatcherd-(...).log
file and look for a line like this:
codewind-filewatcher logging to C:\Users\your-username\.codewind with log level DEBUG