I have vsc version 1.63.2. I'm getting the following notification:"File changes watcher stopped unexpectedly. A reload of the window may enable the watcher again unless the workspace cannot be watched for file changes." In the "Window" logs (opened using the "Developer: Open Log File..." command from the Command Palette), there's an error:
[renderer4] [error] [File Watcher (parcel)] Unexpected error: Bad file descriptor (EUNKNOWN) (path: /home/username/project_root)
[renderer4] [error] [File Watcher (parcel)] gave up attempting to restart watcher after error: Bad file descriptor
Any help troubleshooting this is greatly appreciated!
There is a bug when the project directory contains files you don't own.
For instance, you can have a docker volume that generate root files. -_-
A fix has been done but isn't released yet: http://giters.com/microsoft/vscode/issues/139523
As a workaround you can find offending files with:
find . ! -user myusername
Then you should add them to settings.json:
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true,
"**/mongodb/mongo-volume/**": true,
"**/rabbitmq/data/**": true,
"**/rabbitmq/logs/**": true
},
You must provide full relative path from project root directory or it won't work.
Related
I need help getting agda mode to work on my emacs system. Essentially, syntax highlighting only occurs after I save and not in real time like other standard modes. I did the basic tutorial. I run Manjaro on my system so I used pacman to install agda (2.6.0.1) and agda-stdlib (1.2-1). After that, I did
agda-mode setup
What this did was add
(load-file (let ((coding-system-for-read 'utf-8))
(shell-command-to-string "agda-mode locate")))
to my .init.el in my .emacs.d file. So then, I thought everything was well. However, when I did boot up emacs and I tried using some file I found on the internet to learn agda ( https://oxij.org/note/BrutalDepTypes.lagda). However, there only seems to be syntax highlighting when I save the file and any new text is not colored until saved. I tried to solve this by instead removing the code from .init.el in .emacs.d and instead putting it in my .init.el in .doom.d instead. But still I get the same results. I also did sudo agda-mode compile as well which gives me the following output:
Loading quail/latin-ltx...
I use sudo because otherwise I get this
>>Error occurred processing /usr/share/agda/emacs-mode/agda2-abbrevs.el: File error (("Opening output file" "Cannot overwrite file" "/usr/share/agda/emacs-mode/agda2-abbrevs.elc"))
Removing old name: Permission denied, /usr/share/agda/emacs-mode/agda2-abbrevs.elc
>>Error occurred processing /usr/share/agda/emacs-mode/annotation.el: File error (("Opening output file" "Cannot overwrite file" "/usr/share/agda/emacs-mode/annotation.elc"))
Removing old name: Permission denied, /usr/share/agda/emacs-mode/annotation.elc
>>Error occurred processing /usr/share/agda/emacs-mode/agda2-queue.el: File error (("Opening output file" "Cannot overwrite file" "/usr/share/agda/emacs-mode/agda2-queue.elc"))
Removing old name: Permission denied, /usr/share/agda/emacs-mode/agda2-queue.elc
>>Error occurred processing /usr/share/agda/emacs-mode/eri.el: File error (("Opening output file" "Cannot overwrite file" "/usr/share/agda/emacs-mode/eri.elc"))
Removing old name: Permission denied, /usr/share/agda/emacs-mode/eri.elc
>>Error occurred processing /usr/share/agda/emacs-mode/agda2.el: File error (("Opening output file" "Cannot overwrite file" "/usr/share/agda/emacs-mode/agda2.elc"))
Removing old name: Permission denied, /usr/share/agda/emacs-mode/agda2.elc
>>Error occurred processing /usr/share/agda/emacs-mode/agda-input.el: File error (("Opening output file" "Cannot overwrite file" "/usr/share/agda/emacs-mode/agda-input.elc"))
Removing old name: Permission denied, /usr/share/agda/emacs-mode/agda-input.elc
>>Error occurred processing /usr/share/agda/emacs-mode/agda2-highlight.el: File error (("Opening output file" "Cannot overwrite file" "/usr/share/agda/emacs-mode/agda2-highlight.elc"))
Removing old name: Permission denied, /usr/share/agda/emacs-mode/agda2-highlight.elc
Loading quail/latin-ltx...
>>Error occurred processing /usr/share/agda/emacs-mode/agda2-mode.el: File error (("Opening output file" "Cannot overwrite file" "/usr/share/agda/emacs-mode/agda2-mode.elc"))
Removing old name: Permission denied, /usr/share/agda/emacs-mode/agda2-mode.elc
Unable to compile the following Emacs Lisp files:
/usr/share/agda/emacs-mode/agda2-abbrevs.el
/usr/share/agda/emacs-mode/annotation.el
/usr/share/agda/emacs-mode/agda2-queue.el
/usr/share/agda/emacs-mode/eri.el
/usr/share/agda/emacs-mode/agda2.el
/usr/share/agda/emacs-mode/agda-input.el
/usr/share/agda/emacs-mode/agda2-highlight.el
/usr/share/agda/emacs-mode/agda2-mode.el
But this failed to work too.
I tried a different file too:
{- My Agda Tutorial-}
Module Tut where
open import Data.List
rev : {A : Set} -> List A -> List A
which didn't change much, but also gave me this error when I tried to typecheck the file
/usr/share/agda/lib/_build: createDirectory: permission denied
(Permission denied)
Any thoughts on how to fix this? I would really like to use my same doom config.
syntax highlighting only occurs after I save
This is intended. The coloration occurs after the buffer has successfully been typecked. You are trying to solve an issue that presumably does not exist.
Since type checking the buffer is an essential part in an Agda development you should not have a hard time getting used to doing it often while programming.
In order to manually call the type checker, the shortcut is CTRL-C CTRL-L.
I want to setup a private tangle on my own virtual machine with Ubuntu 18.04, 4GB RAM and 20GB memory.
I have follow this instructions: https://docs.iota.org/docs/compass/0.1/how-to-guides/set-up-a-private-tangle. Every command works fine until reach this one: bazel run //docker:layers_calculator.
It shows an error as follows:
Starting local Bazel server and connecting to it...
ERROR: /home/istabraq/compass/third-party/maven_deps.bzl:3:5: Traceback (most recent call last):
File "/home/istabraq/compass/WORKSPACE", line 42
maven_jars()
File "/home/istabraq/compass/third-party/maven_deps.bzl", line 3, in maven_jars
native.maven_jar(<4 more arguments>)
type 'struct' has no method maven_jar()
ERROR: error loading package '': Encountered error while reading extension file 'protobuf_deps.bzl': no such package '#com_google_protobuf_deps//': error loading package 'external': Could not load //external package
ERROR: error loading package '': Encountered error while reading extension file 'protobuf_deps.bzl': no such package '#com_google_protobuf_deps//': error loading package 'external': Could not load //external package
INFO: Elapsed time: 4.743s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
How can I solve this problem? what I have missed?
read carefully the message given after running bazel installer:
Make sure you have "/home/yourusername/bin" in your path. You can also activate bash completion by adding the following line to your :
source /home/yourusername/.bazel/bin/bazel-complete.bash
You can check with: "bazel info" or "bazel version"
Unfortunately, there are further errors:
https://github.com/iotaledger/compass/issues/142
I have solve this issue by using this commands:
Step 3: Set up your environment
If you ran the Bazel installer with the --user flag as above, the Bazel executable is installed in your $HOME/bin directory. It’s a good idea to add this directory to your default paths, as follows:
export PATH="$PATH:$HOME/bin"
You can also add this command to your ~/.bashrc or ~/.zshrc file to make it permanent.
reference:
https://docs.bazel.build/versions/master/install-ubuntu.html
In appveyor I use the statement:
- initexmf --admin --force --mklinks
but due to a problem it gives the message:
initexmf --admin --force --mklinks
Sorry, but "MiKTeX Configuration Utility" did not succeed for the following reason:
Script configuration file not found.
The log file hopefully contains the information to get MiKTeX going again:
C:\ProgramData\MiKTeX\2.9\miktex\log\initexmf_admin.log
The system cannot find the path specified.
Command exited with code 1
due to the error code the process terminates and I cannot type the C:\ProgramData\MiKTeX\2.9\miktex\log\initexmf_admin.log anymore, so a bit hard to debug ...
questions:
How to continue after an error
How to stop after the outputting the file (exit 1 ?)
To run a script on failure use on_failure section, for example to push initexmf_admin.log to artifacts:
on_failure:
- appveyor PushArtifact C:\ProgramData\MiKTeX\2.9\miktex\log\initexmf_admin.log
I'm triyg to configure a project with projectile, Jdee and flycheck.
I have customized flycheck-check-syntax-automatically to just check the buffer when it is saved. But when I save, this error is showed:
error in process filter: Removing directory: Permission denied, c:/Users/xxxxx/AppData/Local/Temp/JDEE_flycheck_13016Htm
That folder seems to be locked by jdee-server. Any clue?
I am doing an iphone app, were my code works fine with out any error, but when i build the code its failing. and i am getting an error like
rsync: rename "/Users/pcmac/Desktop/Digidrive(IPhone)/Build/RestKit/Support/.svn/.format.0FKOPh" -> "RestKit/Support/.svn/format": Operation not permitted (1)
I am getting this error many at a time and finally says:
Command /bin/sh failed with exit code 23
Can anyone give me solution to solve this ?
It seems you've added RestKit via Subversion (SVN). Is this really what you want? Why not get this dependency from CocoaPods or donwload it from RestKit.org as a source package?
I'd suspect the file permissions on .svn/.format.OFKOPh; to check them:
open a terminal window
change to the .svn dir:
cd /Users/pcmac/Desktop/Digidrive(IPhone)/Build/RestKit/Support/.svn/
check permissions:
ls -la .format*
if the permissions are wrong (i.e. you are not allowed to move the file):
chmod 644 .format.OFKOPh