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

Thread Exception When Running make clean Via Sublime Build #2436

Closed
BourgeoisBear opened this issue Oct 7, 2018 · 5 comments
Closed

Thread Exception When Running make clean Via Sublime Build #2436

BourgeoisBear opened this issue Oct 7, 2018 · 5 comments

Comments

@BourgeoisBear
Copy link

Summary

I have a multi-variant sublime-build file for my project's makefile. All variants work except for make clean--regardless of how I implement clean in my makefile.

Actual behavior

When I Ctrl+B to run my make clean variant, it fails to invoke make at all. It does generate the following error in Sublime's Ctrl+' console:

Running make clean
Exception in thread Thread-5:
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 "/opt/sublime_text/Packages/Default.sublime-package/exec.py", line 152, in read_fileno
    decoder_cls = codecs.getincrementaldecoder(self.listener.encoding)
AttributeError: 'NoneType' object has no attribute 'encoding'

Steps to reproduce

  1. Use my specialized sublime-build file for GNU makefiles
{
   "cmd": ["make"],
   "file_regex": "^([^:]*):([0-9]+):([0-9]+): (.*)$",
   "working_dir": "$project_path/src/fw-serial",
   "selector": "source.makefile, source.c, source.h",
   "quiet": false,
   "variants":
   [
      {
         "name": "Flash",
         "cmd": ["make", "flash"]
      },
      {
         "name": "Help",
         "cmd": ["make", "help"]
      },
      {
         "name": "Clean",
         "cmd": ["make", "clean"]
      }
   ]
}
  1. Ctrl+Shift+B, Select Make - Clean
  2. Crash and Burn

Environment

  • Debian Stretch, Kernel 4.9.0-8-amd64
  • 1080p x 2
  • Sublime Text 3, Build 3175, Installed from Sublime's apt/dev repo
@keith-hall
Copy link
Collaborator

someone else also reported something similar on the forum

@FHTheron
Copy link

FHTheron commented Jun 4, 2019

@kdemarest
Copy link

Same problem using an OnSave script. Anything that creates output generates this error log:
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 "/Applications/Sublime Text.app/Contents/MacOS/Packages/Default.sublime-package/exec.py", line 152, in read_fileno
decoder_cls = codecs.getincrementaldecoder(self.listener.encoding)
AttributeError: 'CmdProcess' object has no attribute 'encoding'

@nick-otter
Copy link

nick-otter commented Mar 30, 2020

Experiencing the same. Anything that creates output generates this error log:

Exception in thread Thread-9:
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 "/opt/sublime_text/Packages/Default.sublime-package/exec.py", line 152, in read_fileno
decoder_cls = codecs.getincrementaldecoder(self.listener.encoding)
AttributeError: 'NoneType' object has no attribute 'encoding'

Environment:

  • RHEL 8.3.1, Kernel 4.18.0-147
  • Sublime Text 3, Build 3211-1, stable

Update:

@FHTheron fix worked for me to resolve this:
https://forum.sublimetext.com/t/no-build-output-half-the-time/38869/7

Environment:

  • RHEL 8.3.1, Kernel 4.18.0-147
  • Sublime Text 3, Build 3211-1, stable

@BenjaminSchaaf
Copy link
Member

This has likely been fixed at some point.

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

No branches or pull requests

6 participants