Comments (7)
Hi @leha-bot
Thanks for your report.
It seems there is something different there, I can't reproduce:
rm ..\..\.conan2\remotes.json && conan remote add local http://url.com && conan remote list
conancenter: https://center.conan.io [Verify SSL: True, Enabled: True]
local: http://url.com [Verify SSL: True, Enabled: True
works fine. Can you please try the above commands?
from docs.
I have discussed with the team, and yes, it seems a bit overkill at the moment
I am moving this to the docs, to clarify all files are utf-8
without bom headers. Thanks for the feedback!
from docs.
Oh, it seems that the simple deletion is not sufficient to reproduce, I had had some another remotes (excluding conancenter) in that remotes.json
, and conancenter
was explicitly excluded (for test purposes on internal infra), seems this is a important detail for this, would try to reproduce it again...
from docs.
I am afraid I can't reproduce with that info either. Trying to add, remove, etc, doesn't make it fail like that.
I think the key is here: json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
This only happens if the json file is corrupted and not valid json. Maybe your remotes.json was broken? Someone accidentally touched it? If not, can you please try to provide steps to reproduce the error? Thanks!
from docs.
Hi @leha-bot
Any feedback here? Thanks!
from docs.
hello, sorry for late responce. It seems that the weird symbol was from PowerShell 'New-Item' (but I'm not sure). From my friends I heard that Powershell sometimes likes to add the Unicode BOM symbol in generated files (e.g., after pipelining like someprog > my.txt
)
I think that if you have any resources, then it would be good to add the 'fool check' for weird BOM/file size (I saw some similar in YouCompleteMe Vim plugin for LSP: https://github.com/ycm-core/ycmd/pull/1680/files)
from docs.
hello, sorry for late responce.
No prob, thanks for following up :)
It seems that the weird symbol was from PowerShell 'New-Item' (but I'm not sure). From my friends I heard that Powershell sometimes likes to add the Unicode BOM symbol in generated files (e.g., after pipelining like someprog > my.txt)
I see. In general this fie is managed with the conan remote
command, it makes sense now the behavior if powershell is adding extra characters unexpected. I also think that not only the characters, but also the encoding might be different.
I think that if you have any resources, then it would be good to add the 'fool check' for weird BOM/file size (I saw some similar in YouCompleteMe Vim plugin for LSP: https://github.com/ycm-core/ycmd/pull/1680/files)
Seems a bit overkill at the moment, the check adds some complexity and cost too, I'll check with the team for more opinions.
from docs.
Related Issues (20)
- Improve docs around `upload_policy=skip` behaviour
- AuthenticationException: error HOT 10
- How to use conan with CMake to generate multi-config Visual Studio Solution Files? HOT 2
- Add a search functionality to the docs which delivers useful results. HOT 4
- Doxygen support HOT 5
- [question] Are there any examples of custom/user defined templates? HOT 2
- conan export-pkg document is very difficult to read due to formatting HOT 3
- [question] Documentation for `core.download:download_cache` HOT 4
- [question] How do I configure a conan package to use MY relocatable cmake package files? HOT 7
- Missing migration docs for "How to check the version of the Conan client inside a conanfile" HOT 2
- [bug] Packages using version numbers containing uppercase characters can't be published HOT 2
- undefined reference to `dladdr@GLIBC_2.34' HOT 1
- Tutorial/Consuming packages/Build a simple CMake project using Conan wrong command for windows
- Clarifications for build-requires graph cost & more
- [question] Components hide global definitions in layout method HOT 3
- building fmt/10.1.0 on windows failed about unicode HOT 2
- building openexr/3.2.1 on the windows, failed with a cmake error. HOT 2
- [question] How to exclude tool_requires from graph info output HOT 5
- [bug] Improper variable in tools.microsoft:winsdk_version description HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.