GithubHelp home page GithubHelp logo

Comments (4)

adam-urbanczyk avatar adam-urbanczyk commented on June 16, 2024

I don't have windows 11, but on Win 10 and with vim all works as intended.

from cadquery.

gitterman avatar gitterman commented on June 16, 2024

This is what is shown in the log viewer.
The file is there, though, because I can load and preview it properly from the 'File / open' dialog.

[2024-04-21 12:52:02.495095] ERROR: CQ-Editor: Uncaught exception occurred
Traceback (most recent call last):
  File "C:\ProgramData\CQ-Editor\cq_editor\widgets\editor.py", line 239, in _file_changed
    self.set_text_from_file(self._filename)
  File "C:\ProgramData\miniconda3\envs\cqgui\lib\site-packages\spyder\plugins\editor\widgets\codeeditor.py", line 3010, in set_text_from_file
    text, _enc = encoding.read(filename)
  File "C:\ProgramData\miniconda3\envs\cqgui\lib\site-packages\spyder\utils\encoding.py", line 308, in read
    text, encoding = decode( open(filename, 'rb').read() )
FileNotFoundError: [Errno 2] No such file or directory: 'D:/Peter/Development/CadQuery/clamp.py'

from cadquery.

jmwright avatar jmwright commented on June 16, 2024

@gitterman You could try adjusting the auto-reload delay.

https://github.com/CadQuery/CQ-editor?tab=readme-ov-file#using-an-external-code-editor

Some editors delete and recreate the file when it is saved, and maybe the timing is a little bit off.

from cadquery.

gitterman avatar gitterman commented on June 16, 2024

@jimwright: Thanks a lot for the hint, the error is gone.
I had decreased Autoreload delay because I assumed from the name, that a shorter delay would increase the responsiveness.
But it obviously is the other way round. A higher delay assures that an externally edited file gets more properly recognized when changed.
4. If CQ-editor is not catching the saves from your external editor, increasing Autoreload delay in the right pane may help. This issue has been reported when using vim or emacs.

from cadquery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.