V.S. code terminal not refreshingSelecting Columns in VS CodeHow to switch the cursor between terminal and...
LWC SFDX source push error TypeError: LWC1009: decl.moveTo is not a function
Paid for article while in US on F-1 visa?
What are these boxed doors outside store fronts in New York?
Does detail obscure or enhance action?
Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?
How much RAM could one put in a typical 80386 setup?
Arrow those variables!
Has there ever been an airliner design involving reducing generator load by installing solar panels?
RSA: Danger of using p to create q
What is the word for reserving something for yourself before others do?
Approximately how much travel time was saved by the opening of the Suez Canal in 1869?
Malformed Address '10.10.21.08/24', must be X.X.X.X/NN or
Convert two switches to a dual stack, and add outlet - possible here?
Why can't we play rap on piano?
Intersection point of 2 lines defined by 2 points each
Is it inappropriate for a student to attend their mentor's dissertation defense?
How can I make my BBEG immortal short of making them a Lich or Vampire?
Languages that we cannot (dis)prove to be Context-Free
Important Resources for Dark Age Civilizations?
What does the "remote control" for a QF-4 look like?
What defenses are there against being summoned by the Gate spell?
Why do I get two different answers for this counting problem?
Java Casting: Java 11 throws LambdaConversionException while 1.8 does not
Is it possible to do 50 km distance without any previous training?
V.S. code terminal not refreshing
Selecting Columns in VS CodeHow to switch the cursor between terminal and code in VSCode?VS Code Weird Highlight in TerminalHide inline svg in Visual Studio CodeDisable Visual Studio Code middle mouse selectThe terminal process command 'C:WindowsSystem32cmd.exe' failed to launch (exit code: 2)Webpage not opening when using Debugger for Chrome extension in Visual Studio Code on MacVisual studio code - find all referencesUnable to Open any Terminal in Visual Studio Code — failed to launch exit code 2How do I set the default terminal type for launch configurations in Visual Studio Code?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
today while I was working with some code, I noticed that my terminal wasn't refreshing on VS Code when I ran the code on the terminal. For example, running this code in terminal
from spellchecker import spellchecker
def get_file():
SP = spellchecker("english_words.txt")
while True:
try:
fname = input('Enter the name of the file to read:')
text = open(fname, 'r')
except:
print('ha')
print('Welcome to the Text File Spellchecker.')
get_file()
and then inputting asd should print 'ha' because asd isn't an actual file. I was testing things, and tried deleting "except:" and here's my new code that I ran through terminal.
from spellchecker import spellchecker
def get_file():
SP = spellchecker("english_words.txt")
while True:
try:
fname = input('Enter the name of the file to read:')
text = open(fname, 'r')
print('Welcome to the Text File Spellchecker.')
get_file()
doing this should give me an index error but instead, it outputs the same output that I received with the first code that had the except: in it.
Anyone know why and how I can fix this?
visual-studio-code
New contributor
add a comment |
today while I was working with some code, I noticed that my terminal wasn't refreshing on VS Code when I ran the code on the terminal. For example, running this code in terminal
from spellchecker import spellchecker
def get_file():
SP = spellchecker("english_words.txt")
while True:
try:
fname = input('Enter the name of the file to read:')
text = open(fname, 'r')
except:
print('ha')
print('Welcome to the Text File Spellchecker.')
get_file()
and then inputting asd should print 'ha' because asd isn't an actual file. I was testing things, and tried deleting "except:" and here's my new code that I ran through terminal.
from spellchecker import spellchecker
def get_file():
SP = spellchecker("english_words.txt")
while True:
try:
fname = input('Enter the name of the file to read:')
text = open(fname, 'r')
print('Welcome to the Text File Spellchecker.')
get_file()
doing this should give me an index error but instead, it outputs the same output that I received with the first code that had the except: in it.
Anyone know why and how I can fix this?
visual-studio-code
New contributor
add a comment |
today while I was working with some code, I noticed that my terminal wasn't refreshing on VS Code when I ran the code on the terminal. For example, running this code in terminal
from spellchecker import spellchecker
def get_file():
SP = spellchecker("english_words.txt")
while True:
try:
fname = input('Enter the name of the file to read:')
text = open(fname, 'r')
except:
print('ha')
print('Welcome to the Text File Spellchecker.')
get_file()
and then inputting asd should print 'ha' because asd isn't an actual file. I was testing things, and tried deleting "except:" and here's my new code that I ran through terminal.
from spellchecker import spellchecker
def get_file():
SP = spellchecker("english_words.txt")
while True:
try:
fname = input('Enter the name of the file to read:')
text = open(fname, 'r')
print('Welcome to the Text File Spellchecker.')
get_file()
doing this should give me an index error but instead, it outputs the same output that I received with the first code that had the except: in it.
Anyone know why and how I can fix this?
visual-studio-code
New contributor
today while I was working with some code, I noticed that my terminal wasn't refreshing on VS Code when I ran the code on the terminal. For example, running this code in terminal
from spellchecker import spellchecker
def get_file():
SP = spellchecker("english_words.txt")
while True:
try:
fname = input('Enter the name of the file to read:')
text = open(fname, 'r')
except:
print('ha')
print('Welcome to the Text File Spellchecker.')
get_file()
and then inputting asd should print 'ha' because asd isn't an actual file. I was testing things, and tried deleting "except:" and here's my new code that I ran through terminal.
from spellchecker import spellchecker
def get_file():
SP = spellchecker("english_words.txt")
while True:
try:
fname = input('Enter the name of the file to read:')
text = open(fname, 'r')
print('Welcome to the Text File Spellchecker.')
get_file()
doing this should give me an index error but instead, it outputs the same output that I received with the first code that had the except: in it.
Anyone know why and how I can fix this?
visual-studio-code
visual-studio-code
New contributor
New contributor
New contributor
asked 21 hours ago
teleluckteleluck
1
1
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
spellchecker is a class this means you have to write:
from spellchecker import Spellchecker
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
teleluck is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1421709%2fv-s-code-terminal-not-refreshing%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
spellchecker is a class this means you have to write:
from spellchecker import Spellchecker
New contributor
add a comment |
spellchecker is a class this means you have to write:
from spellchecker import Spellchecker
New contributor
add a comment |
spellchecker is a class this means you have to write:
from spellchecker import Spellchecker
New contributor
spellchecker is a class this means you have to write:
from spellchecker import Spellchecker
New contributor
New contributor
answered 20 hours ago
The_C0derThe_C0der
213
213
New contributor
New contributor
add a comment |
add a comment |
teleluck is a new contributor. Be nice, and check out our Code of Conduct.
teleluck is a new contributor. Be nice, and check out our Code of Conduct.
teleluck is a new contributor. Be nice, and check out our Code of Conduct.
teleluck is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1421709%2fv-s-code-terminal-not-refreshing%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown