You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a problem to delete the first line with command "dd". I cannot delete the first line with dd, and the CPU usage of VIM will become 100% after running dd in first line.
This is a python source code with .py as suffix.
1
2 def get_db():
3 from pymongo import MongoClient
4 client = MongoClient('localhost:27017')
5 db = client.myFirstMB
6 return db
7
8 def add_country(db):
9 db.countries.insert({"name" : "Canada"})
10
11 def get_country(db):
12 return db.countries.find_one()
13
14 if name == "main":
15 db = get_db()
16 add_country(db)
17 print get_country(db)
But it looks like this problem only happened in this special file. If I create a new one and it works.
I used Linux Mint as the following information:
Distributor ID: LinuxMint
Description: Linux Mint 18.2 Sonya
Release: 18.2
Codename: sonya
Can you see if you can reproduce it and help fix it?
Thanks,
Shuai Hua
The text was updated successfully, but these errors were encountered:
Hello,
I had a problem to delete the first line with command "dd". I cannot delete the first line with dd, and the CPU usage of VIM will become 100% after running dd in first line.
This is a python source code with .py as suffix.
1
2 def get_db():
3 from pymongo import MongoClient
4 client = MongoClient('localhost:27017')
5 db = client.myFirstMB
6 return db
7
8 def add_country(db):
9 db.countries.insert({"name" : "Canada"})
10
11 def get_country(db):
12 return db.countries.find_one()
13
14 if name == "main":
15 db = get_db()
16 add_country(db)
17 print get_country(db)
But it looks like this problem only happened in this special file. If I create a new one and it works.
I used Linux Mint as the following information:
Distributor ID: LinuxMint
Description: Linux Mint 18.2 Sonya
Release: 18.2
Codename: sonya
Can you see if you can reproduce it and help fix it?
Thanks,
Shuai Hua
The text was updated successfully, but these errors were encountered: