Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitor crashes when upload command is triggered when focusing the monitor or Deviot console #258

Closed
OoDeLally opened this issue Aug 17, 2018 · 5 comments
Labels

Comments

@OoDeLally
Copy link

OoDeLally commented Aug 17, 2018

Operating system

Linux Mint

Board used

Arduino Uno

Description of problem

When uploading with the Alt-E command while monitoring, the monitor crashes and stops if the current focused window is either the Deviot console buffer, or the monitor buffer.

Error(s) in ST Console? (View > Show Console)

Traceback (most recent call last):
  File "./python3.3/threading.py", line 901, in _bootstrap_inner
  File "./python3.3/threading.py", line 858, in run
  File "/home/user/.config/sublime-text-3/Packages/Deviot (Arduino IDE)/platformio/upload.py", line 49, in start_upload
    self.add_option('lib_extra_dirs', append=True)
  File "/home/user/.config/sublime-text-3/Packages/Deviot (Arduino IDE)/libraries/preferences_bridge.py", line 295, in add_option
    config.read(ini_path)
  File "/home/user/.config/sublime-text-3/Packages/Deviot (Arduino IDE)/libraries/readconfig/__init__.py", line 99, in read
    if(not path.exists(filepath)):
  File "./python3.3/genericpath.py", line 18, in exists
TypeError: can't specify None for path argument

top level value must be an array

Steps to Reproduce

1- Enable monitoring (Alt-M).
2- Focus the monitor or Deviot buffer.
3- Hit the Upload command (Alt-E).

Additional info

It seems very related to this issue #209 (comment)
But I could not figure out if this issue has been solved for this guy.

Thank you!

@gepd
Copy link
Owner

gepd commented Aug 30, 2018

Let me know if b982c6a solves that problem

@gepd gepd added the Bug label Aug 30, 2018
@OoDeLally
Copy link
Author

OoDeLally commented Sep 13, 2018

Yeah it solves it 👍 . Now it shows is not an IoT File, which is a lot better than crashing.
I understand you need to designate which project to upload, and if you dont focus the right buffer, Deviot cannot know which. However it is rare that we work on several projects at the same time.
Is it possible to simply upload the last uploaded project, if no valid buffer is on focus? Of course it is a luxury feature, but it would be nice 👍

@tablatronix
Copy link

You can use the freeze sketch in the compile/upload options menu for now.

@gepd
Copy link
Owner

gepd commented Feb 17, 2019

Let me know if freeze sketch is enough for you.

Re open it if you need something different

@gepd gepd closed this as completed Feb 17, 2019
@tablatronix
Copy link

tablatronix commented Feb 17, 2019

I just happen to notice that when compiling/uploading from serial (as in serial hss focus ) does not use freeze , it still says not an iot file. OSX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants