Open aarongable opened 4 years ago
As a temporary work-around, I'd suggest using the "Go: Restart Language Server" command from the Command Palette (Ctrl + Shift + P).
Do you have a gopls
log for the session in which this happened? You can find it by navigating to View -> Output -> Tasks -> gopls (server). That would be helpful in understanding the issue.
Oh actually, can you please update your version of gopls
: GO111MODULE=on go get golang.org/x/tools/gopls@v0.4.4
. It seems like it might be out of date.
I'd already done GO111MODULE=on go get golang.org/x/tools/gopls
without specifying a version, and that's what gave me the "version master" one. I've just updated it to v0.4.4, but the error popups still occur.
Restarting the language server seems to have fixed it, though. I assume this was something bad in its internal cache?
Here are the logs leading up to when I filed this bug:
[Info - 1:07:54 PM] 2020/09/11 13:07:54 go/packages.Load snapshot=20 package_path="github.com/zmap/zlint/v2/lints/rfc" files=[/home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_basic_constraints_not_critical.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ca_subject_field_empty.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_cert_contains_unique_identifier.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_cert_extensions_version_not_3.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_cert_unique_identifier_version_not_2_or_3.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_distribution_point_incomplete.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_distribution_point_missing_ldap_or_uri.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ecdsa_ee_invalid_ku.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_eku_critical_improperly.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_aia_access_location_missing.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_aia_marked_critical.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_authority_key_identifier_critical.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_authority_key_identifier_missing.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_authority_key_identifier_no_key_identifier.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_cert_policy_contains_noticeref.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_cert_policy_disallowed_any_policy_qualifier.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_cert_policy_duplicate.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_cert_policy_explicit_text_ia5_string.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_cert_policy_explicit_text_includes_control.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_cert_policy_explicit_text_not_nfc.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_cert_policy_explicit_text_not_utf8.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_cert_policy_explicit_text_too_long.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_crl_distribution_marked_critical.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_duplicate_extension.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_freshest_crl_marked_critical.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_critical.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_dns_not_ia5_string.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_empty_name.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_no_entries.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_rfc822_format_invalid.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_space_dns_name.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_uri_format_invalid.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_uri_host_not_fqdn_or_ip.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_uri_not_ia5.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_uri_relative.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_key_usage_cert_sign_without_ca.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_key_usage_not_critical.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_key_usage_without_bits.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_name_constraints_not_critical.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_name_constraints_not_in_ca.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_policy_constraints_empty.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_policy_constraints_not_critical.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_policy_map_any_policy.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_policy_map_not_critical.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_policy_map_not_in_cert_policy.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_dns_name_too_long.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_dns_not_ia5_string.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_empty_name.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_no_entries.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_not_critical_without_subject.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_rfc822_format_invalid.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_space_dns_name.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_uri_format_invalid.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_uri_host_not_fqdn_or_ip.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_uri_not_ia5.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_uri_relative.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_subject_directory_attr_critical.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_subject_key_identifier_critical.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_subject_key_identifier_missing_ca.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_subject_key_identifier_missing_sub_cert.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_generalized_time_does_not_include_seconds.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_generalized_time_includes_fraction_seconds.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_generalized_time_not_in_zulu.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_idn_dnsname_malformed_unicode.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_idn_dnsname_must_be_nfc.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_inhibit_any_policy_not_critical.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_issuer_dn_country_not_printable_string.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_issuer_field_empty.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_name_constraint_empty.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_name_constraint_maximum_not_absent.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_name_constraint_minimum_non_zero.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_name_constraint_on_edi_party_name.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_name_constraint_on_registered_id.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_name_constraint_on_x400.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_path_len_constraint_improperly_included.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_path_len_constraint_zero_or_less.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_serial_number_longer_than_20_octets.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_serial_number_not_positive.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_spki_rsa_encryption_parameter_not_null.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_common_name_max_length.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_dn_country_not_printable_string.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_dn_not_printable_characters.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_dn_serial_number_max_length.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_dn_serial_number_not_printable_string.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_email_max_length.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_empty_without_san.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_given_name_max_length.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_info_access_marked_critical.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_locality_name_max_length.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_not_dn.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_organization_name_max_length.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_organizational_unit_name_max_length.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_postal_code_max_length.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_printable_string_badalpha.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_state_name_max_length.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_street_address_max_length.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_surname_max_length.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_tbs_signature_alg_matches_cert_signature_alg.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_tbs_signature_rsa_encryption_parameter_not_null.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_utc_time_does_not_include_seconds.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_utc_time_not_in_zulu.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_wrong_time_format_pre2050.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_basic_constraints_not_critical_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ca_subject_field_empty_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_cert_contains_unique_identifier_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_cert_extensions_version_not_3_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_cert_unique_identifier_version_not_2_or_3_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_distribution_point_incomplete_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_distribution_point_missing_ldap_or_uri_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ecdsa_ee_invalid_ku_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_eku_critical_improperly_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_aia_access_location_missing_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_aia_marked_critical_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_authority_key_identifier_critical_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_authority_key_identifier_missing_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_authority_key_identifier_no_key_identifier_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_cert_policy_contains_noticeref_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_cert_policy_disallowed_any_policy_qualifier_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_cert_policy_duplicate_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_cert_policy_explicit_text_ia5_string_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_cert_policy_explicit_text_includes_control_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_cert_policy_explicit_text_not_nfc_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_cert_policy_explicit_text_not_utf8_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_cert_policy_explicit_text_too_long_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_crl_distribution_marked_critical_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_duplicate_extension_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_freshest_crl_marked_critical_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_critical_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_dns_not_ia5_string_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_empty_name_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_no_entries_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_rfc822_format_invalid_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_space_dns_name_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_uri_format_invalid_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_uri_host_not_fqdn_or_ip_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_uri_not_ia5_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_ian_uri_relative_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_key_usage_cert_sign_without_ca_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_key_usage_not_critical_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_key_usage_without_bits_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_name_constraints_not_critical_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_name_constraints_not_in_ca_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_policy_constraints_empty_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_policy_constraints_not_critical_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_policy_map_any_policy_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_policy_map_not_critical_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_policy_map_not_in_cert_policy_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_dns_name_too_long_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_dns_not_ia5_string_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_empty_name_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_no_entries_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_not_critical_without_subject_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_rfc822_format_invalid_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_space_dns_name_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_uri_format_invalid_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_uri_host_not_fqdn_or_ip_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_uri_not_ia5_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_san_uri_relative_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_subject_directory_attr_critical_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_subject_key_identifier_critical_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_subject_key_identifier_missing_ca_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_ext_subject_key_identifier_missing_sub_cert_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_generalized_time_not_in_zulu_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_idn_dnsname_malformed_unicode_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_idn_dnsname_must_be_nfc_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_inhibit_any_policy_not_critical_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_issuer_dn_country_not_printable_string_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_issuer_field_empty_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_name_constraint_empty_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_name_constraint_maximum_not_absent_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_name_constraint_minimum_non_zero_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_name_constraint_on_edi_party_name_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_name_constraint_on_registered_id_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_name_constraint_on_x400_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_path_len_constraint_improperly_included_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_path_len_constraint_zero_or_less_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_serial_number_longer_than_20_octets_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_serial_number_not_positive_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_spki_rsa_encryption_parameter_not_null_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_common_name_max_length_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_dn_country_not_printable_string_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_dn_not_printable_characters_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_dn_serial_number_max_length_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_email_max_length_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_empty_without_san_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_given_name_max_length_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_info_access_marked_critical_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_locality_name_max_length_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_organization_name_max_length_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_organizational_unit_name_max_length_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_postal_code_max_length_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_printable_string_badalpha_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_state_name_max_length_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_street_address_max_length_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_subject_surname_max_length_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_tbs_signature_alg_matches_cert_signature_alg_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_tbs_signature_rsa_encryption_parameter_not_null_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_utc_time_does_not_include_seconds_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_utc_time_not_in_zulu_test.go /home/aaron/go/pkg/mod/github.com/zmap/zlint/v2@v2.1.1-0.20200821023125-9ab0643df8f6/lints/rfc/lint_wrong_time_format_pre2050_test.go] [Error - 1:07:54 PM] 2020/09/11 13:07:54 The code in the workspace failed to compile (see the error message below). If you believe this is a mistake, please file an issue: https://github.com/golang/go/issues/new.: github.com/letsencrypt/boulder/signer has no metadata snapshot=20 directory=file:///home/aaron/Code/boulder [Info - 1:08:20 PM] 2020/09/11 13:08:20 background imports cache refresh starting [Info - 1:08:20 PM] 2020/09/11 13:08:20 background refresh finished after 27.711419ms [Error - 1:10:49 PM] 2020/09/11 13:10:49 no dep handle: no metadata for github.com/letsencrypt/boulder/ca/config package="github.com/letsencrypt/boulder/ca/config" [Info - 1:10:50 PM] 2020/09/11 13:10:50 go/packages.Load snapshot=24 directory=/home/aaron/Code/boulder query=[github.com/letsencrypt/boulder/signer github.com/letsencrypt/boulder/signer] packages=1 [Info - 1:10:50 PM] 2020/09/11 13:10:50 go/packages.Load snapshot=24 package_path="github.com/letsencrypt/boulder/signer" files=[] [Info - 1:10:52 PM] 2020/09/11 13:10:52 go/packages.Load snapshot=24 directory=/home/aaron/Code/boulder query=[file=/home/aaron/Code/boulder/signer/signer.go file=/home/aaron/Code/boulder/signer/signer_test.go file=/home/aaron/Code/boulder/vendor/github.com/zmap/zcrypto/x509/qc_statements.go file=/home/aaron/Code/boulder/vendor/github.com/zmap/zlint/v2/lints/cabf_br/lint_san_dns_name_onion_invalid.go file=/home/aaron/Code/boulder/vendor/github.com/zmap/zlint/v2/lints/cabf_ev/lint_ev_business_category_missing.go file=/home/aaron/Code/boulder/vendor/github.com/zmap/zlint/v2/lints/cabf_ev/lint_ev_country_name_missing.go file=/home/aaron/Code/boulder/vendor/github.com/zmap/zlint/v2/lints/cabf_ev/lint_ev_organization_name_missing.go file=/home/aaron/Code/boulder/vendor/github.com/zmap/zlint/v2/lints/cabf_ev/lint_ev_serial_number_missing.go file=/home/aaron/Code/boulder/vendor/github.com/zmap/zlint/v2/lints/cabf_ev/lint_ev_valid_time_too_long.go file=/home/aaron/Code/boulder/vendor/github.com/zmap/zlint/v2/lints/rfc/lint_tbs_signature_alg_matches_cert_signature_alg.go] packages=1 [Info - 1:10:52 PM] 2020/09/11 13:10:52 go/packages.Load snapshot=24 package_path="command-line-arguments" files=[/home/aaron/Code/boulder/vendor/github.com/zmap/zcrypto/x509/qc_statements.go] [Error - 1:10:52 PM] 2020/09/11 13:10:52 no dep handle: no metadata for github.com/letsencrypt/boulder/ca/config package="github.com/letsencrypt/boulder/ca/config" [Error - 1:10:52 PM] 2020/09/11 13:10:52 warning: diagnose go.mod: github.com/letsencrypt/boulder/signer [github.com/letsencrypt/boulder/signer.test] has no metadata directory=/home/aaron/Code/boulder [Info - 1:10:53 PM] 2020/09/11 13:10:53 go/packages.Load snapshot=24 directory=/home/aaron/Code/boulder query=[github.com/letsencrypt/boulder/signer github.com/letsencrypt/boulder/signer] packages=1 [Info - 1:10:53 PM] 2020/09/11 13:10:53 go/packages.Load snapshot=24 package_path="github.com/letsencrypt/boulder/signer" files=[] [Info - 1:10:54 PM] 2020/09/11 13:10:54 go/packages.Load snapshot=24 directory=/home/aaron/Code/boulder query=[file=/home/aaron/Code/boulder/signer/signer.go file=/home/aaron/Code/boulder/signer/signer_test.go file=/home/aaron/Code/boulder/vendor/github.com/zmap/zlint/v2/lints/cabf_br/lint_san_dns_name_onion_invalid.go file=/home/aaron/Code/boulder/vendor/github.com/zmap/zlint/v2/lints/cabf_ev/lint_ev_business_category_missing.go file=/home/aaron/Code/boulder/vendor/github.com/zmap/zlint/v2/lints/cabf_ev/lint_ev_country_name_missing.go file=/home/aaron/Code/boulder/vendor/github.com/zmap/zlint/v2/lints/cabf_ev/lint_ev_organization_name_missing.go file=/home/aaron/Code/boulder/vendor/github.com/zmap/zlint/v2/lints/cabf_ev/lint_ev_serial_number_missing.go file=/home/aaron/Code/boulder/vendor/github.com/zmap/zlint/v2/lints/cabf_ev/lint_ev_valid_time_too_long.go file=/home/aaron/Code/boulder/vendor/github.com/zmap/zlint/v2/lints/rfc/lint_tbs_signature_alg_matches_cert_signature_alg.go] packages=1 [Info - 1:10:54 PM] 2020/09/11 13:10:54 go/packages.Load snapshot=24 package_path="command-line-arguments" files=[/home/aaron/Code/boulder/vendor/github.com/zmap/zlint/v2/lints/cabf_br/lint_san_dns_name_onion_invalid.go] [Error - 1:10:54 PM] 2020/09/11 13:10:54 The code in the workspace failed to compile (see the error message below). If you believe this is a mistake, please file an issue: https://github.com/golang/go/issues/new.: github.com/letsencrypt/boulder/signer [github.com/letsencrypt/boulder/signer.test] has no metadata snapshot=24 directory=file:///home/aaron/Code/boulder [Info - 1:11:19 PM] 2020/09/11 13:11:19 background imports cache refresh starting [Info - 1:11:19 PM] 2020/09/11 13:11:19 background refresh finished after 28.296875ms
I think you might actually have multiple versions of gopls
on your machine--the Go: Locate Configured Go Tools
command should give you the one that VS Code Go is using (it shouldn't be master). I would suggest doing which gopls
and deleting the one on your PATH if it's not the same.
It's hard to tell what went wrong from the log, but we should add a regression test for renaming a directory with a test.
I should only have one version of gopls
(in ~/go/bin), and that's not even on my $PATH -- it's only accessible to VSCode thanks to the Go extension's internal configuration. The execution of gopls version
in my first comment was actually ~/go/bin/gopls version
, which I elided for simplicity. I explicitly updated that version to be on master because I'd seen that suggested in other bugs talking about similar-but-not-quite-identical issues.
$ echo $PATH /home/aaron/.local/share/google-cloud-sdk/bin:/home/aaron/.local/bin:/home/aaron/.local/share/google-cloud-sdk/bin:/home/aaron/.local/bin:/usr/local/go/bin:/home/aaron/.local/bin:/home/aaron/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/aaron/.local/share/fzf/bin:/home/aaron/.local/share/depot_tools
Checking configured tools.... GOBIN: undefined toolsGopath: gopath: /home/aaron/go GOROOT: /usr/local/go PATH: /usr/local/go/bin:/home/aaron/.local/bin:/home/aaron/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin gocode: /home/aaron/go/bin/gocode installed gopkgs: /home/aaron/go/bin/gopkgs installed go-outline: /home/aaron/go/bin/go-outline installed go-symbols: /home/aaron/go/bin/go-symbols installed guru: /home/aaron/go/bin/guru installed gorename: /home/aaron/go/bin/gorename installed gotests: /home/aaron/go/bin/gotests installed gomodifytags: /home/aaron/go/bin/gomodifytags installed impl: /home/aaron/go/bin/impl installed fillstruct: /home/aaron/go/bin/fillstruct installed goplay: /home/aaron/go/bin/goplay installed godoctor: /home/aaron/go/bin/godoctor installed dlv: /home/aaron/go/bin/dlv installed gocode-gomod: /home/aaron/go/bin/gocode-gomod installed godef: /home/aaron/go/bin/godef installed goreturns: /home/aaron/go/bin/goreturns installed golint: /home/aaron/go/bin/golint installed gopls: /home/aaron/go/bin/gopls installed go env Workspace Folder (boulder): /home/aaron/Code/boulder GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/aaron/.cache/go-build" GOENV="/home/aaron/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/home/aaron/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/aaron/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/home/aaron/Code/boulder/go.mod" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build242967012=/tmp/go-build -gno-record-gcc-switches"
Ah, ok, well in that case I'm not sure if that is still the most recent version, because it shouldn't be built in GOPATH mode. If you want to build gopls
at master I would suggest running GO111MODULE=on go get golang.org/x/tools/gopls@master golang.org/x/tools@master
(or you can update to the v0.5.0 pre-release by running `GO111MODULE=on go get golang.org/x/tools/gopls@v0.5.0-pre1).
Thanks! Well, for now, I'm happy that things are working after switching back to v0.4.4 and restarting the language server. I don't rename directories that often :)
Same error happens to me when I checkout from branch where package exists to branch where there is no such package.
@hummerd: Can you please open a new issue and share your gopls
logs? Information on how to capture them can be found here.
Thanks for reply! Frankly, I can't reproduce it now. If i will see this error again, I will create issue and attach my log to it.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, this is the latest release.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Install the "go" vscode extension. Use it to install gopls. Everything works as expected for a while.
In my project, rename a directory from "signer" to "issuance" (https://github.com/letsencrypt/boulder/pull/5085).
What did you expect to see?
Everything continuing to wok as before.
What did you see instead?
Now the extension constantly pops up messages saying:
It makes sense that signer.test has no metadata, it doesn't exist anymore. I just haven't been able to convince gopls of that fact.